maven打包异常:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存在
时间:2016-06-27 20:01:02
收藏:0
阅读:6057
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>
评论(0)