首页 > Web开发 > 详细

maven打包异常:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存在

时间:2016-06-27 19:58:10      阅读:4235      评论:0      收藏:0      [点我收藏+]

maven打包异常:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存在

技术分享

将jre/lib/rt.jar添加到maven的compiler里面  编译正常..。

<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>${project.build.sourceEncoding}</encoding>
        <!-- added by xiluhua 20160627 
            com.sun.org.apache.xml.internal.security.utils.Base64;编译异常
            将jre/lib/rt.jar添加到maven的compiler里面  编译正常..。
        -->
        <compilerArguments>
            <verbose />
            <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
        </compilerArguments> 
        
    </configuration>
</plugin>

 

maven打包异常:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存在

原文:http://www.cnblogs.com/xiluhua/p/5621279.html

(0)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!