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/07/19 15:06:41 UTC

[maven-indexer] branch master updated: [MINDEXER-148] Do not replace CLI (#203)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 31052fd  [MINDEXER-148] Do not replace CLI (#203)
31052fd is described below

commit 31052fdeebc8a9f845eb18cd4c13669b316b3e29
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Tue Jul 19 17:06:36 2022 +0200

    [MINDEXER-148] Do not replace CLI (#203)
    
    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 4e81f01..f7e2fa9 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>
+    <cliClassifier>cli</cliClassifier>
+  </properties>
+
   <dependencies>
     <!-- The indexer -->
     <dependency>
@@ -118,7 +122,8 @@ under the License.
               <goal>shade</goal>
             </goals>
             <configuration>
-              <shadedArtifactAttached>false</shadedArtifactAttached>
+              <shadedClassifierName>${cliClassifier}</shadedClassifierName>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
               <createDependencyReducedPom>false</createDependencyReducedPom>
               <filters>
                 <filter>
@@ -162,7 +167,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}-${cliClassifier}.jar</indexerJar>
               </systemPropertyVariables>
             </configuration>
           </execution>