Chris wrote:
The antrun plugin seems to be executing Ant 1.6.5, not Ant 1.7 (according to the debug logs).

I'm running it within Eclipse 3.3. Eclipse has 1.7 installed, so Maven must be getting 1.6.5 elsewhere.

How can I get it to use the more recent version?

Figured it out. The antrun plugin uses whatever version of Ant there is in the local repository. To upgrade it, just put the dependency in the project's pom:

<!-- 1.7.1 is required for the ant script to work-->
<dependency>
        <groupId>org.apache.ant</groupId>
        <artifactId>ant</artifactId>
        <version>1.7.1</version>
        <scope>test</scope>
</dependency>
<dependency>
        <groupId>org.apache.ant</groupId>
        <artifactId>ant-launcher</artifactId>
        <version>1.7.1</version>
        <scope>test</scope>
</dependency>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to