maven-ant-tasks-2.1.1.jar is incompatible with maven-compiler-plugin version
2.1 or greater
-------------------------------------------------------------------------------------------
Key: MANTTASKS-209
URL: http://jira.codehaus.org/browse/MANTTASKS-209
Project: Maven 2.x Ant Tasks
Issue Type: Bug
Affects Versions: 2.1.1, 2.0.10
Environment: Linux
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
Reporter: José Antonio Matute
When I use maven-compiler-plugin version 2.1 or greater in my pom.xml and try
to compile using maven-ant-task, I've got the following error:
{noformat}
[artifact:mvn] [INFO]
------------------------------------------------------------------------
[artifact:mvn] [ERROR] FATAL ERROR
[artifact:mvn] [INFO]
------------------------------------------------------------------------
[artifact:mvn] [INFO] Lorg/apache/maven/toolchain/ToolchainManager;
[artifact:mvn] [INFO]
------------------------------------------------------------------------
[artifact:mvn] [INFO] Trace
[artifact:mvn] java.lang.NoClassDefFoundError:
Lorg/apache/maven/toolchain/ToolchainManager;
[artifact:mvn] at java.lang.Class.getDeclaredFields0(Native Method)
[artifact:mvn] at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
[artifact:mvn] at java.lang.Class.getDeclaredField(Class.java:1852)
{noformat}
Currently, the workaround is keep using maven-compiler-plugin version 2.0.2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira