You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2022/05/06 05:03:39 UTC
[maven-release] branch MRELEASE-955 updated: [MRELEASE-955] add POM snippet
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MRELEASE-955
in repository https://gitbox.apache.org/repos/asf/maven-release.git
The following commit(s) were added to refs/heads/MRELEASE-955 by this push:
new 42fd8c71 [MRELEASE-955] add POM snippet
42fd8c71 is described below
commit 42fd8c71db71f3df12cf54629203d3f68665b903
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Fri May 6 07:03:36 2022 +0200
[MRELEASE-955] add POM snippet
---
...{update-versions.apt => update-versions.apt.vm} | 0
maven-release-plugin/src/site/apt/upgrade.apt | 40 ++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/maven-release-plugin/src/site/apt/examples/update-versions.apt b/maven-release-plugin/src/site/apt/examples/update-versions.apt.vm
similarity index 100%
rename from maven-release-plugin/src/site/apt/examples/update-versions.apt
rename to maven-release-plugin/src/site/apt/examples/update-versions.apt.vm
diff --git a/maven-release-plugin/src/site/apt/upgrade.apt b/maven-release-plugin/src/site/apt/upgrade.apt
index adbfe070..93f66930 100644
--- a/maven-release-plugin/src/site/apt/upgrade.apt
+++ b/maven-release-plugin/src/site/apt/upgrade.apt
@@ -50,6 +50,46 @@ Upgrading Maven Release Plugin From 2 to 3
{{{https://central.sonatype.org/publish/publish-maven/}the documentation}}
[]
+
+ Then configure <<<maven-release-plugin>>> to use that profile during <<<release:perform>>> with <<<releaseProfiles>>> parameter:
+
++-------+
+<project>
+ [...]
+ <build>
+ [...]
+ <plugins>
+ [...]
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>${project.version}</version>
+ <configuration>
+ <releaseProfiles>my-project-release</releaseProfiles>
+ </configuration>
+ </plugin>
+ [...]
+ </plugins>
+ [...]
+ </build>
+
+ [...]
+
+ <profiles>
+ <profile>
+ <id>my-project-release</id>
+ <build>
+ <plugins>
+ [...
+ put here your release-specific plugins invocations, like maven-source-plugin, maven-javadoc-plugin, maven-gpg-plugin, ...
+ ...]
+ </plugins>
+ </build>
+ </profile>
+ [...]
+ </profiles>
+</project>
++-------+
** Short Term: Force Using Maven 3-only Default Release Profile