Can't run ant task in maven 2.0.9

View: New views
9 Messages — Rating Filter:   Alert me  

Can't run ant task in maven 2.0.9

by Matt Milliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
into my ant install lib directory (ant 1.7) and now when I run my antrun
plugin it fails with the message:

Embedded error: The following error occurred while executing this line:
/home/development/workspace/backoffice/run-fit.xml:5: Could not create
task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.

I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
or 1.7. Has anybody experienced this issue and know what the problem is?

here is the antrun config in my pom:
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-antrun-plugin</artifactId>
               <executions>
                   <execution>
                       <id>Tests Run by Ant</id>
                          <phase>test</phase>
                          <goals>
                              <goal>run</goal>
                          </goals>
                       <configuration>
                           <tasks>
                               <ant antfile="${basedir}/run-fit.xml"
dir="${basedir}" inheritRefs="true" />
                           </tasks>
                       </configuration>
                   </execution>
               </executions>
           </plugin>

and the ant build file:

<?xml version="1.0"?>
<project name="run-fit" default="run-tests"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">

   <target name="setup">
       <artifact:dependencies filesetId="aspectjweaver.fileset">
           <dependency groupId="aspectj" artifactId="aspectjweaver"
version="1.5.3" />
       </artifact:dependencies>
   </target>

   <target name="run-tests" depends="setup">
       <echo message="I don't work" />
   </target>
</project>  

os
fedora core 6  version 2.6.22.14-72.fc6

java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

Cheers
Matt



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Can't run ant task in maven 2.0.9

by Brian E Fox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you try to isolate this to the Ant task or Maven update? Ie don't
update them both at the same time and see which one actually causes the
breakage.

-----Original Message-----
From: Matthew Milliss [mailto:matt.milliss@...]
Sent: Sunday, May 04, 2008 5:14 AM
To: users@...
Subject: Can't run ant task in maven 2.0.9

I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
into my ant install lib directory (ant 1.7) and now when I run my antrun

plugin it fails with the message:

Embedded error: The following error occurred while executing this line:
/home/development/workspace/backoffice/run-fit.xml:5: Could not create
task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.

I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5

or 1.7. Has anybody experienced this issue and know what the problem is?

here is the antrun config in my pom:
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-antrun-plugin</artifactId>
               <executions>
                   <execution>
                       <id>Tests Run by Ant</id>
                          <phase>test</phase>
                          <goals>
                              <goal>run</goal>
                          </goals>
                       <configuration>
                           <tasks>
                               <ant antfile="${basedir}/run-fit.xml"
dir="${basedir}" inheritRefs="true" />
                           </tasks>
                       </configuration>
                   </execution>
               </executions>
           </plugin>

and the ant build file:

<?xml version="1.0"?>
<project name="run-fit" default="run-tests"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">

   <target name="setup">
       <artifact:dependencies filesetId="aspectjweaver.fileset">
           <dependency groupId="aspectj" artifactId="aspectjweaver"
version="1.5.3" />
       </artifact:dependencies>
   </target>

   <target name="run-tests" depends="setup">
       <echo message="I don't work" />
   </target>
</project>  

os
fedora core 6  version 2.6.22.14-72.fc6

java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

Cheers
Matt



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Can't run ant task in maven 2.0.9

by Hervé BOUTEMY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

and give the exact version of the maven-antrun-plugin used

Le dimanche 04 mai 2008, Brian E. Fox a écrit :

> Can you try to isolate this to the Ant task or Maven update? Ie don't
> update them both at the same time and see which one actually causes the
> breakage.
>
> -----Original Message-----
> From: Matthew Milliss [mailto:matt.milliss@...]
> Sent: Sunday, May 04, 2008 5:14 AM
> To: users@...
> Subject: Can't run ant task in maven 2.0.9
>
> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
> into my ant install lib directory (ant 1.7) and now when I run my antrun
>
> plugin it fails with the message:
>
> Embedded error: The following error occurred while executing this line:
> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>
> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>
> or 1.7. Has anybody experienced this issue and know what the problem is?
>
> here is the antrun config in my pom:
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-antrun-plugin</artifactId>
>                <executions>
>                    <execution>
>                        <id>Tests Run by Ant</id>
>                           <phase>test</phase>
>                           <goals>
>                               <goal>run</goal>
>                           </goals>
>                        <configuration>
>                            <tasks>
>                                <ant antfile="${basedir}/run-fit.xml"
> dir="${basedir}" inheritRefs="true" />
>                            </tasks>
>                        </configuration>
>                    </execution>
>                </executions>
>            </plugin>
>
> and the ant build file:
>
> <?xml version="1.0"?>
> <project name="run-fit" default="run-tests"
> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>
>    <target name="setup">
>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>            <dependency groupId="aspectj" artifactId="aspectjweaver"
> version="1.5.3" />
>        </artifact:dependencies>
>    </target>
>
>    <target name="run-tests" depends="setup">
>        <echo message="I don't work" />
>    </target>
> </project>
>
> os
> fedora core 6  version 2.6.22.14-72.fc6
>
> java version "1.6.0_04"
> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>
> Cheers
> Matt
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Can't run ant task in maven 2.0.9

