Greetings,
In a POM, I'm displaying the value of the "env" variable:
<project>
.............
<build>
............
<plugins>
...........
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<tasks>
<echo message="env: ${env}"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
.............
</plugins>
</build>
...........
</project>
When running: "mvn -Denv=dev", the displayed line is "env: dev" as expected.
But if I run it: "mvn -Denv=dev scm:bootstrap -DconnectionUrl=...
-Dgoals=...", the display is "env: ${env}". As if the "-Denv=dev" hasn't
given on the command line. Of course, I tried also: "mvn scm:bootstrap
-Denv=dev -DconnectionUrl=... -Dgoals=..." but the result is the same.
Please help !
Many thanks in advance.
Nicolas
--
View this message in context:
http://www.nabble.com/Can%27t-pass-%22-Denv%3Ddev%22-to-scm%3Abootstrap-goal-tp17912903p17912903.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]