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/sling-parent.git
The following commit(s) were added to refs/heads/master by this push:
new c95e207 SLING-10160 generate source-release.zip for both parent poms
(#15)
c95e207 is described below
commit c95e2074814fce100a17437b4e927487f13daaa6
Author: Konrad Windszus <[email protected]>
AuthorDate: Fri Feb 26 08:14:35 2021 +0100
SLING-10160 generate source-release.zip for both parent poms (#15)
---
sling-bundle-parent/.isParentPom | 1 +
sling-parent/.isParentPom | 1 +
sling-parent/pom.xml | 39 +++++++++++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+)
diff --git a/sling-bundle-parent/.isParentPom b/sling-bundle-parent/.isParentPom
new file mode 100644
index 0000000..f59cc86
--- /dev/null
+++ b/sling-bundle-parent/.isParentPom
@@ -0,0 +1 @@
+# this file is only there in the parent poms and leads to activation of a
special profile "parent-pom-build"
\ No newline at end of file
diff --git a/sling-parent/.isParentPom b/sling-parent/.isParentPom
new file mode 100644
index 0000000..f59cc86
--- /dev/null
+++ b/sling-parent/.isParentPom
@@ -0,0 +1 @@
+# this file is only there in the parent poms and leads to activation of a
special profile "parent-pom-build"
\ No newline at end of file
diff --git a/sling-parent/pom.xml b/sling-parent/pom.xml
index fb0e64e..dfb20ef 100644
--- a/sling-parent/pom.xml
+++ b/sling-parent/pom.xml
@@ -850,6 +850,45 @@
</pluginManagement>
</build>
</profile>
+ <!-- This profile is only active when building this parent pom (or
sling-bundle-parent) -->
+ <profile>
+ <id>parent-pom-build</id>
+ <activation>
+ <file>
+ <exists>.isParentPom</exists>
+ </file>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <!-- Create a source-release artifact that contains the
fully buildable
+ project directory source structure. This is the
artifact which is
+ the official subject of any release vote. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <!-- add dedicated execution as the one defined in
ASF Parent POM only runs at execution root -->
+ <executions>
+ <execution>
+ <id>source-release-assembly-for-pom</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+
<runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
+ <descriptorRefs>
+
<descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
+ </descriptorRefs>
+
<tarLongFileMode>posix</tarLongFileMode>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
</profiles>
<mailingLists>