by Matt Milliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem only happens with maven 2.0.9. If I rollback maven to 2.0.8
it works fine with ant tasks 2.0.9. And maven 2.0.9 still doesn't work
with ant tasks 2.0.8. The maven antun plugin version is 1.1. I even
tried rolling ant back to 1.6.5 as I noticed that the antrun plugin has
a dependency on 1.6.5 and this didn't fix the problem either.

Regards
Matt

Hervé BOUTEMY wrote:

> and give the exact version of the maven-antrun-plugin used
>
> Le dimanche 04 mai 2008, Brian E. Fox a écrit :
>  
>> Can you try to isolate this to the Ant task or Maven update? Ie don't
>> update them both at the same time and see which one actually causes the
>> breakage.
>>
>> -----Original Message-----
>> From: Matthew Milliss [mailto:matt.milliss@...]
>> Sent: Sunday, May 04, 2008 5:14 AM
>> To: users@...
>> Subject: Can't run ant task in maven 2.0.9
>>
>> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
>> into my ant install lib directory (ant 1.7) and now when I run my antrun
>>
>> plugin it fails with the message:
>>
>> Embedded error: The following error occurred while executing this line:
>> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
>> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>>
>> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>>
>> or 1.7. Has anybody experienced this issue and know what the problem is?
>>
>> here is the antrun config in my pom:
>>            <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-antrun-plugin</artifactId>
>>                <executions>
>>                    <execution>
>>                        <id>Tests Run by Ant</id>
>>                           <phase>test</phase>
>>                           <goals>
>>                               <goal>run</goal>
>>                           </goals>
>>                        <configuration>
>>                            <tasks>
>>                                <ant antfile="${basedir}/run-fit.xml"
>> dir="${basedir}" inheritRefs="true" />
>>                            </tasks>
>>                        </configuration>
>>                    </execution>
>>                </executions>
>>            </plugin>
>>
>> and the ant build file:
>>
>> <?xml version="1.0"?>
>> <project name="run-fit" default="run-tests"
>> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>>
>>    <target name="setup">
>>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>>            <dependency groupId="aspectj" artifactId="aspectjweaver"
>> version="1.5.3" />
>>        </artifact:dependencies>
>>    </target>
>>
>>    <target name="run-tests" depends="setup">
>>        <echo message="I don't work" />
>>    </target>
>> </project>
>>
>> os
>> fedora core 6  version 2.6.22.14-72.fc6
>>
>> java version "1.6.0_04"
>> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>>
>> Cheers
>> Matt
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>    
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Parent Message unknown Re: Can't run ant task in maven 2.0.9

by Matt Milliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem only happens with maven 2.0.9. If I rollback maven to 2.0.8
it works fine with ant tasks 2.0.9. And maven 2.0.9 still doesn't work
with ant tasks 2.0.8. The maven antun plugin version is 1.1. I even
tried rolling ant back to 1.6.5 as I noticed that the antrun plugin has
a dependency on 1.6.5 and this didn't fix the problem either.

Regards
Matt

Hervé BOUTEMY wrote:

