我现在使用 scm:checkin 在preparationGoals
清理验证 org.codehaus.mojo:build-helper-maven-plugin:1.5:parse-version com.google.code.maven-replacer-plugin:replacer:1.5.0:replace scm:checkin -Dmessage="... " -DworkingDirectory=./.../...
但这与 pom.xml 的提交不同。这导致 mvn rellease:rollback 不会回滚准备目标中的第一个提交!
现在看起来像这样:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagBase>
......
</tagBase>
<autoVersionSubmodules>true</autoVersionSubmodules>
<arguments>-Dtest='*IT,*Test' -DfailIfNoTests=false</arguments>
<tagNameFormat>@{project.version}</tagNameFormat>
<preparationGoals>clean verify org.codehaus.mojo:build-helper-maven-plugin:parse-version com.google.code.maven-replacer-plugin:replacer:replace scm:checkin -Dmessage="Version in Komponentenversion.sql incrementiert" -DworkingDirectory=./db/include</preparationGoals>
</configuration>
</plugin>