Plexus Contextualizer

General Purpose is to add values in Plexus Context with adding this component in the load-on-start section

All System Properties

Adding all system properties and a value (key : keyone with value : valueone) in your Plexus Context


<plexus>
  <load-on-start>
    <component>
      <role>org.codehaus.plexus.contextualizer.Contextualizer</role>
      <role-hint>definedsysprops</role-hint>		
    </component>    
  </load-on-start>  
  <components>
  
    <component>
      <role>org.codehaus.plexus.contextualizer.Contextualizer</role>
      <role-hint>definedsysprops</role-hint>
      <implementation>org.codehaus.plexus.contextualizer.DefaultContextualizer</implementation>
      <configuration>
		<definedSystemProperties>
		  <definedSystemProperty>user.home</definedSystemProperty>	
		</definedSystemProperties>
		<contextValues>
		  <keyone>valueone</keyone>
		</contextValues>
	  </configuration>
    </component>
  </components>
</plexus>

  

Only defined System Properties

Adding only defined system properties (only user.home) and a value (key : keyone with value : valueone) in your Plexus Context


<plexus>
  <load-on-start>
    <component>
      <role>org.codehaus.plexus.contextualizer.Contextualizer</role>
      <role-hint>allsystemprops</role-hint>		
    </component>    
  </load-on-start>  
  <components>
  
    <component>
      <role>org.codehaus.plexus.contextualizer.Contextualizer</role>
      <role-hint>allsystemprops</role-hint>
      <implementation>org.codehaus.plexus.contextualizer.DefaultContextualizer</implementation>
      <configuration>
		<systemProperties>
		  <systemProperty>user.home</systemProperty>	
		</systemProperties>
		<contextValues>
		  <keyone>valueone</keyone>
		</contextValues>
	  </configuration>
    </component>
  </components>
</plexus>