[英]Exec Maven Plugin to Command Line
I have an application developed in NetBeans/Maven that can be started via command line with: 我有一个在NetBeans / Maven中开发的应用程序,可以通过命令行启动:
mvn exec:exec "-Dexec.executable=C:\\Java\\jdk1.6.0_33\\bin\\java.exe" "-Dexec.args=-Dlog4j.properties=... -classpath %classpath com.xxx.MyLauncher" -Dexec.classpathScope=runtime -Dexec.workingdir=
Now I need to run the application through the standard java command line method, like: 现在我需要通过标准的java命令行方法运行应用程序,如:
java -Dlog4j.properties=... -jar myapp-1.2-SNAPSHOT.jar
Unfortunately this does not work in the same manner, as I get the following exception: 不幸的是,这不能以相同的方式工作,因为我得到以下异常:
opencard.core.util.OpenCardPropertyLoadingException: property file not found
Questions: 问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.