> and give the exact version of the maven-antrun-plugin used
>
> Le dimanche 04 mai 2008, Brian E. Fox a écrit :
>  
>> Can you try to isolate this to the Ant task or Maven update? Ie don't
>> update them both at the same time and see which one actually causes the
>> breakage.
>>
>> -----Original Message-----
>> From: Matthew Milliss [mailto:matt.milliss@...]
>> Sent: Sunday, May 04, 2008 5:14 AM
>> To: users@...
>> Subject: Can't run ant task in maven 2.0.9
>>
>> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
>> into my ant install lib directory (ant 1.7) and now when I run my antrun
>>
>> plugin it fails with the message:
>>
>> Embedded error: The following error occurred while executing this line:
>> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
>> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>>
>> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>>
>> or 1.7. Has anybody experienced this issue and know what the problem is?
>>
>> here is the antrun config in my pom:
>>            <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-antrun-plugin</artifactId>
>>                <executions>
>>                    <execution>
>>                        <id>Tests Run by Ant</id>
>>                           <phase>test</phase>
>>                           <goals>
>>                               <goal>run</goal>
>>                           </goals>
>>                        <configuration>
>>                            <tasks>
>>                                <ant antfile="${basedir}/run-fit.xml"
>> dir="${basedir}" inheritRefs="true" />
>>                            </tasks>
>>                        </configuration>
>>                    </execution>
>>                </executions>
>>            </plugin>
>>
>> and the ant build file:
>>
>> <?xml version="1.0"?>
>> <project name="run-fit" default="run-tests"
>> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>>
>>    <target name="setup">
>>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>>            <dependency groupId="aspectj" artifactId="aspectjweaver"
>> version="1.5.3" />
>>        </artifact:dependencies>
>>    </target>
>>
>>    <target name="run-tests" depends="setup">
>>        <echo message="I don't work" />
>>    </target>
>> </project>
>>
>> os
>> fedora core 6  version 2.6.22.14-72.fc6
>>
>> java version "1.6.0_04"
>> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>>
>> Cheers
>> Matt
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>    
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Can't run ant task in maven 2.0.9

by Brian E Fox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Since this is a regression, we will fix it for 2.0.10, can you write a jira and attach a sample project?

-----Original Message-----
From: Matt Milliss [mailto:matt.milliss@...]
Sent: Tuesday, May 06, 2008 8:13 PM
To: users@...
Subject: Re: Can't run ant task in maven 2.0.9

The problem only happens with maven 2.0.9. If I rollback maven to 2.0.8
it works fine with ant tasks 2.0.9. And maven 2.0.9 still doesn't work
with ant tasks 2.0.8. The maven antun plugin version is 1.1. I even
tried rolling ant back to 1.6.5 as I noticed that the antrun plugin has
a dependency on 1.6.5 and this didn't fix the problem either.

Regards
Matt

Hervé BOUTEMY wrote:

> and give the exact version of the maven-antrun-plugin used
>
> Le dimanche 04 mai 2008, Brian E. Fox a écrit :
>  
>> Can you try to isolate this to the Ant task or Maven update? Ie don't
>> update them both at the same time and see which one actually causes the
>> breakage.
>>
>> -----Original Message-----
>> From: Matthew Milliss [mailto:matt.milliss@...]
>> Sent: Sunday, May 04, 2008 5:14 AM
>> To: users@...
>> Subject: Can't run ant task in maven 2.0.9
>>
>> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
>> into my ant install lib directory (ant 1.7) and now when I run my antrun
>>
>> plugin it fails with the message:
>>
>> Embedded error: The following error occurred while executing this line:
>> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
>> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>>
>> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>>
>> or 1.7. Has anybody experienced this issue and know what the problem is?
>>
>> here is the antrun config in my pom:
>>            <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-antrun-plugin</artifactId>
>>                <executions>
>>                    <execution>
>>                        <id>Tests Run by Ant</id>
>>                           <phase>test</phase>
>>                           <goals>
>>                               <goal>run</goal>
>>                           </goals>
>>                        <configuration>
>>                            <tasks>
>>                                <ant antfile="${basedir}/run-fit.xml"
>> dir="${basedir}" inheritRefs="true" />
>>                            </tasks>
>>                        </configuration>
>>                    </execution>
>>                </executions>
>>            </plugin>
>>
>> and the ant build file:
>>
>> <?xml version="1.0"?>
>> <project name="run-fit" default="run-tests"
>> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>>
>>    <target name="setup">
>>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>>            <dependency groupId="aspectj" artifactId="aspectjweaver"
>> version="1.5.3" />
>>        </artifact:dependencies>
>>    </target>
>>
>>    <target name="run-tests" depends="setup">
>>        <echo message="I don't work" />
>>    </target>
>> </project>
>>
>> os
>> fedora core 6  version 2.6.22.14-72.fc6
>>
>> java version "1.6.0_04"
>> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>>
>> Cheers
>> Matt
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>    
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Can't run ant task in maven 2.0.9

