Run intellij idea project from command line

て烟熏妆下的殇ゞ 提交于 2020-03-03 05:00:27

问题


I have quite massive project which was developed in intellij Idea. Now I have to be able to run it from command line, but there are too many libraries including maven dependencies are used.
Is there a way to get command line that is used by intellij idea when it runs a project?


回答1:


If you use maven you can do this:

mvn install
mvn exec:java -Dexec.mainClass="com.module.Main" -Dexec.classpathScope=runtime  


来源:https://stackoverflow.com/questions/26400893/run-intellij-idea-project-from-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!