`

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 是 Sun 的专用
API,可能会在未来版本中删除
[INFO] ————————————————————-
[INFO] BUILD FAILURE

解决方法是:
升级maven-compiler-plugin到2.3.2版本:
    <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-compiler-plugin</artifactId> 
        <version>2.3.2</version> 
    </plugin> 

详细的解释可以看下面的文章:
http://www.juvenxu.com/2010/09/01/maven-javac-warning/
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics