You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthew McCullough <am...@gmail.com> on 2010/03/15 17:07:08 UTC

Maven AntTasks - Forcing updating of cached repo artifacts

I'm having a discussion with some folks that are using the Maven Ant
Tasks.  They are migrating to Maven, but are bridging the time with
some projects consuming those of the Maven-produced artifacts with Ant
projects.

They have a need to, and thus are wondering if there there is a means
to pass the -U flag to the Maven Ant tasks such that it will check
remotely for artifacts again?  We've tried:

<artifact:mvn mavenHome="/usr/local/apache/maven/2.0.9">
          <arg value="-U"/>
        </artifact:mvn>

At first, this documentation led us to believe it might work...

http://maven.apache.org/ant-tasks/examples/mvn.html

But in the end, it just throws an exception.

-Matthew McCullough

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


Re: Maven AntTasks - Forcing updating of cached repo artifacts

Posted by Wayne Fay <wa...@gmail.com>.
Try this:

> <artifact:mvn mavenHome="/usr/local/apache/maven/2.0.9">
>          <arg value="-U"/>
          <arg value="validate"/>
>        </artifact:mvn>

Wayne

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