maven打包编译的错误 :sun.misc.BASE64Decoder 是 Sun 的专用 API,可能会在未来版本中删除的解决办法

Maven编译时报错: 警告:sun.misc.BASE64Decoder 是 Sun 的专用 API,可能会在未来版本中删除

 

处理方法如下

 

在pom.xml文件加入下面两部分红色字体中的任意一个就可以解决

 

<build>
    <plugins>     
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>  
            <artifactId>maven-compiler-plugin</artifactId>  
            <version>2.3.1</version>
            <dependencies>  
                <dependency>  
                    <groupId>org.codehaus.plexus</groupId>  
                    <artifactId>plexus-compiler-javac</artifactId>  
                    <version>1.8.1</version>  
                </dependency>  
            </dependencies>  
              
            <configuration>
                <source>1.5</source>
                <target>1.5</target>
                <encoding>UTF-8</encoding>
                <compilerArguments>
                     <verbose />
                      <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
                </compilerArguments> 
            </configuration>            
            </plugin> 
    </plugins>
</build>
 

 

猜你喜欢

转载自ydlmlh.iteye.com/blog/1559154