编译geronimo时。mvn clean install时总是出现以下异常:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project geronimo-kernel: Compilation failure: Compilation failure:
[ERROR] D:\jee6\geronimo-jee6\deployer\modify\geronimo-kernel\src\main\java\org\apache\geronimo\kernel\config\xstream\URIConverter.java:[21,48] 警告:[deprecation] com.thoughtworks.xstream.converters.basic 中的 com.thoughtworks.xstream.converters.basic.AbstractBasicConverter 已过时
[ERROR]
[ERROR] D:\jee6\geronimo-jee6\deployer\modify\geronimo-kernel\src\main\java\org\apache\geronimo\kernel\config\xstream\URIConverter.java:[26,34] 警告:[deprecation] com.thoughtworks.xstream.converters.basic 中的 com.thoughtworks.xstream.converters.basic.AbstractBasicConverter 已过时
[ERROR]
........
之前是通过两次mvn install就可以通过。
后通过查询将maven-compiler-plugin改为2.4即可。
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project geronimo-kernel: Compilation failure: Compilation failure:
[ERROR] D:\jee6\geronimo-jee6\deployer\modify\geronimo-kernel\src\main\java\org\apache\geronimo\kernel\config\xstream\URIConverter.java:[21,48] 警告:[deprecation] com.thoughtworks.xstream.converters.basic 中的 com.thoughtworks.xstream.converters.basic.AbstractBasicConverter 已过时
[ERROR]
[ERROR] D:\jee6\geronimo-jee6\deployer\modify\geronimo-kernel\src\main\java\org\apache\geronimo\kernel\config\xstream\URIConverter.java:[26,34] 警告:[deprecation] com.thoughtworks.xstream.converters.basic 中的 com.thoughtworks.xstream.converters.basic.AbstractBasicConverter 已过时
[ERROR]
........
之前是通过两次mvn install就可以通过。
后通过查询将maven-compiler-plugin改为2.4即可。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>