我正在使用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
的情况下,版本号的更新未提交,因此未提交SNAPSHOT。它显示为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
操作系统名称:&#34; mac os x&#34;,版本:&#34; 10.10.1&#34;,arch:&#34; x86_64&#34;,系列:&#34; mac&#34 ;
答案 0 :(得分:2)
一般情况下:当遇到特定maven-plugin的问题时,请验证您是否使用了最新版本并尝试先升级。
答案 1 :(得分:0)
将版本从2.3.2
更新到2.5.3
为我解决了这个问题。肯定,2.3.2
的{{1}}版本不正确