无法在项目nextrtc-signaling-serverrror上执行目标org.codehaus.mojo:exec-maven-plugin:1.5.0:java(default-cli)

前端之家收集整理的这篇文章主要介绍了无法在项目nextrtc-signaling-serverrror上执行目标org.codehaus.mojo:exec-maven-plugin:1.5.0:java(default-cli)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我测试了nextrtc-signaling-server,它是Java的开源.
但我遇到了构建Maven问题.我希望这个问题得到解决.

我的控制台日志.

 [INFO] Building jar: D:\signallinServer\nextrtc-signaling-server\target\nextrtc-signaling-server-0.0.4-SNAPSHOT-javadoc.jar
 [INFO] 
 [INFO] --- exec-maven-plugin:1.5.0:java (default-cli) @ nextrtc-signaling-server ---
 [INFO] ------------------------------------------------------------------------
 [INFO] BUILD FAILURE
 [INFO] ------------------------------------------------------------------------
 [INFO] Total time: 12.430 s
 [INFO] Finished at: 2016-08-29T11:12:34+09:00
 [INFO] Final Memory: 26M/223M
 [INFO] ------------------------------------------------------------------------
 [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java (default-cli) on project nextrtc-signaling-server: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java are missing or invalid -> [Help 1]
 [ERROR] 
 [ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR] 
 [ERROR] For more information about the errors and possible solutions,please read the following articles:
 [ERROR] [Help 1]  http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException

的pom.xml

http://maven.apache.org/xsd/maven-4.0.0.xsd\”\u0026gt;
    4.0.0

我在“clean package exec:Java”(Maven Goals)中构建了这个源码

我需要做什么?
我真的想解决它.

最佳答案
您可以使用以下命令构建nextrtc-signaling-server项目(https://github.com/mslosarz/nextrtc-signaling-server).

mvn clean package

如果在包含项目的项目中有一个主类(例如MySampleApplication.java)(例如com.sample.my),那么可以使用下面的命令运行它.

mvn exec:java -Dexec.mainClass="com.sample.my.MySampleApplication"

如果您想使用“nextrtc-signaling-server”开发新的应用程序,请在maven项目中添加以下maven依赖项.请参阅https://nextrtc.org/archives/85

原文链接:https://www.f2er.com/spring/432487.html

猜你在找的Spring相关文章