I write maven project and I run it in Eclipse but I want to run maven project in using command line so I write
java -jar -Dapple.awt.UIElement="true" target/myproject-1.0-SNAPSHOT.jar -h
line in cmd but I have this error http://i.stack.imgur.com/c03mN.png.
How can I solve it?
To build a Maven project via the command line, you use the mvn command from the command line. The command must be executed in the directory which contains the relevant pom file. You pass the build life cycle, phase or goal as parameter to this command.
You run Maven by invoking a command-line tool: mvn. cmd from the bin directory of the Maven. To do this conveniently, ${maven. home}\bin must be in your PATH, just like the Java SDK commands.
Please check for more informations here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With