The easiest solution would be to "build" your own internal pom for
maven-antrunner-plugin and specify the ant 1.7 artifacts as
dependencies, then declare that plugin version number in your pom
where you need to run the ant 1.7 version. Your version would be
something like 1.1-SCHOR.

Grab the source for m-a-p, edit the version to an internal version
specific to your company, edit the dependencies to org.ant.* and
version 1.7, and mvn install/deploy it (you can do this right now).

Or post a JIRA against this plugin asking for a 1.7-compatible release
(but this will not happen overnight).

Wayne

On 2/26/08, Marshall Schor <[EMAIL PROTECTED]> wrote:
> Wayne Fay wrote:
> > <version>1.7.0</> is merely a strong suggestion to Maven.
> > <version>[1.7.0]</> will fail the build if it is unable to acquire
> > this artifact
> >
> Further investigation shows these dependency statements added ant to the
> "compile" <scope> - I think this has nothing to do with what ant-run
> uses.  I tried adding <scope>runtime</scope> but that didn't work either.
>
> > As for the missing 1.7.0 jar files, please ask the Ant team to upload
> > them, or move them to a shared sync directory etc (depends on how they
> > have set this up).
> >
> Further investigation shows the jars for 1.7. 0 *are* in the
> http://repo1.maven.org/maven2/ but not under "ant" but rather under
> "org" (that is, org/apache/ant/... etc.)
>
> So the real underlying problem is the mechanism I tried for the ant
> dependency is not working to specify the ant version to use for the
> maven running.  I think that's coming from the maven-antrun-plugin.
> This plugin has these pom entries:
>
> <dependency>
> <groupId>ant</groupId>
> <artifactId>ant-launcher</artifactId>
> <version>1.6.5</version>
> <scope>runtime</scope>
> </dependency>
> −
>    <dependency>
> <groupId>ant</groupId>
> <artifactId>ant</artifactId>
> <version>1.6.5</version>
> </dependency>
>
> Is there a way to get maven-ant-plugin to use ant 1.7.0 level?
>
> -Marshall
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to