日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

解决maven打包 错误: 程序包com.sun.istack.internal不存在 - BBSMAX

發(fā)布時(shí)間:2023/12/10 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 解决maven打包 错误: 程序包com.sun.istack.internal不存在 - BBSMAX 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

**

解決maven打包 錯(cuò)誤: 程序包c(diǎn)om.sun.istack.internal不存在 - BBSMAX

**使用com.sun.istack.internal.Nullable包時(shí)能正常引用,但是使用maven項(xiàng)目打包jar時(shí)報(bào)錯(cuò)。


在使用maven打包時(shí)報(bào)錯(cuò)信息如下

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[5,31] 程序包c(diǎn)om.sun.istack.internal不存在
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[53,103] 找不到符號(hào)
符號(hào): 類 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] 找不到符號(hào)
符號(hào): 類 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] 程序包c(diǎn)om.sun.istack.internal不存在
[ERROR] /F:/rbcx/rbjc/src/main/java/cn/edu/zut/pro/rbjc/config/intercepors/LoginInterceptor.java:[53,103] 找不到符號(hào)
[ERROR] 符號(hào): 類 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] 找不到符號(hào)
[ERROR] 符號(hào): 類 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>

總結(jié)

以上是生活随笔為你收集整理的解决maven打包 错误: 程序包com.sun.istack.internal不存在 - BBSMAX的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。