Maven:发布插件不提交更新版本
Maven: Release Plugin Does Not Commit Updated Versions
我正在使用 Maven 发布插件。当我运行
mvn release:prepare
我收到有关版本的常规提示
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:
进程正常完成。创建标签并将其推送到 SCM 标签中指定的正确存储库:
<scm>
<connection>scm:git:git@top.secret.repo:foo/bar.git</connection>
<tag>HEAD</tag>
</scm>
但是版本号的更新没有提交,因此快照,在 1.10.99999-SNAPSHOT
部署在 mvn deploy
的情况下。出现 others have had this issue as well but no real answer has been found
这是怎么回事,我该如何解决?
这是在 Mac OSX 上。我的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 名称:"mac os x",版本:“10.10.1”,架构:"x86_64",家族:"mac"
一般情况下:当遇到特定 maven-plugin 的问题时,请确认您使用的是否是最新版本并先尝试升级。
将版本从 2.3.2
更新到 2.5.3
解决了我的问题。 2.3.2
版本的 maven-release-plugin
肯定有问题
我正在使用 Maven 发布插件。当我运行
mvn release:prepare
我收到有关版本的常规提示
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:
进程正常完成。创建标签并将其推送到 SCM 标签中指定的正确存储库:
<scm>
<connection>scm:git:git@top.secret.repo:foo/bar.git</connection>
<tag>HEAD</tag>
</scm>
但是版本号的更新没有提交,因此快照,在 1.10.99999-SNAPSHOT
部署在 mvn deploy
的情况下。出现 others have had this issue as well but no real answer has been found
这是怎么回事,我该如何解决?
这是在 Mac OSX 上。我的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 名称:"mac os x",版本:“10.10.1”,架构:"x86_64",家族:"mac"
一般情况下:当遇到特定 maven-plugin 的问题时,请确认您使用的是否是最新版本并先尝试升级。
将版本从 2.3.2
更新到 2.5.3
解决了我的问题。 2.3.2
版本的 maven-release-plugin