You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2008/07/16 00:50:27 UTC

[jira] Closed: (MANTRUN-70) Extensions for Ant target dependency stopped working in Maven 2.0.5 Candidate build

     [ http://jira.codehaus.org/browse/MANTRUN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlos Sanchez closed MANTRUN-70.
---------------------------------

      Assignee: Carlos Sanchez
    Resolution: Won't Fix

You should put the dependencies you need in antrun in the antrun plugin dependencies section
http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html

> Extensions for Ant target dependency stopped working in Maven 2.0.5 Candidate build
> -----------------------------------------------------------------------------------
>
>                 Key: MANTRUN-70
>                 URL: http://jira.codehaus.org/browse/MANTRUN-70
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>            Reporter: Stephen Duncan Jr
>            Assignee: Carlos Sanchez
>
> I have a POM where I configure the XFire ws-gen Ant task,  and I have specified the xfire jar containing that Ant task as a build extension.  In Maven 2.0.4 this worked, it does not in the latest build of Maven 2.0.5.  the following error occurs:
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
> Embedded error: taskdef class org.codehaus.xfire.gen.WsGenTask cannot be found
> [INFO] ------------------------------------------------------------------------
> The extensions section is:
>                 <extensions>
>                         <extension>
>                                 <groupId>org.codehaus.xfire</groupId>
>                                 <artifactId>xfire-generator</artifactId>
>                                 <version>1.2.4</version>
>                         </extension>
>                 </extensions>
> And the Antrun plugin configuration:
>                         <plugin>
>                                 <artifactId>maven-antrun-plugin</artifactId>
>                                 <executions>
>                                         <execution>
>                                                 <phase>generate-sources</phase>
>                                                 <goals>
>                                                         <goal>run</goal>
>                                                 </goals>
>                                                 <configuration>
>                                                         <sourceRoot>${project.build.directory}/generated-sources/java</sourceRoot>
>                                                         <tasks>
>                                                                 <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask" classpathref="maven.test.classpath"/>
>                                                                  .......................
> I'm not sure if this was 'supposed' to work before or if I was choosing the wrong mechanism, but it does break one of my builds when switching from Maven 2.0.4 to 2.0.5

-- 
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