You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2021/06/04 18:56:37 UTC

[activemq-artemis] 02/05: ARTEMIS-3328: only build the source-release assembly during the release process, or upon request

This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit c05c5955f3c2398f05b8cb728e6c801576b0cf62
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Thu Jun 3 11:41:14 2021 +0100

    ARTEMIS-3328: only build the source-release assembly during the release process, or upon request
---
 artemis-distribution/pom.xml | 40 +++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)

diff --git a/artemis-distribution/pom.xml b/artemis-distribution/pom.xml
index 82bdf48..eae42a6 100644
--- a/artemis-distribution/pom.xml
+++ b/artemis-distribution/pom.xml
@@ -264,19 +264,6 @@
          <plugin>
             <artifactId>maven-assembly-plugin</artifactId>
             <executions>
-              <execution>
-                  <id>source</id>
-                  <configuration>
-                     <descriptors>
-                       <descriptor>src/main/assembly/source-assembly.xml</descriptor>
-                     </descriptors>
-                     <tarLongFileMode>posix</tarLongFileMode>
-                  </configuration>
-                  <phase>package</phase>
-                  <goals>
-                     <goal>single</goal>
-                  </goals>
-               </execution>
                <execution>
                   <id>bin</id>
                   <configuration>
@@ -329,4 +316,31 @@
       </plugins>
    </build>
 
+   <profiles>
+      <profile>
+         <id>apache-release</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <artifactId>maven-assembly-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>source</id>
+                        <configuration>
+                           <descriptors>
+                              <descriptor>src/main/assembly/source-assembly.xml</descriptor>
+                           </descriptors>
+                           <tarLongFileMode>posix</tarLongFileMode>
+                        </configuration>
+                        <phase>package</phase>
+                        <goals>
+                           <goal>single</goal>
+                        </goals>
+                     </execution>
+                  </executions>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 </project>