Hi,

I have several maven projects, and I need to execute a script that updates
the version of a dependency.

this works:
mvn versions:use-latest-versions -Dincludes=my_group:my_artifact

this updates to the lastest version of the dependency. see
http://mojo.codehaus.org/versions-maven-plugin/


however, I need to specify the target version (instead of using the latest
version).
I tried as follows:
mvn versions:use-latest-versions -Dincludes=my_group:my_artifact:jar:1.5

but this still updates to the latest version (the difference is that it
only updates the pom.xml file if the pom.xml has a dependency to
my_group:my_artifact:jar:1.5).


so, is there a maven plugin similar to this one, but than I can specify the
target dependency?
something like this:
mvn versions:use-version -Dtarget=my_group:my_artifact:jar:1.7


Best regards,
David

Reply via email to