---
title: "maven编译jdk1.4@deprecated异常"
author: "Roger111"
date: "2012-05-17T15:53:35Z"
tags: []
categories: ["研发管理"]
slug: "maven-jdk1-4-deprecated"
draft: false
lastmod: "2012-05-17T15:53:35Z"
id: 1533784
url: "https://rogerming.iteye.com/blog/1533784"
---

编译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:
 D:\jee6\geronimo-jee6\deployer\modify\geronimo-kernel\src\main\java\org\apache\geronimo\kernel\config\xstream\URIConverter.java: 警告： com.thoughtworks.xstream.converters.basic 中的 com.thoughtworks.xstream.converters.basic.AbstractBasicConverter 已过时
 
 D:\jee6\geronimo-jee6\deployer\modify\geronimo-kernel\src\main\java\org\apache\geronimo\kernel\config\xstream\URIConverter.java: 警告： com.thoughtworks.xstream.converters.basic 中的 com.thoughtworks.xstream.converters.basic.AbstractBasicConverter 已过时
 
........
之前是通过两次mvn install就可以通过。
后通过查询将maven-compiler-plugin改为2.4即可。

```java
<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-compiler-plugin</artifactId>
		<version>2.4</version>
	</plugin>
```