Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6611

maven-bundle-plugin doesn't handle multi-release jars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Maven Bundle Plugin
    • None

    Description

      while setting up JPMS for opencsv in a multi-release jar I found that the latest maven-bundle-plugin incorrectly warns about sources in the wrong directory.

       

      I'm correctly using the latest maven-compiler-plugin and maven-jar-plugin with a module-info.java in ${project.basedir}/src/main/java9 which allows having the main source be compiled with Java 8 while also including a module-info.java that gets compiled targeting Java 9:

       

      However the bundle plugin doesn't recognise this as being a valid setup:

       

      [INFO] --- maven-bundle-plugin:5.1.9:manifest (bundle-manifest) @ opencsv ---
      [INFO] No MANIFEST.MF file found, generating manifest.
      [WARNING] Manifest com.opencsv:opencsv:jar:5.7.2-SNAPSHOT : Classes found in the wrong directory: {META-INF/versions/9/module-info.class=module-info}
       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            singingbush Samael Bate
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: