java 版本: 1.6.0_10-rc2
maven 版本: 3.0.4
maven编译插件 :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<verbose />
<bootclasspath>${JAVA_HOME}/lib/rt.jar</bootclasspath>
</compilerArguments>
<encoding>utf8</encoding>
</configuration>
</plugin>
运行mvn clean compile后build failure,
错误原因:
ECG2ServiceImpl.java:18: package com.sun.org.apache.xml.internal.security.exceptions does not exist
ECG2ServiceImpl.java:19: package com.sun.org.apache.xml.internal.security.utils does not exist
这2个类是属于rt.jar里的,也就是JRE里的,为什么会引用不到呢?
已经尝试过在pom中添加
<compilerArguments>
<verbose />
<bootclasspath>${JAVA_HOME}/lib/rt.jar</bootclasspath>
</compilerArguments>
也没有效果,求助!