by Matt Milliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've found if I upgrade the antrun plugin to 1.2-SNAPSHOT the problem is
fixed. Should I still log a Jira?

Brian E. Fox wrote:

> Since this is a regression, we will fix it for 2.0.10, can you write a jira and attach a sample project?
>
> -----Original Message-----
> From: Matt Milliss [mailto:matt.milliss@...]
> Sent: Tuesday, May 06, 2008 8:13 PM
> To: users@...
> Subject: Re: Can't run ant task in maven 2.0.9
>
> The problem only happens with maven 2.0.9. If I rollback maven to 2.0.8
> it works fine with ant tasks 2.0.9. And maven 2.0.9 still doesn't work
> with ant tasks 2.0.8. The maven antun plugin version is 1.1. I even
> tried rolling ant back to 1.6.5 as I noticed that the antrun plugin has
> a dependency on 1.6.5 and this didn't fix the problem either.
>
> Regards
> Matt
>
> Hervé BOUTEMY wrote:
>  
>> and give the exact version of the maven-antrun-plugin used
>>
>> Le dimanche 04 mai 2008, Brian E. Fox a écrit :
>>  
>>    
>>> Can you try to isolate this to the Ant task or Maven update? Ie don't
>>> update them both at the same time and see which one actually causes the
>>> breakage.
>>>
>>> -----Original Message-----
>>> From: Matthew Milliss [mailto:matt.milliss@...]
>>> Sent: Sunday, May 04, 2008 5:14 AM
>>> To: users@...
>>> Subject: Can't run ant task in maven 2.0.9
>>>
>>> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
>>> into my ant install lib directory (ant 1.7) and now when I run my antrun
>>>
>>> plugin it fails with the message:
>>>
>>> Embedded error: The following error occurred while executing this line:
>>> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
>>> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>>>
>>> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>>>
>>> or 1.7. Has anybody experienced this issue and know what the problem is?
>>>
>>> here is the antrun config in my pom:
>>>            <plugin>
>>>                <groupId>org.apache.maven.plugins</groupId>
>>>                <artifactId>maven-antrun-plugin</artifactId>
>>>                <executions>
>>>                    <execution>
>>>                        <id>Tests Run by Ant</id>
>>>                           <phase>test</phase>
>>>                           <goals>
>>>                               <goal>run</goal>
>>>                           </goals>
>>>                        <configuration>
>>>                            <tasks>
>>>                                <ant antfile="${basedir}/run-fit.xml"
>>> dir="${basedir}" inheritRefs="true" />
>>>                            </tasks>
>>>                        </configuration>
>>>                    </execution>
>>>                </executions>
>>>            </plugin>
>>>
>>> and the ant build file:
>>>
>>> <?xml version="1.0"?>
>>> <project name="run-fit" default="run-tests"
>>> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>>>
>>>    <target name="setup">
>>>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>>>            <dependency groupId="aspectj" artifactId="aspectjweaver"
>>> version="1.5.3" />
>>>        </artifact:dependencies>
>>>    </target>
>>>
>>>    <target name="run-tests" depends="setup">
>>>        <echo message="I don't work" />
>>>    </target>
>>> </project>
>>>
>>> os
>>> fedora core 6  version 2.6.22.14-72.fc6
>>>
>>> java version "1.6.0_04"
>>> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>>> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>>>
>>> Cheers
>>> Matt
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>    
>>>      
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>  
>>    
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Can't run ant task in maven 2.0.9

by Brian E Fox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It would be good to have a sample that we can definitively identify where the problem is to make sure it doesn't happen again.

-----Original Message-----
From: Matt Milliss [mailto:matt.milliss@...]
Sent: Wednesday, May 07, 2008 7:04 PM
To: Maven Users List
Subject: Re: Can't run ant task in maven 2.0.9

I've found if I upgrade the antrun plugin to 1.2-SNAPSHOT the problem is
fixed. Should I still log a Jira?

Brian E. Fox wrote:

