开发者社区 问答 正文

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_Pro\zhongjian-bns\zhongjian-bns-webapp\src\main\webapp\WEB-INF\classes
致命错误: 在类路径或引导类路径中找不到程序包 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

展开
收起
爱吃鱼的程序员 2020-06-12 10:48:21 652 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    <spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">Re-runMavenusingthe-Xswitchtoenablefulldebuglogging.从新运行?? 我的建议是先从工作空间移除项目,然后重新导入一次。回复<aclass='referer'target='_blank'>@小七酱:对啊,我这么弄的!就是不知道这个错主要是什么原因导致的回复<aclass='referer'target='_blank'>@Leelin:先执行clean,然后删了重新导入试试。还是不行

    2020-06-12 10:48:39
    赞同 展开评论