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/08 09:00:11 UTC
[maven-wrapper] branch master updated: [MWRAPPER-39] release source archive as maven-wrapper instead of parent
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git
The following commit(s) were added to refs/heads/master by this push:
new 2cb418d [MWRAPPER-39] release source archive as maven-wrapper instead of parent
2cb418d is described below
commit 2cb418d1fd8eb8231ee7e746f9460fa1b7ebb11c
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun May 8 11:00:09 2022 +0200
[MWRAPPER-39] release source archive as maven-wrapper instead of parent
---
maven-wrapper/pom.xml | 23 +++++++++++++++++++++++
pom.xml | 21 +++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/maven-wrapper/pom.xml b/maven-wrapper/pom.xml
index 254bcb0..3e1e29f 100644
--- a/maven-wrapper/pom.xml
+++ b/maven-wrapper/pom.xml
@@ -82,4 +82,27 @@ under the License.
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>apache-release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>source-release-assembly</id>
+ <configuration>
+ <skipAssembly>false</skipAssembly>
+ <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
+ <archiveBaseDirectory>../</archiveBaseDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
diff --git a/pom.xml b/pom.xml
index 7cd1296..73e6430 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,4 +70,25 @@ under the License.
<module>maven-wrapper-plugin</module>
</modules>
+ <profiles>
+ <profile>
+ <id>apache-release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>source-release-assembly</id>
+ <configuration>
+ <!-- we prefer doing the source release archive in maven-wrapper module instead of maven-wrapper-parent -->
+ <skipAssembly>true</skipAssembly>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>