You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by hb...@apache.org on 2026/05/24 09:34:21 UTC

(tooling-atr-maven-plugin) 01/01: default values for atr.project and atr.version

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

hboutemy pushed a commit to branch default-values
in repository https://gitbox.apache.org/repos/asf/tooling-atr-maven-plugin.git

commit 4247cce12c40066213f85b936afc6690d992b1f8
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun May 24 11:34:10 2026 +0200

    default values for atr.project and atr.version
---
 pom.xml                                                   | 3 +--
 src/it/apache-release-profile/pom.xml                     | 2 --
 src/main/java/org/apache/tooling/atr/AbstractAtrMojo.java | 4 ++--
 src/site/markdown/usage.md                                | 6 ------
 4 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/pom.xml b/pom.xml
index 66aa3b7..27fe323 100644
--- a/pom.xml
+++ b/pom.xml
@@ -405,9 +405,8 @@ under the License.
             <artifactId>atr-maven-plugin</artifactId>
             <version>${project.version}</version>
             <configuration>
-              <project>${project.artifactId}</project>
+              <project>maven-atr-plugin</project> <!-- ${project.artifactId} default value does not match our need -->
               <!-- https://release-test.apache.org/projects/maven-atr-plugin -->
-              <version>${project.version}</version>
             </configuration>
             <executions>
               <execution>
diff --git a/src/it/apache-release-profile/pom.xml b/src/it/apache-release-profile/pom.xml
index ee34feb..1affa56 100644
--- a/src/it/apache-release-profile/pom.xml
+++ b/src/it/apache-release-profile/pom.xml
@@ -61,8 +61,6 @@ under the License.
             <artifactId>atr-maven-plugin</artifactId>
             <configuration>
               <dryRun>true</dryRun>
-              <project>${project.artifactId}</project>
-              <version>${project.version}</version>
             </configuration>
             <executions>
               <execution>
diff --git a/src/main/java/org/apache/tooling/atr/AbstractAtrMojo.java b/src/main/java/org/apache/tooling/atr/AbstractAtrMojo.java
index 1fd4b5c..86f4ad3 100644
--- a/src/main/java/org/apache/tooling/atr/AbstractAtrMojo.java
+++ b/src/main/java/org/apache/tooling/atr/AbstractAtrMojo.java
@@ -39,13 +39,13 @@ public abstract class AbstractAtrMojo extends AbstractMojo {
     /**
      * The project id for ATR upload.
      */
-    @Parameter(property = "atr.project", required = true)
+    @Parameter(property = "atr.project", defaultValue = "${project.artifactId}")
     protected String project;
 
     /**
      * The version for ATR upload.
      */
-    @Parameter(property = "atr.version", required = true)
+    @Parameter(property = "atr.version", defaultValue = "${project.version}")
     protected String version;
 
     /**
diff --git a/src/site/markdown/usage.md b/src/site/markdown/usage.md
index 1658883..2f0c886 100644
--- a/src/site/markdown/usage.md
+++ b/src/site/markdown/usage.md
@@ -45,8 +45,6 @@ To upload release artifacts to ATR:
 
 ```
 mvn org.apache.tooling:atr-maven-plugin:upload \
-  -Datr.project=maven \
-  -Datr.version=4.0.0 \
   -Datr.files=apache-maven-4.0.0-src.tar.gz,apache-maven-4.0.0-src.tar.gz.sha512
 ```
 
@@ -75,10 +73,6 @@ The typical use case is to integrate the ATR plugin into a `push-to-atr` profile
           <plugin>
             <groupId>org.apache.tooling</groupId>
             <artifactId>atr-maven-plugin</artifactId>
-            <configuration>
-              <project>${project.artifactId}</project>
-              <version>${project.version}</version>
-            </configuration>
             <executions>
               <execution>
                 <id>atr-check-composing</id>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org