You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by uranodi <di...@yahoo.com.br> on 2011/09/27 15:08:07 UTC

Change version of a Dependency

I need change version of a dependency but I can`t find a way to not depend on
the Dependency`s oldVersion. I have:

    <dependencyManagement>
        <dependencies>
            ...
            <dependency>
                <groupId>com.legi.info</groupId>
                <artifactId>MRK<artifactId>
                <version>2.10.03</version>
                <classifier>exp</classifier>
            </dependency>
            ...
        </dependencies>
   </dependencyManagement>


I used: 

mvn versions:set -DgroupId=com.legi.info -DartifactId=MRK
-DnewVersion=2.10.05 -DoldVersion=2.10.03 versions:commit


But I don't want write to oldVersion, only the newversion. 

I tried:

mvn versions:set -DgroupId=com.legi.info -DartifactId=MRK
-DnewVersion=2.10.05 -DoldVersion=* versions:commit

But it didn't work. Is there a wildcard I can use?

Best regards,

--
View this message in context: http://maven.40175.n5.nabble.com/Change-version-of-a-Dependency-tp4845294p4845294.html
Sent from the Maven Developers mailing list archive at Nabble.com.

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