mvn -X gives more infos :

Caused by: java.lang.NoClassDefFoundError:
org/apache/tools/ant/PropertyHelper
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

What version of Ant is provided by maven 2.0.6 ? Or maybe in 2.0.6 plugin
classpath doens't include some default libs anymore ?

Adding ant as dependency to the plugin solves this issue :

               <dependencies>
                   <dependency>
                       <groupId>ant</groupId>
                       <artifactId>ant</artifactId>
                       <version>1.6.5</version>
                   </dependency>
               </dependencies>



2007/4/3, nicolas de loof <[EMAIL PROTECTED]>:

I've upgraded to maven 2.0.6 and my build fails :

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal '
org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to
find the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet'
in the plugin ' org.codehaus.mojo:xdoclet-maven-plugin'
org/apache/tools/ant/PropertyHelper


The attached POM demonstrates the issue.

What's wrong ?

Nico.


Reply via email to