when we run a java problem, we can do

java Program arg1 arg2

when i do 
mvn exec:exec

can i specify argument ??

i saw there was a
article(http://mojo.codehaus.org/exec-maven-plugin/usage.html
) from maven, it said we can do this

mvn exec:java -Dexec.mainClass="com.example.Main" [-Dexec.args="argument1"]
...


so i try by my self


mvn exec:java -Dexec.mainClass="com.test.Main" -Dexec.args="argument1"

it compile  java.lang.NoClassDefFoundError: argument1

so..what is the right way to do that???

-- 
View this message in context: 
http://www.nabble.com/hi%2C-can-i-run-java-argument-ub-command-line-tp23420392p23420392.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to