You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Duncan Jr (JIRA)" <ji...@codehaus.org> on 2007/02/13 12:50:21 UTC

[jira] Created: (MNG-2821) Extensions for Ant target dependency stopped working in Maven 2.0.5 Candidate build

Extensions for Ant target dependency stopped working in Maven 2.0.5 Candidate build
-----------------------------------------------------------------------------------

                 Key: MNG-2821
                 URL: http://jira.codehaus.org/browse/MNG-2821
             Project: Maven 2
          Issue Type: Bug
          Components: Ant tasks, Dependencies, POM
    Affects Versions: 2.0.5
            Reporter: Stephen Duncan Jr


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

        

[jira] Commented: (MNG-2821) Extensions for Ant target dependency stopped working in Maven 2.0.5 Candidate build

Posted by "Stephen Duncan Jr (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87442 ] 

Stephen Duncan Jr commented on MNG-2821:
----------------------------------------

After thinking about, I realized I was looking forward to this behavior in the case of my wagon-webdav extension, where I don't want it to pollute the classpath.  I recommend this as a wontfix, just make sure that the change in behavior is prominently mentioned in the release notes & that any applicable documentation is updated.

> Extensions for Ant target dependency stopped working in Maven 2.0.5 Candidate build
> -----------------------------------------------------------------------------------
>
>                 Key: MNG-2821
>                 URL: http://jira.codehaus.org/browse/MNG-2821
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Ant tasks, Dependencies, POM
>    Affects Versions: 2.0.5
>            Reporter: Stephen Duncan Jr
>
> 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

        

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

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTRUN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl moved MANTTASKS-8 to MANTRUN-70:
----------------------------------------------

    Complexity:   (was: Intermediate)
           Key: MANTRUN-70  (was: MANTTASKS-8)
       Project: Maven 2.x Antrun Plugin  (was: Maven 2.x Ant Tasks)

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