Hi,
I'm trying to automate the copy of an archive to my application server and
dynamically configure the server instance name on the command-line.
If I do mvn install -Ddeploy.server=instance1
deploy.server value 'instance1' gets passed normally to plugin through maven
pom file property interpolation mechanism:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<configuration>
<jbossHome>${env.JBOSS_HOME}</jbossHome>
<port>9090</port>
<serverName>${deploy.server}</serverName>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>harddeploy</goal>
</goals>
</execution>
</executions>
</plugin>
If I do mvn release:perform -Ddeploy.server=instance1
the value doesnt get passed to jboss plugin in pom.xml file.
Is this a bug or it's normal behavior due to release plugin not passing along
command-line args to maven pom file property interpolation mechanism ?
I'm using maven version 2.0.8.
Any insights appreciated,
-Guillaume
____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that
is privileged, confidential, and/or otherwise protected from disclosure to
anyone other than its intended recipient(s). Any dissemination or use of this
electronic email or its contents (including any attachments) by persons other
than the intended recipient(s) is strictly prohibited. If you have received
this message in error, please notify us immediately by reply email so that we
may correct our internal records. Please then delete the original message
(including any attachments) in its entirety. Thank you.