[Git][java-team/maven-shared-jar][upstream] New upstream version 3.2.0

Emmanuel Bourg (@ebourg) gitlab at salsa.debian.org
Thu Mar 26 14:06:47 GMT 2026



Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / maven-shared-jar


Commits:
0e007c12 by Emmanuel Bourg at 2026-03-26T15:02:18+01:00
New upstream version 3.2.0
- - - - -


10 changed files:

- README.md
- pom.xml
- src/main/java/org/apache/maven/shared/jar/classes/JarClassesAnalysis.java
- src/test/java/org/apache/maven/shared/jar/classes/ImportVisitorTest.java
- src/test/java/org/apache/maven/shared/jar/classes/JarClassesAnalyzerTest.java
- + src/test/resources/jars/helloworld-21.jar
- + src/test/resources/jars/helloworld-22.jar
- + src/test/resources/jars/helloworld-23.jar
- + src/test/resources/jars/helloworld-24.jar
- + src/test/resources/jars/helloworld-25.jar


Changes:

=====================================
README.md
=====================================
@@ -20,6 +20,7 @@ Contributing to [Apache Maven JAR Utilities](https://maven.apache.org/shared/mav
 [![ASF Jira](https://img.shields.io/endpoint?url=https%3A%2F%2Fmaven.apache.org%2Fbadges%2Fasf_jira-MSHARED.json)][jira]
 [![Apache License, Version 2.0, January 2004](https://img.shields.io/github/license/apache/maven.svg?label=License)][license]
 [![Maven Central](https://img.shields.io/maven-central/v/org.apache.maven.shared/maven-shared-jar.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.apache.maven.shared/maven-shared-jar)
+[![Reproducible Builds](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jvm-repo-rebuild/reproducible-central/master/content/org/apache/maven/shared/maven-shared-jar/badge.json)](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/maven/shared/maven-shared-jar/README.md)
 [![Jenkins Status](https://img.shields.io/jenkins/s/https/ci-maven.apache.org/job/Maven/job/maven-box/job/maven-shared-jar/job/master.svg)][build]
 [![Jenkins tests](https://img.shields.io/jenkins/t/https/ci-maven.apache.org/job/Maven/job/maven-box/job/maven-shared-jar/job/master.svg)][test-results]
 


=====================================
pom.xml
=====================================
@@ -23,12 +23,12 @@
   <parent>
     <groupId>org.apache.maven.shared</groupId>
     <artifactId>maven-shared-components</artifactId>
-    <version>42</version>
+    <version>43</version>
     <relativePath />
   </parent>
 
   <artifactId>maven-shared-jar</artifactId>
-  <version>3.1.1</version>
+  <version>3.2.0</version>
 
   <name>Apache Maven JAR Utilities</name>
   <description>Utilities that help identify the contents of a JAR, including Java class analysis and Maven metadata analysis.</description>
@@ -36,7 +36,7 @@
   <scm>
     <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-shared-jar.git</connection>
     <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-shared-jar.git</developerConnection>
-    <tag>maven-shared-jar-3.1.1</tag>
+    <tag>maven-shared-jar-3.2.0</tag>
     <url>https://github.com/apache/maven-shared-jar/tree/${project.scm.tag}</url>
   </scm>
   <issueManagement>
@@ -58,7 +58,7 @@
     <javaVersion>8</javaVersion>
     <mavenVersion>3.6.3</mavenVersion>
     <slf4jVersion>1.7.36</slf4jVersion>
-    <project.build.outputTimestamp>2024-06-20T20:40:38Z</project.build.outputTimestamp>
+    <project.build.outputTimestamp>2024-12-30T18:33:30Z</project.build.outputTimestamp>
   </properties>
 
   <dependencies>
@@ -95,19 +95,19 @@
     <dependency>
       <groupId>commons-codec</groupId>
       <artifactId>commons-codec</artifactId>
-      <version>1.17.0</version>
+      <version>1.17.1</version>
     </dependency>
 
     <dependency>
       <groupId>org.apache.bcel</groupId>
       <artifactId>bcel</artifactId>
-      <version>6.9.0</version>
+      <version>6.10.0</version>
     </dependency>
     <!-- Required by BCEL overwritten by maven-artifact -->
     <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-lang3</artifactId>
-      <version>3.14.0</version>
+      <version>3.17.0</version>
       <scope>runtime</scope>
     </dependency>
 
@@ -130,7 +130,7 @@
     <dependency>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-testing</artifactId>
-      <version>1.3.0</version>
+      <version>1.4.0</version>
       <scope>test</scope>
     </dependency>
     <dependency>


=====================================
src/main/java/org/apache/maven/shared/jar/classes/JarClassesAnalysis.java
=====================================
@@ -72,6 +72,10 @@ public class JarClassesAnalysis {
 
     static {
         HashMap<Double, String> aMap = new HashMap<>();
+        aMap.put(69.0, "25");
+        aMap.put(68.0, "24");
+        aMap.put(67.0, "23");
+        aMap.put(66.0, "22");
         aMap.put(65.0, "21");
         aMap.put(64.0, "20");
         aMap.put(63.0, "19");


=====================================
src/test/java/org/apache/maven/shared/jar/classes/ImportVisitorTest.java
=====================================
@@ -28,6 +28,8 @@ import org.apache.bcel.classfile.DescendingVisitor;
 import org.apache.bcel.classfile.JavaClass;
 import org.apache.maven.shared.jar.AbstractJarAnalyzerTestCase;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
 
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -76,4 +78,48 @@ class ImportVisitorTest extends AbstractJarAnalyzerTestCase {
         assertTrue(imports.contains("org.apache.tools.ant.Location"), "imports");
         assertTrue(imports.contains("org.apache.tools.ant.Task"), "imports");
     }
+
+    @ParameterizedTest
+    @ValueSource(
+            strings = {
+                "helloworld-1.1.jar",
+                "helloworld-1.2.jar",
+                "helloworld-1.3.jar",
+                "helloworld-1.4.jar",
+                "helloworld-1.5.jar",
+                "helloworld-1.6.jar",
+                "helloworld-1.7.jar",
+                "helloworld-1.8.jar",
+                "helloworld-9.jar",
+                "helloworld-10.jar",
+                "helloworld-11.jar",
+                "helloworld-12.jar",
+                "helloworld-13.jar",
+                "helloworld-14.jar",
+                "helloworld-15.jar",
+                "helloworld-16.jar",
+                "helloworld-17.jar",
+                "helloworld-18.jar",
+                "helloworld-19.jar",
+                "helloworld-20.jar",
+                "helloworld-21.jar",
+                "helloworld-22.jar",
+                "helloworld-23.jar",
+                "helloworld-24.jar",
+                "helloworld-25.jar"
+            })
+    void testImportByJDKVersion(String jarName) throws IOException, ClassFormatException {
+        File jarFile = getSampleJar(jarName);
+
+        ClassParser classParser = new ClassParser(jarFile.getAbsolutePath(), "net/test/HelloWorld.class");
+        JavaClass javaClass = classParser.parse();
+
+        ImportVisitor importVisitor = new ImportVisitor(javaClass);
+        DescendingVisitor descVisitor = new DescendingVisitor(javaClass, importVisitor);
+        javaClass.accept(descVisitor);
+
+        List<String> imports = importVisitor.getImports();
+        assertNotNull(imports, "Import List");
+        assertTrue(imports.size() >= 4);
+    }
 }


=====================================
src/test/java/org/apache/maven/shared/jar/classes/JarClassesAnalyzerTest.java
=====================================
@@ -130,7 +130,12 @@ class JarClassesAnalyzerTest extends AbstractJarAnalyzerTestCase {
             {"helloworld-17.jar", "17"},
             {"helloworld-18.jar", "18"},
             {"helloworld-19.jar", "19"},
-            {"helloworld-20.jar", "20"}
+            {"helloworld-20.jar", "20"},
+            {"helloworld-21.jar", "21"},
+            {"helloworld-23.jar", "23"},
+            {"helloworld-22.jar", "22"},
+            {"helloworld-24.jar", "24"},
+            {"helloworld-25.jar", "25"}
         };
     }
 


=====================================
src/test/resources/jars/helloworld-21.jar
=====================================
Binary files /dev/null and b/src/test/resources/jars/helloworld-21.jar differ


=====================================
src/test/resources/jars/helloworld-22.jar
=====================================
Binary files /dev/null and b/src/test/resources/jars/helloworld-22.jar differ


=====================================
src/test/resources/jars/helloworld-23.jar
=====================================
Binary files /dev/null and b/src/test/resources/jars/helloworld-23.jar differ


=====================================
src/test/resources/jars/helloworld-24.jar
=====================================
Binary files /dev/null and b/src/test/resources/jars/helloworld-24.jar differ


=====================================
src/test/resources/jars/helloworld-25.jar
=====================================
Binary files /dev/null and b/src/test/resources/jars/helloworld-25.jar differ



View it on GitLab: https://salsa.debian.org/java-team/maven-shared-jar/-/commit/0e007c12c5d13a158e92e5f94f929cda3f56b333

-- 
View it on GitLab: https://salsa.debian.org/java-team/maven-shared-jar/-/commit/0e007c12c5d13a158e92e5f94f929cda3f56b333
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20260326/9c38a3a6/attachment.htm>


More information about the pkg-java-commits mailing list