IAM Buckminster Maven Actor

From Eclipsepedia

Revision as of 07:01, 7 October 2008 by Ismaeltf.gmail.com (Talk | contribs)

Jump to: navigation, search

< To: IAM




Actor properties and regular properties can be passed to the Maven actor. Right now, there's only one supported actor property, named "goal", which specifies which Maven goal needs to be performed. Maven goals can be parametrized, and those parameters (if needed) must be specified in the "executionParameters" property. The executionParameters value must consist in a list of key-value pairs, optionally preceded by the usual "-D" prefix. Let's see some valid action examples (oh, by the way, the Maven actor name is "maven"):

   <cs:public name="foo-action-with-properties" actor="maven">
           <cs:property key="goal" value="archetype:generate"/> 
	   <cs:property key="executionParameters" 
                        value="-DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app"/>
   <cs:public name="foo-maven-action" actor="maven">
           <cs:property key="goal" value="install"/>
   <cs:public name="foo-eclipse-eclipse" actor="maven">
           <cs:property key="goal" value="eclipse:eclipse"/>