maven package 报错, 大神帮忙看下,多谢!!!
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ zhongjian-bns-webapp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 156 source files to D:My_Prozhongjian-bnszhongjian-bns-webappsrcmainwebappWEB-INFclasses
致命错误: 在类路径或引导类路径中找不到程序包 java.lang
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] An unknown compilation problem occurred
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.138 s
[INFO] Finished at: 2015-10-10T12:56:14+08:00
[INFO] Final Memory: 24M/127M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project zhongjian-bns-webapp: Compilation failure
[ERROR] An unknown compilation problem occurred
[ERROR] -> [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/MojoFailureException
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
还是不行
回复
先执行clean,然后删了重新导入试试。
回复
对啊 , 我这么弄的! 就是不知道这个错主要是什么原因导致的
我的建议是先从工作空间移除项目,然后重新导入一次。
从新运行??
Re-run Maven using the -X switch to enable full debug logging.