1. 程式人生 > >maven打包編譯的錯誤:sun.misc.BASE64Decoder是Sun的專用API,可能會在未來版本中刪除

maven打包編譯的錯誤:sun.misc.BASE64Decoder是Sun的專用API,可能會在未來版本中刪除

今天遇到 sun.misc.BASE64Decoder是Sun的專用API,可能會在未來版本中刪除 的錯誤

算是maven的一個bug吧。

maven-compiler-plugin 2.3.2 釋出以後把這個錯誤改成了告警。

所以只要將這個外掛升級一下就好了。

  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
  </plugin>

不料有出現了

程式包com.sun.image.codec.jpeg不存在

的問題,繼續查,這次需要給環境變數加一個jar包。 最終完美的解決辦法:
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                        <encoding>UTF-8</encoding>
                        <compilerArguments>
                            <verbose />
                            <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
                        </compilerArguments>
                    </configuration>
                </plugin>


相關推薦

maven打包編譯錯誤sun.misc.BASE64Decoder是Sun專用API可能未來版本刪除

今天遇到 sun.misc.BASE64Decoder是Sun的專用API,可能會在未來版本中刪除 的錯誤 算是maven的一個bug吧。 maven-compiler-plugin 2.3.2 釋出

maven 打包編譯錯誤 sun.misc.BASE64Decoder 是 Sun專用 API可能未來版本刪除

使用 mvn clean package 報錯如下 ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /sc

maven打包編譯的異常 sun.misc.BASE64Decoder 是 Sun專用 API可能未來版本刪除的解決方法

maven打包編譯的錯誤 :sun.misc.BASE64Decoder 是 Sun 的專用 API,可能會在未來版本中刪除的解決辦法 Maven編譯時報錯: 警告:sun.misc.BASE64Decoder 是 Sun 的專用 API,可能會在未來版本中刪除 處理方法

maven 編譯報錯 sun.misc.BASE64Decoder 是 Sun專用 API可能未來版本刪除...

使用maven2編譯時報錯: [ERROR] \workspaces\mvn\javac-warning-test\src\main\java\com\juvenxu\TestJavacWarning.java:[7,32] 警告:sun.misc.BASE64Decoder

maven警告com.sun.image.codec.jpeg.JPEGCodec 是 Sun專用 API可能未來版本刪除

警告:com.sun.image.codec.jpeg.JPEGCodec 是 Sun 的專用 API,可能會在未來版本中刪除 解決辦法 在pom.xml中bulid -> publgins加入:<plugin> <artifactId>maven-compiler-plu

maven對 "xxx是Sun專用 API可能未來版本刪除"編譯出錯的處理

maven在編譯含有sun私有API的java程式碼的時候,會出錯並報告BUILD FAILURE。 報錯如下: 警告:com.sun.rowset.CachedRowSetImpl 是 Sun 的專用 API,可能會在未來版本中刪除 問題在於plexus-compiler-javac這個模組中,當遇到中

sun.misc.Cleaner 是 Sun專用 API可能未來 版本刪除

今天用maven編譯專案時,報如下警告: C:\sap\sapconfigurator\trunk\src\main\java\com\sap\smb\legacy\admin\ConvertToIma ge.java:[102,13] 警告:sun.misc.Cleaner

解決maven編譯錯誤程式包com.sun.xml.internal.ws.spi不存在

轉自https://blog.csdn.net/mn960mn/article/details/51253038 當maven專案裡面有用到JDK內部的一些類,介面(如:com.sun.xml.internal.ws.spi.ProviderImpl)等的時候,用maven編譯一般會出現如下錯誤

Eclipse執行Maven打包編譯時出現Perhaps you are running on a JRE rather than a JDK?

出現錯誤後,查看了許多網友的解決方式,但都沒有解決我遇到的問題,可能是情況還是有些許的不同;下面直接說說我的問題的解決辦法,希望對大家有所幫助;Eclipse中Maven報錯資訊如下: 本以為可能是Eclipse配置Maven沒配置好,或者是jdk和jre環境出現問題,後來在cmd視窗找到

關於maven編譯錯誤找不到符號問題的總結

近幾天在maven編譯時遇到找不到符號問題總結一下解決辦法 一般情況下會出現如下錯誤提示 [ERROR]/manager_service/src/main/java/cn/e3mall/service/impl/ItemServiceImpl.java[

maven編譯錯誤不再支援源選項 1.5請使用 1.6 或更高版本

1.在pom.xml了新增下面程式碼<properties>    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    <maven.compil

xcode工程編譯錯誤No architectures to compile for

bis clear 文檔 哪些 i386 提高 href nts b2c 問題 開發環境:xcode6,iPhone6模擬器 xcode工程編譯錯誤:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active

Qt creator 編譯錯誤無法解析的外部符號(命令)

log void virtual win idg track deb dia popu 問題來自於:僅僅是在creator 中加入了一個新的DIalog類,並在main(),中實例化並show。就出現例如以下的錯誤: main.obj:-1: error: L

maven打包編譯的時候排除test測試類

有2種方式 : 1.使用命令的時候帶上引數 /** *編譯 */ mvn install -Dmaven.test.skip=true /** *打包 */ mvn package -Dmaven.test.skip=true 2.在pom.xml裡面配置 <plugi

Caffe-GPU編譯錯誤In file included from src/caffe/util/signal_handler.cpp:7:0:./include/caffe/util/signa

編譯Caffe-GPU時出現以下錯誤: In file included from src/caffe/util/signal_handler.cpp:7:0: ./include/caffe/util/signal_handler.h:4:34: fatal error: caff

vs2010編譯錯誤error MSB3073: :VCEnd” exited with code 1.

  1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command ""D:\vsproject\HCheck\D

ubuntu 下 make 編譯錯誤undefined reference to cv::line

在編譯一個專案時候出現 “undefined reference to cv::line” 的錯誤,是在連結其中一個靜態庫的時候出現的錯誤,錯誤如下: /home/build/lib/libapriltags.a(TagDetection.cc.o): In function `AprilTag

記錄kotlin引入註解產生的編譯錯誤3rd-party Gradle plug-ins may be the cause

今天在kotlin的專案中,引入dagger的時候出現了一些問題,下面做個記錄。 引入dagger需要引入了kapt這個三方的外掛,但是該組建導致編譯出現了問題。 百度一堆解答 好多部落格都試了並不管用,最後在stakoverflow上找到了 傳送門 這個bu

Android Studio編譯錯誤Manifest merger failed with multiple errors, see logs

Android Studio編譯錯誤:Manifest merger failed with multiple errors, see logs 需要在AndroidManifest.xml中增加配置: tools:replace="label" <?xml version="1.

Maven打包報錯[WARNING] The POM for xxx is missing, no dependency inform

場景 使用Maven建立的一個多模組專案,一個wa-service模組,一個wa-app模組,wa-app模組依賴於wa-service模組,且他們都是WebAppDemo的子模組。 報錯及分析