从命令行运行Netbeans maven项目? [英] Run Netbeans maven project from command-line?
本文介绍了从命令行运行Netbeans maven项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Maven项目,在Netbeans内完美运行。如何从命令行(没有Netbeans)执行应用程序?
解决方案
有一个插件: http://www.mojohaus.org/exec-maven-plugin/
$ mvn exec:java -Dexec.mainClass =com.mycompany.App
pre>
假设
com.mycompany.App
是您的主类。I've got a Maven project that runs perfectly inside Netbeans. How can I execute the application from the command-line (without Netbeans)?
解决方案There's a plugin for that: http://www.mojohaus.org/exec-maven-plugin/
$ mvn exec:java -Dexec.mainClass="com.mycompany.App"
Assuming
com.mycompany.App
is you mainclass.这篇关于从命令行运行Netbeans maven项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文