[英]Run intellij idea project from command line
I have quite massive project which was developed in intellij Idea. 我有一个相当大的项目,它是用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.
现在,我必须能够从命令行运行它,但是使用了包括maven依赖项在内的库太多。
Is there a way to get command line that is used by intellij idea when it runs a project? 有没有办法获取intellij idea运行项目时使用的命令行?
If you use maven you can do this: 如果使用maven,则可以执行以下操作:
mvn install
mvn exec:java -Dexec.mainClass="com.module.Main" -Dexec.classpathScope=runtime
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.