首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

maven编译jdk1.4@deprecated错误

2012-06-30 
maven编译jdk1.4@deprecated异常编译geronimo时。mvn clean install时总是出现以下异常:Failed to execute

maven编译jdk1.4@deprecated异常
编译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即可。

<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>2.4</version></plugin>
1 楼 Roger111 2012-05-17   不知是不是maven3.0.3的bug

热点排行