Hi, I get an error after cleaning my Eclipse project and rebuilding using the Maven Builder. Below is the output in the Maven Console:
10/14/08 3:25:18 PM CEST: [INFO] task-segment: [process-test-resources] 10/14/08 3:25:18 PM CEST: [INFO] ------------------------------------------------------------------------ 10/14/08 3:25:19 PM CEST: [INFO] [antrun:run] 10/14/08 3:25:19 PM CEST: [INFO] Executing tasks 10/14/08 3:25:20 PM CEST: Build errors for merchantExtranetAPI; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run': Mojo execution failed. On my shell console I get the following output: hibernate: Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin * Generate mapping for 'Comment' entity When I launch the Maven build with "Run As Maven build" (same goal process-test-resources) it works fine, here is what I get in the console: [INFO] task-segment: [process-test-resources] [INFO] ------------------------------------------------------------------------ [INFO] [antrun:run] [INFO] Executing tasks hibernate: Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin * Generate mapping for 'Comment' entity * Generate mapping for 'News' entity .... [INFO] Executed tasks [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ I use ant to generate Hibernate mappings using xdoclet. POM extract: <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-resources</phase> <configuration> <tasks> <ant antfile="${basedir}/build.xml"> <target name="hibernate"/> </ant> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> build.xml extract: <taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask" classpathref="xdoclet.task.classpath" /> <target name="hibernate" description="Generates Hibernate mappings and configuration"> <xdoclet> <fileset dir="src/java"> <include name="**/*.java"/> </fileset> <component classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" destdir="target/classes" version="3.0" validate="false" /> </xdoclet> </target> I don't understand why the antrun works when launched manually with the Maven launcher, but not with the Maven Builder? Is it possible to get more information about the error? I used to be able to display the xdoclet logs (using log4j) when I was using Ant build, this does not work any more even if I add log4j configuration files in the classpath... I don't understand either why the xdoclet output is in the shell console when using the Maven Builder, and not in the Eclipse console? I am using Eclipse 3.4.1 and m2eclipse 0.9.6. Do you have any idea what may be the issue? Thanks, Amélie -- View this message in context: http://www.nabble.com/Problem-with-Maven-Builder-and-antrun-plugin-tp19973918p19973918.html Sent from the Maven Eclipse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email