TOC
今天尝试跑个java的demo,执行 mvn exec:java 命令运行时碰到报错
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project demo: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java are missing or invalid -> [Help 1]搜找了一圈相关问题后,发现是需要先编译,然后指定mainclass
mvn clean mvn compile mvn exec:java -X -Dexec.mainClass="api.mengkang.net.netty.HttpServer" -Ddetail=true
参考地址 https://github.com/browserstack/browserstack-local-java/issues/16 https://mengkang.net/949.html
comments powered by Disqus