Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uniqueVersion tag ignored by maven

Tags:

java

maven

I'm trying to do something I thought was simple: Stop unique versions of SNAPSHOT builds being created due to space considerations.

So I setup my pom with this:

<distributionManagement>
    ...
    <!--Snapshot deploy repository-->
    <snapshotRepository>
        <id>maven-general-repo.googlecode.com</id>
        <name>General Maven Repo on Google Code</name>
        <url>dav:https://general-maven-repo.googlecode.com/svn/maven2/snapshots</url>
        <uniqueVersion>false</uniqueVersion>
    </snapshotRepository>
    ...
</distributionManagement>

And then simply run mvn clean deploy. However the build is still prefixed with -20110305.210936-1

What am I doing wrong here? Is there a tag or switch I'm missing?

Maven version: 3.0.3

maven-deploy-plugin version: --- maven-deploy-plugin:2.5:deploy (default-deploy)

like image 335
TheLQ Avatar asked Mar 05 '11 21:03

TheLQ


1 Answers

Maven 3 no longer allows you to control this option.

like image 90
bmargulies Avatar answered Sep 28 '22 01:09

bmargulies