解决maven打包 错误: 程序包com.sun.istack.internal不存在 - BBSMAX
**
解決maven打包 錯誤: 程序包com.sun.istack.internal不存在 - BBSMAX
**使用com.sun.istack.internal.Nullable包時能正常引用,但是使用maven項目打包jar時報錯。
在使用maven打包時報錯信息如下
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[5,31] 程序包com.sun.istack.internal不存在
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[53,103] 找不到符號
符號: 類 Nullable
位置: 類 cn.edu.zut.pro.rbjc.config.intercepors.LoginInterceptor
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[56,108] 找不到符號
符號: 類 Nullable
位置: 類 cn.edu.zut.pro.rbjc.config.intercepors.LoginInterceptor
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.263 s
[INFO] Finished at: 2019-05-16T15:07:59+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rbjc: Compilation failure: Compilation failure:
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[5,31] 程序包com.sun.istack.internal不存在
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[53,103] 找不到符號
[ERROR] 符號: 類 Nullable
[ERROR] 位置: 類 cn.edu.zut.pro.rbjc.config.intercepors.LoginInterceptor
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[56,108] 找不到符號
[ERROR] 符號: 類 Nullable
[ERROR] 位置: 類 cn.edu.zut.pro.rbjc.config.intercepors.LoginInterceptor
[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
添加一下依賴重新打包
<dependency><groupId>com.sun.xml.bind</groupId><artifactId>jaxb-impl</artifactId><version>2.2.11</version></dependency><dependency><groupId>org.jetbrains</groupId><artifactId>annotations</artifactId><version>13.0</version></dependency>總結
以上是生活随笔為你收集整理的解决maven打包 错误: 程序包com.sun.istack.internal不存在 - BBSMAX的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 前端学习(1682):前端系列实战课程之
- 下一篇: 前端学习(1696):前端系列javas