简体   繁体   English

Maven:发布插件不提交更新版本

[英]Maven: Release Plugin Does Not Commit Updated Versions

I am using the Maven release plugin.我正在使用 Maven 发布插件。 When I run当我跑

mvn release:prepare

I am prompted with the usual about the versions我被提示与通常的版本有关

What is the release version for "FOO"? (foo:bar) 1.10.99999:
What is the new development version for "FOO"? (foo:bar) 1.10.100000-SNAPSHOT:

The process completes normally.该过程正常完成。 A tag is created and pushed to the correct repository as specified in the SCM tag:创建一个标签并将其推送到 SCM 标签中指定的正确存储库:

<scm>
    <connection>scm:git:git@top.secret.repo:foo/bar.git</connection>
    <tag>HEAD</tag>
</scm>

But the updates to the versions numbers are not committed, and thus the SNAPSHOT, in the case the 1.10.99999-SNAPSHOT is deployed on mvn deploy .但是不会提交对版本号的更新,因此不会提交 SNAPSHOT,如果1.10.99999-SNAPSHOT部署在mvn deploy It appears others have had this issue as well but no real answer has been found似乎其他人也有这个问题,但没有找到真正的答案

What is happening here and how do I fix it?这里发生了什么,我该如何解决?

This is on Mac OSX.这是在 Mac OSX 上。 My Maven version is as follows:我的Maven版本如下:

$ brew info maven
  maven: stable 3.2.5
  http://maven.apache.org/
  /usr/local/Cellar/maven/3.2.3 (76 files, 8.0M) *
  Built from source
  From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/maven.rb

$ mvn --version
    Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T13:58:10-07:00)
    Maven home: /usr/local/Cellar/maven/3.2.3/libexec
    Java version: 1.7.0_67, vendor: Oracle Corporation
    Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre
    Default locale: en_US, platform encoding: UTF-8

OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"操作系统名称:“mac os x”,版本:“10.10.1”,架构:“x86_64”,系列:“mac”

通常:当遇到特定 maven-plugin 的问题时,请验证您是否使用最新版本并尝试先升级。

Updating the version from 2.3.2 to 2.5.3 solves the issue for me.将版本从2.3.2更新到2.5.3为我解决了这个问题。 Definitely, something isn't right with the 2.3.2 version of the maven-release-plugin当然, maven-release-plugin2.3.2版本有问题

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

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