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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4a2762b  configure plugin and plugin-report 4.x
4a2762b is described below

commit 4a2762b0d271c80008a97a681d466fc4d9731f49
Author: HervĂ© Boutemy <[email protected]>
AuthorDate: Sun Nov 1 22:29:29 2026 +0100

    configure plugin and plugin-report 4.x
---
 .../java/org/apache/maven/dist/tools/AbstractDistCheckReport.java  | 3 ++-
 .../java/org/apache/maven/dist/tools/ConfigurationLineInfo.java    | 2 +-
 .../apache/maven/dist/tools/index/DistCheckIndexPageReport.java    | 7 ++++---
 src/main/resources/dist-tool.conf                                  | 2 ++
 4 files changed, 9 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckReport.java 
b/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckReport.java
index 818426a..affd68f 100644
--- a/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckReport.java
+++ b/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckReport.java
@@ -270,8 +270,9 @@ public abstract class AbstractDistCheckReport extends 
AbstractMavenReport {
      */
     private String getVersionNoCentral(ConfigurationLineInfo aLine) {
         if ("mvnd".equals(aLine.getArtifactId())) {
-            // use 
https://github.com/apache/maven-site/blob/master/pom.xml#L64 instead
             // short term: hard code
+            // checking from 
https://github.com/apache/maven-site/blob/master/pom.xml#L64
+            // TODO get from 
https://release-catalog.apache.org/project_releases.json
             if (aLine.getVersionRange().containsVersion(new 
DefaultArtifactVersion("1.0"))) {
                 return "1.0.6";
             } else {
diff --git 
a/src/main/java/org/apache/maven/dist/tools/ConfigurationLineInfo.java 
b/src/main/java/org/apache/maven/dist/tools/ConfigurationLineInfo.java
index 89fb859..15c5eca 100644
--- a/src/main/java/org/apache/maven/dist/tools/ConfigurationLineInfo.java
+++ b/src/main/java/org/apache/maven/dist/tools/ConfigurationLineInfo.java
@@ -49,7 +49,7 @@ public class ConfigurationLineInfo {
     private final String gitRepositoryId;
 
     private String forceVersion;
-    private String indexPageUrl;
+    private final String indexPageUrl;
     private Metadata metadata;
 
     /**
diff --git 
a/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageReport.java 
b/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageReport.java
index 10a6500..e8cae67 100644
--- 
a/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageReport.java
+++ 
b/src/main/java/org/apache/maven/dist/tools/index/DistCheckIndexPageReport.java
@@ -107,7 +107,7 @@ public class DistCheckIndexPageReport extends 
AbstractDistCheckReport {
     }
 
     private static class CheckIndexPageResult extends AbstractCheckResult {
-
+        private String path;
         private String indexVersion;
         private String indexDate;
 
@@ -166,8 +166,8 @@ public class DistCheckIndexPageReport extends 
AbstractDistCheckReport {
                     cli,
                     null,
                     null,
-                    cli.getArtifactId() + ": found " + cipr.indexVersion + " 
instead of " + cipr.getVersion() + " in "
-                            + cli.getIndexPageUrl());
+                    cli.getArtifactId() + ": found " + cipr.indexVersion + " 
for " + cipr.path + " instead of "
+                            + cipr.getVersion() + " in " + 
cli.getIndexPageUrl());
         }
         sink.tableCell_();
 
@@ -274,6 +274,7 @@ public class DistCheckIndexPageReport extends 
AbstractDistCheckReport {
         if (path == null) {
             path = '/' + cli.getArtifactId() + '/';
         }
+        r.path = path;
 
         for (Element e : a) {
             String href = e.attr("href");
diff --git a/src/main/resources/dist-tool.conf 
b/src/main/resources/dist-tool.conf
index 26a1086..69d4378 100644
--- a/src/main/resources/dist-tool.conf
+++ b/src/main/resources/dist-tool.conf
@@ -142,8 +142,10 @@
   maven-jmod-plugin
   * maven-jxr-plugin
   * maven-plugin-plugin [3,3.99]
+> maven-plugin-plugin index-path = /plugin-tools-4.x/maven-plugin-plugin/
   * maven-plugin-plugin [3.99,4.99]
   * maven-plugin-report-plugin [3,3.99]
+> maven-plugin-report-plugin index-path = 
/plugin-tools-4.x/maven-plugin-report-plugin/
   * maven-plugin-report-plugin [3.99,4.99]
   maven-pmd-plugin
   maven-project-info-reports-plugin

Reply via email to