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 2024/08/27 09:40:53 UTC

(maven) branch maven-cling updated: Add picocli to picture

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

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


The following commit(s) were added to refs/heads/maven-cling by this push:
     new 18d99b365a Add picocli to picture
18d99b365a is described below

commit 18d99b365a155ca7ef20faf98255550643f6a46b
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Tue Aug 27 11:40:36 2024 +0200

    Add picocli to picture
---
 maven-cli/pom.xml | 21 +++++++++++++++++++++
 pom.xml           |  7 +++++++
 2 files changed, 28 insertions(+)

diff --git a/maven-cli/pom.xml b/maven-cli/pom.xml
index 9a181d66a2..a4c7b3e07b 100644
--- a/maven-cli/pom.xml
+++ b/maven-cli/pom.xml
@@ -100,6 +100,11 @@ under the License.
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
     </dependency>
+    <dependency>
+      <groupId>info.picocli</groupId>
+      <artifactId>picocli</artifactId>
+      <version>4.7.6</version>
+    </dependency>
     <dependency>
       <groupId>commons-cli</groupId>
       <artifactId>commons-cli</artifactId>
@@ -175,6 +180,22 @@ under the License.
         <groupId>org.eclipse.sisu</groupId>
         <artifactId>sisu-maven-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <annotationProcessorPaths>
+            <path>
+              <groupId>info.picocli</groupId>
+              <artifactId>picocli-codegen</artifactId>
+              <version>${picocliVersion}</version>
+            </path>
+          </annotationProcessorPaths>
+          <compilerArgs>
+            <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
+          </compilerArgs>
+        </configuration>
+      </plugin>
       <plugin>
         <groupId>org.codehaus.modello</groupId>
         <artifactId>modello-maven-plugin</artifactId>
diff --git a/pom.xml b/pom.xml
index 0b959ae242..2ce7245a71 100644
--- a/pom.xml
+++ b/pom.xml
@@ -180,6 +180,7 @@ under the License.
     <jxpathVersion>1.3</jxpathVersion>
     <logbackClassicVersion>1.5.7</logbackClassicVersion>
     <mockitoVersion>5.12.0</mockitoVersion>
+    <picocliVersion>4.7.6</picocliVersion>
     <plexusInteractivityVersion>1.3</plexusInteractivityVersion>
     <plexusInterpolationVersion>1.27</plexusInterpolationVersion>
     <plexusTestingVersion>1.4.0</plexusTestingVersion>
@@ -553,6 +554,12 @@ under the License.
         <artifactId>maven-resolver-transport-wagon</artifactId>
         <version>${resolverVersion}</version>
       </dependency>
+      <!-- CLIng -->
+      <dependency>
+        <groupId>info.picocli</groupId>
+        <artifactId>picocli</artifactId>
+        <version>${picocliVersion}</version>
+      </dependency>
       <!--  Commons -->
       <dependency>
         <groupId>commons-cli</groupId>