简体   繁体   English

uniqueVersion标签被maven忽略

[英]uniqueVersion tag ignored by maven

I'm trying to do something I thought was simple: Stop unique versions of SNAPSHOT builds being created due to space considerations. 我正在尝试做一些我认为很简单的事情:由于空间考虑,停止创建SNAPSHOT构建的唯一版本。

So I setup my pom with this: 所以我用这个设置了我的pom:

<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 . 然后只需运行mvn clean deploy However the build is still prefixed with -20110305.210936-1 但是,构建仍然-20110305.210936-1为前缀

What am I doing wrong here? 我在这做错了什么? Is there a tag or switch I'm missing? 我丢失了标签或开关吗?

Maven version: 3.0.3 Maven版本:3.0.3

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

Maven 3不再允许您控制此选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM