How can I specify complex Maven configuration options on the command line? -


for example, want use wildfly deploy plugin, outlined here:

http://docs.jboss.org/wildfly/plugins/maven/latest/deploy-artifact-mojo.html

to deploy, use command mvn wildfly:deploy -dfilename=my.ear. let's want deploy particular server group. using pom, add:

<plugin>  <groupid>org.wildfly.plugins</groupid>  <artifactid>wildfly-maven-plugin</artifactid>  <version>1.1.0.alpha1</version>  <configuration>    <domain>      <server-groups>        <server-group>main-server-group</server-group>      </server-groups>    </domain>  </configuration> </plugin> 

but if can't change pom, how pass configuration in on cli or in $home\.m2\settings.xml?

the usage page indicates configuration "type" of org.wildfly.plugin.deployment.domain.domain "domain" option don't know how type options out on cli. obvious answers -ddomain.server-groups.server-group=my-server-group don't seem work.

if change pom using property <server-group>${server.group}</server-group> should work. don't think maven has support complex attribute properties that.

if that's not possible file feature request.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -