You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2023/03/20 12:12:59 UTC

[jackrabbit-oak] branch 1.22 updated: OAK-10032 get rid of m-antrun-p to replace the main artifact (#794)

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

reschke pushed a commit to branch 1.22
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/1.22 by this push:
     new 4772d90c70 OAK-10032 get rid of m-antrun-p to replace the main artifact (#794)
4772d90c70 is described below

commit 4772d90c70e57ad7938a374953a4f91b43d9d5ac
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Dec 16 14:31:12 2022 +0100

    OAK-10032 get rid of m-antrun-p to replace the main artifact (#794)
    
    * OAK-10032 get rid of m-antrun-p to replace the main artifact
    
    * OAK-10032: apply fix to oak-run-elastic as well
    
    Co-authored-by: Julian Reschke <re...@apache.org>
    Co-authored-by: Julian Reschke <ju...@gmx.de>
---
 oak-run/pom.xml | 26 ++------------------------
 1 file changed, 2 insertions(+), 24 deletions(-)

diff --git a/oak-run/pom.xml b/oak-run/pom.xml
index 69fc5bea8b..4643d57211 100644
--- a/oak-run/pom.xml
+++ b/oak-run/pom.xml
@@ -106,34 +106,12 @@
               <descriptors>
                 <descriptor>src/main/assembly/oak-run.xml</descriptor>
               </descriptors>
+              <!-- use the new assembly as main artifact (i.e replace the original jar -->
+              <appendAssemblyId>false</appendAssemblyId>
             </configuration>
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>1.8</version>
-        <executions>
-          <execution>
-            <phase>package</phase>
-            <configuration>
-              <target>
-                <!--
-                Replace the default oak-run with the one created in assembly so
-                as to ensure default artifact oak-run is the one which has all jars
-                embedded
-                -->
-                <copy file="${project.build.directory}/${project.build.finalName}-oak.jar" tofile="${project.build.directory}/${project.build.finalName}.jar" />
-                <delete file="${project.build.directory}/${project.build.finalName}-oak.jar" />
-              </target>
-            </configuration>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>com.phasebash.jsdoc</groupId>
         <artifactId>jsdoc3-maven-plugin</artifactId>