Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-323

Support multi-release jars

    XMLWordPrintableJSON

Details

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

    Description

      Java 9 allows for JRE version specific code in the form of "multi-release jars"

      Older JREs will treat them as normal jars, while newer JREs will load the appropriate specific classes. AFAICT, maven does not currently support this.

      Compiler plugin should automatically detect when there are multiple source levels and set MRJAR=True in the manifest.

      Source directories could potentially be src/main/java, src/main/java9, src/main/java10, etc. These probably need to be configurable as well, or some deeper discussion about what makes sense and is intuitive for users.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              mdrob Mike Drob
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: