You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2025/10/04 06:38:45 UTC

(maven-plugin-tools) branch maven-plugin-tools-3.x updated: JDK 25 build fix

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

sjaranowski pushed a commit to branch maven-plugin-tools-3.x
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


The following commit(s) were added to refs/heads/maven-plugin-tools-3.x by this push:
     new 1e0b4633 JDK 25 build fix
1e0b4633 is described below

commit 1e0b46335341593eb744b732fcc96d1caf8bece5
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Fri Oct 3 19:24:53 2025 +0200

    JDK 25 build fix
---
 .../annotations/JavaAnnotationsMojoDescriptorExtractor.java       | 2 ++
 pom.xml                                                           | 8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
index 8ba19ca9..037e2cd1 100644
--- a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
+++ b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
@@ -133,6 +133,8 @@ public class JavaAnnotationsMojoDescriptorExtractor extends AbstractLogEnabled i
         CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V21, "21");
         CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V22, "22");
         CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V23, "23");
+        CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V24, "24");
+        CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V25, "25");
     }
 
     @Inject
diff --git a/pom.xml b/pom.xml
index fad60a89..f7d15144 100644
--- a/pom.xml
+++ b/pom.xml
@@ -102,13 +102,15 @@
     maven-plugin-tools-annotations/src/main/java/o/a/m/tools/plugins/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor#CLASS_VERSION_TO_JAVA_STRING
     needs to be updated as well -->
     <asmVersion>9.8</asmVersion>
+    <!-- TODO remove with next parent version update -->
+    <version.maven-invoker-plugin>3.9.1</version.maven-invoker-plugin>
     <plexusUtilsVersion>4.0.1</plexusUtilsVersion>
     <plexusXmlVersion>3.0.2</plexusXmlVersion>
     <reportingApiVersion>4.0.0</reportingApiVersion>
     <reportingImplVersion>4.0.0</reportingImplVersion>
-    <compilerPluginVersion>3.11.0</compilerPluginVersion>
-    <javadocPluginVersion>3.10.1</javadocPluginVersion>
-    <enforcerPluginVersion>3.5.0</enforcerPluginVersion>
+    <compilerPluginVersion>${version.maven-compiler-plugin}</compilerPluginVersion>
+    <javadocPluginVersion>${version.maven-javadoc-plugin}</javadocPluginVersion>
+    <enforcerPluginVersion>${version.maven-enforcer-plugin}</enforcerPluginVersion>
     <project.build.outputTimestamp>2024-10-22T14:49:07Z</project.build.outputTimestamp>
   </properties>