Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-461

multi-release jars with java 22 classes cause class version issues

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5.2
    • None

    Description

      See https://github.com/FasterXML/jackson-core/commit/d28275d31f82e8d65e83e5509956789fb4207327

      fastdoubleparser 1.0.0 includes a META-INF/versions/22 directory

      maven-shade-plugin does not support class version 66 (relates to classes built with JDK 22)

      I know Java 22 is still in early access mode but this still allows lib maintainers to include java 22 classes in their multi-release jars.

      Would it be possible to ignore the class version or code defensively so that maven-shade-plugin can workaround it when class version is a little ahead?

      To reproduce the issue, try to build https://github.com/FasterXML/jackson-core (2.17 branch, the default) but remove this line from the pom.xml:

      <exclude>META-INF/versions/22/*/.*</exclude>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fanningpj PJ Fanning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: