最近遇到的一个maven的问题,百度无果。。
在命令行里运行下面命令出问题了。。求应该如何解决。。。
C:UsersLawliet_Xardublock>mvn exec:java -Dexec.mainClass="com.ardublock.Main"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openblocks 1.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ openblocks ---
[WARNING]
java.lang.ClassNotFoundException: com.ardublock.Main
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281)
at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.783 s
[INFO] Finished at: 2015-08-05T09:44:09+08:00
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (d
efault-cli) on project openblocks: An exception occured while executing the Java
class. com.ardublock.Main -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
回复
有没有在执行这个命令前执行用mvn complile编译呢
我试了一下,出现了[ERROR] Unknown lifecycle phase "complile".这个是怎么回事?是我安装的maven缺少什么么?
回复
刚才重新安装了一下,回复不及时,抱歉。
回复
不好意思打错单词了是mvn compile
回复
重装之后莫名好了OvO谢谢您啦~~
com.ardublock.Main不是提示找不到么