https://bz.apache.org/bugzilla/show_bug.cgi?id=66631

            Bug ID: 66631
           Summary: Consider moving module-info.class to
                    META-INF/versions/9
           Product: Tomcat 9
           Version: 9.0.75
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Packaging
          Assignee: dev@tomcat.apache.org
          Reporter: micha...@apache.org
  Target Milestone: -----

Created attachment 38580
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38580&action=edit
Report output

While working on a library upgrade to Tomcat 9 Maven Shared JAR in Maven
Project Info Reports Plugin dependencies goal lists all Tomcat 9 JARs as Java 9
requirement because of:
osipovmi@deblndw011x:~/.m2/repository/org/apache/tomcat/tomcat-jni/9.0.75
$ tar tzf tomcat-jni-9.0.75.jar | grep module-info.class
module-info.class
because this one uses Java 9 BC while rest is on 8.

According to https://docs.oracle.com/en/java/javase/20/docs/specs/jar/jar.html,
the following is possible:
A modular multi-release JAR file is a multi-release JAR file that has a module
descriptor, module-info.class, in the top-level directory (as for a modular JAR
file), or directly in a versioned directory.

My request is to move this file to META-INF/versions/9

To give class analyzers a chance to properly process classes and group them by
version.

Related: https://github.com/apache/maven-shared-jar/pull/21

Note: I assume that this applies to all Tomcat 9 JARs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to