Dmitry Katsubo commented on New Feature MEXEC-35

It's nice to have feature. Voting for it!

In my scenario I would like to pass commandlineArgs from command line:

mvn -DcommandlineArgs=data exec:java

but this value is not taken by plugin. The workaround is to set it explicitly in POM:

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>exec-maven-plugin</artifactId>
	<executions>
		<execution>
			<phase>install</phase>
			<goals>
				<goal>java</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<mainClass>...</mainClass>
		<commandlineArgs>${commandlineArgs}</commandlineArgs>
	</configuration>
</plugin>

-DmainClass is also a good candidate to be configurable from CLI.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to