Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

确认一下本地和远程的 release/0.11.1 的 tag 被删掉了:

(在这个文档中,一定不要把下面的分支名字换成一个真实存在的名字,防止有人直接复制粘贴,故以0.11.x替代0.11.1)

删本地 tag:$git tag -d release/0.11.1x

删远端 tag:git push origin :refs/tags/release/0.11.1x


执行:

$ mvn release:prepare -DautoVersionSubmodules=true -P site -P client-cpp

执行时,会让你输入三个内容:

a. 希望发布的版本号,默认值为pom中的版本号去掉“-SNAPSHOT”,一般可以不修改

...

例如,Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. 这个是指的有项目中的依赖的jar包版本冲突,这时候要用exclusion来进行排除。具体内容可以google。

)

(如果thrift下载总是被墙,可以先手动下载下来,然后添加如下命令:

-Dthrift.download-url=http://apache.org/licenses/LICENSE-2.0.txt -Dthrift.exec.absolute.path=刚才你下载的thrift文件的本地绝对路径

)




这个过程会自动地把pom中版本的“-SNAPSHOT”删除,然后在云端创建tag。

...

删本地 tag:$git tag -d release/0.11.1x

删远端 tag:git push origin :refs/tags/release/0.11.1x

我的话,没有用rollback这个指令,而是直接覆盖重新再来:

...

Before voting +1, PMC members are required to download
the signed source code package, compile it as provided, and test
the resulting executable on their own platform, along with also
verifying that the package meets the requirements of the ASF policy
on releases. [3]

You can achieve the above by following [4].

...

然后手动删除github上的release和tag,以及本地的tag。

(在这个文档中,一定不要把下面的分支名字换成一个真实存在的名字,防止有人直接复制粘贴)

删除远端 tag:git push origin :refs/tags/release/0.11.1x

删除本地 tag:git tag -d release/0.11.1x



然后使用maven插件来管理版本就好:

$ mvn release:prepare -DautoVersionSubmodules=true

...