This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-release.git
The following commit(s) were added to refs/heads/master by this push:
new 0856b129 Include "[ci skip]" by default in scmReleaseCommitComment
0856b129 is described below
commit 0856b129941a9e0137e6d30f02b059bd2fc0749e
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Nov 19 10:56:53 2025 +0100
Include "[ci skip]" by default in scmReleaseCommitComment
This leads to skipping this commit from auto-building with most CI/CD
systems.
Compare with
https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs,
https://docs.gitlab.com/ci/pipelines/#skip-a-pipeline and
https://plugins.jenkins.io/scmskip/
This closes #1422
---
.../maven/plugins/release/PrepareReleaseMojo.java | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git
a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
index 796baf62..2bc70869 100644
---
a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
+++
b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
@@ -269,7 +269,7 @@ public class PrepareReleaseMojo extends
AbstractScmReadWriteReleaseMojo {
private String projectTagNamingPolicyId;
/**
- * The SCM commit comment when setting pom.xml to release.
+ * The SCM commit comment for the commit setting pom.xml to release
version.
* Defaults to "@{prefix} prepare release @{releaseLabel}".
* <p>
* Property interpolation is performed on the value, but in order to
ensure that the interpolation occurs
@@ -281,14 +281,21 @@ public class PrepareReleaseMojo extends
AbstractScmReadWriteReleaseMojo {
* <li><code>artifactId</code> - The artifactId of the root project.
* <li><code>releaseLabel</code> - The release version of the root
project.
* </ul>
- *
+ * It is recommended to automatically skip this commit from the default
CI/CD build by including the string {@code ci skip}
+ * in the commit message which is understood
+ * by most CI systems, like <a
href="https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs">GitHub
Actions</a>,
+ * <a href="https://docs.gitlab.com/ci/pipelines/#skip-a-pipeline">GitLab
Pipelines</a>, and probably some more.
+ * Otherwise the non-SNAPSHOT version is built again (outside the actual
release) and potentially also deployed somewhere
+ * (which often leads to failed builds).
* @since 3.0.0-M1
*/
- @Parameter(defaultValue = "@{prefix} prepare release @{releaseLabel}",
property = "scmReleaseCommitComment")
- private String scmReleaseCommitComment = "@{prefix} prepare release
@{releaseLabel}";
+ @Parameter(
+ defaultValue = "@{prefix} prepare release @{releaseLabel} [ci
skip]",
+ property = "scmReleaseCommitComment")
+ private String scmReleaseCommitComment = "@{prefix} prepare release
@{releaseLabel} [ci skip]";
/**
- * The SCM commit comment when setting pom.xml back to development.
+ * The SCM commit comment for the commit setting pom.xml back to
development version.
* Defaults to "@{prefix} prepare for next development iteration".
* <p>
* Property interpolation is performed on the value, but in order to
ensure that the interpolation occurs