You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/04/27 16:52:27 UTC

[maven-indexer] branch move-out--cli created (now 07ca095)

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

cstamas pushed a change to branch move-out--cli
in repository https://gitbox.apache.org/repos/asf/maven-indexer.git


      at 07ca095  Do not replace CLI

This branch includes the following new commits:

     new 07ca095  Do not replace CLI

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-indexer] 01/01: Do not replace CLI

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch move-out--cli
in repository https://gitbox.apache.org/repos/asf/maven-indexer.git

commit 07ca0956830c17d6e3eb14d61871a90a52eb4412
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Wed Apr 27 18:51:33 2022 +0200

    Do not replace CLI
    
    For simplicity sake, the shaded CLI
    executable JAR will have a classifier,
    instead to replace the main artifact.
    
    This implies GAV of CLI will change,
    so is on hold until next major release.
---
 indexer-cli/pom.xml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/indexer-cli/pom.xml b/indexer-cli/pom.xml
index 95a8484..83baa58 100644
--- a/indexer-cli/pom.xml
+++ b/indexer-cli/pom.xml
@@ -36,6 +36,10 @@ under the License.
   <!-- IMPORTANT! * WHEN YOU CHANGE DEPS MAKE SURE TO UPDATE SHADE CONFIG! * DON'T FORGET OTHERWISE YOU ARE RENDERING CLI 
     UNWORKABLE! -->
 
+  <properties>
+    <shadedClassifier>shaded</shadedClassifier>
+  </properties>
+
   <dependencies>
     <!-- The indexer -->
     <dependency>
@@ -118,7 +122,8 @@ under the License.
               <goal>shade</goal>
             </goals>
             <configuration>
-              <shadedArtifactAttached>false</shadedArtifactAttached>
+              <shadedClassifierName>${shadedClassifier}</shadedClassifierName>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
               <createDependencyReducedPom>false</createDependencyReducedPom>
               <filters>
                 <filter>
@@ -161,7 +166,7 @@ under the License.
               <redirectTestOutputToFile>${failsafe.redirectTestOutputToFile}</redirectTestOutputToFile>
               <systemPropertyVariables>
                 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
-                <indexerJar>${project.build.directory}/${project.artifactId}-${project.version}.jar</indexerJar>
+                <indexerJar>${project.build.directory}/${project.artifactId}-${project.version}-${shadedClassifier}.jar</indexerJar>
               </systemPropertyVariables>
             </configuration>
           </execution>