> Since this is a regression, we will fix it for 2.0.10, can you write a jira and attach a sample project?
>
> -----Original Message-----
> From: Matt Milliss [mailto:matt.milliss@...]
> Sent: Tuesday, May 06, 2008 8:13 PM
> To: users@...
> Subject: Re: Can't run ant task in maven 2.0.9
>
> The problem only happens with maven 2.0.9. If I rollback maven to 2.0.8
> it works fine with ant tasks 2.0.9. And maven 2.0.9 still doesn't work
> with ant tasks 2.0.8. The maven antun plugin version is 1.1. I even
> tried rolling ant back to 1.6.5 as I noticed that the antrun plugin has
> a dependency on 1.6.5 and this didn't fix the problem either.
>
> Regards
> Matt
>
> Hervé BOUTEMY wrote:
>  
>> and give the exact version of the maven-antrun-plugin used
>>
>> Le dimanche 04 mai 2008, Brian E. Fox a écrit :
>>  
>>    
>>> Can you try to isolate this to the Ant task or Maven update? Ie don't
>>> update them both at the same time and see which one actually causes the
>>> breakage.
>>>
>>> -----Original Message-----
>>> From: Matthew Milliss [mailto:matt.milliss@...]
>>> Sent: Sunday, May 04, 2008 5:14 AM
>>> To: users@...
>>> Subject: Can't run ant task in maven 2.0.9
>>>
>>> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
>>> into my ant install lib directory (ant 1.7) and now when I run my antrun
>>>
>>> plugin it fails with the message:
>>>
>>> Embedded error: The following error occurred while executing this line:
>>> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
>>> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>>>
>>> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>>>
>>> or 1.7. Has anybody experienced this issue and know what the problem is?
>>>
>>> here is the antrun config in my pom:
>>>            <plugin>
>>>                <groupId>org.apache.maven.plugins</groupId>
>>>                <artifactId>maven-antrun-plugin</artifactId>
>>>                <executions>
>>>                    <execution>
>>>                        <id>Tests Run by Ant</id>
>>>                           <phase>test</phase>
>>>                           <goals>
>>>                               <goal>run</goal>
>>>                           </goals>
>>>                        <configuration>
>>>                            <tasks>
>>>                                <ant antfile="${basedir}/run-fit.xml"
>>> dir="${basedir}" inheritRefs="true" />
>>>                            </tasks>
>>>                        </configuration>
>>>                    </execution>
>>>                </executions>
>>>            </plugin>
>>>
>>> and the ant build file:
>>>
>>> <?xml version="1.0"?>
>>> <project name="run-fit" default="run-tests"
>>> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>>>
>>>    <target name="setup">
>>>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>>>            <dependency groupId="aspectj" artifactId="aspectjweaver"
>>> version="1.5.3" />
>>>        </artifact:dependencies>
>>>    </target>
>>>
>>>    <target name="run-tests" depends="setup">
>>>        <echo message="I don't work" />
>>>    </target>
>>> </project>
>>>
>>> os
>>> fedora core 6  version 2.6.22.14-72.fc6
>>>
>>> java version "1.6.0_04"
>>> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>>> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>>>
>>> Cheers
>>> Matt
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>    
>>>      
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>  
>>    
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Can't run ant task in maven 2.0.9

by Matt Milliss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've written a very simple project and I now believe that the maven
version is not the problem as I can now reproduce the problem in 2.0.8
and 2.0.9. The issue seems to be the antrun plugin version 1.1 as
1.2-SNAPSHOT works okay. Below is the pom and ant file I used and run
"mvn test", if I change the antrun plugin version to 1.2-SNAPSHOT it
will work.

pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.app</groupId>
  <artifactId>my-app</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>my-app</name>
  <url>http://maven.apache.org</url>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
            <version>1.1</version>
                <executions>
                    <execution>
                        <id>Run an ant task</id>
                           <phase>test</phase>
                           <goals>
                               <goal>run</goal>
                           </goals>
                        <configuration>
                            <tasks>
                                        <ant
antfile="${basedir}/run-ant-task.xml" dir="${basedir}" inheritRefs="true" />
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

run-ant-task.xml
<?xml version="1.0"?>
<project name="run-ant-task" default="run-ant-task"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">

    <target name="setup">
        <artifact:dependencies filesetId="aspectjweaver.fileset">
            <dependency groupId="aspectj" artifactId="aspectjweaver"
version="1.5.3" />
        </artifact:dependencies>
        <copy todir="${basedir}/target/" flatten="true">
            <fileset refId="aspectjweaver.fileset"/>
        </copy>
    </target>

    <target name="run-ant-task" depends="setup">
        <echo message="I won't get run" />
    </target>
</project>  

Brian E. Fox wrote:

> It would be good to have a sample that we can definitively identify where the problem is to make sure it doesn't happen again.
>
> -----Original Message-----
> From: Matt Milliss [mailto:matt.milliss@...]
> Sent: Wednesday, May 07, 2008 7:04 PM
> To: Maven Users List
> Subject: Re: Can't run ant task in maven 2.0.9
>
> I've found if I upgrade the antrun plugin to 1.2-SNAPSHOT the problem is
> fixed. Should I still log a Jira?
>
> Brian E. Fox wrote:
>  
>> Since this is a regression, we will fix it for 2.0.10, can you write a jira and attach a sample project?
>>
>> -----Original Message-----
>> From: Matt Milliss [mailto:matt.milliss@...]
>> Sent: Tuesday, May 06, 2008 8:13 PM
>> To: users@...
>> Subject: Re: Can't run ant task in maven 2.0.9
>>
>> The problem only happens with maven 2.0.9. If I rollback maven to 2.0.8
>> it works fine with ant tasks 2.0.9. And maven 2.0.9 still doesn't work
>> with ant tasks 2.0.8. The maven antun plugin version is 1.1. I even
>> tried rolling ant back to 1.6.5 as I noticed that the antrun plugin has
>> a dependency on 1.6.5 and this didn't fix the problem either.
>>
>> Regards
>> Matt
>>
>> Hervé BOUTEMY wrote:
>>  
>>    
>>> and give the exact version of the maven-antrun-plugin used
>>>
>>> Le dimanche 04 mai 2008, Brian E. Fox a écrit :
>>>  
>>>    
>>>      
>>>> Can you try to isolate this to the Ant task or Maven update? Ie don't
>>>> update them both at the same time and see which one actually causes the
>>>> breakage.
>>>>
>>>> -----Original Message-----
>>>> From: Matthew Milliss [mailto:matt.milliss@...]
>>>> Sent: Sunday, May 04, 2008 5:14 AM
>>>> To: users@...
>>>> Subject: Can't run ant task in maven 2.0.9
>>>>
>>>> I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant
>>>> into my ant install lib directory (ant 1.7) and now when I run my antrun
>>>>
>>>> plugin it fails with the message:
>>>>
>>>> Embedded error: The following error occurred while executing this line:
>>>> /home/development/workspace/backoffice/run-fit.xml:5: Could not create
>>>> task or type of type: antlib:org.apache.maven.artifact.ant:dependencies.
>>>>
>>>> I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5
>>>>
>>>> or 1.7. Has anybody experienced this issue and know what the problem is?
>>>>
>>>> here is the antrun config in my pom:
>>>>            <plugin>
>>>>                <groupId>org.apache.maven.plugins</groupId>
>>>>                <artifactId>maven-antrun-plugin</artifactId>
>>>>                <executions>
>>>>                    <execution>
>>>>                        <id>Tests Run by Ant</id>
>>>>                           <phase>test</phase>
>>>>                           <goals>
>>>>                               <goal>run</goal>
>>>>                           </goals>
>>>>                        <configuration>
>>>>                            <tasks>
>>>>                                <ant antfile="${basedir}/run-fit.xml"
>>>> dir="${basedir}" inheritRefs="true" />
>>>>                            </tasks>
>>>>                        </configuration>
>>>>                    </execution>
>>>>                </executions>
>>>>            </plugin>
>>>>
>>>> and the ant build file:
>>>>
>>>> <?xml version="1.0"?>
>>>> <project name="run-fit" default="run-tests"
>>>> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>>>>
>>>>    <target name="setup">
>>>>        <artifact:dependencies filesetId="aspectjweaver.fileset">
>>>>            <dependency groupId="aspectj" artifactId="aspectjweaver"
>>>> version="1.5.3" />
>>>>        </artifact:dependencies>
>>>>    </target>
>>>>
>>>>    <target name="run-tests" depends="setup">
>>>>        <echo message="I don't work" />
>>>>    </target>
>>>> </project>
>>>>
>>>> os
>>>> fedora core 6  version 2.6.22.14-72.fc6
>>>>
>>>> java version "1.6.0_04"
>>>> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>>>> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>>>>
>>>> Cheers
>>>> Matt
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>    
>>>>      
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>  
>>>    
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>  
>>    
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...