You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Samael Bate (Jira)" <ji...@apache.org> on 2023/05/30 11:47:00 UTC

[jira] [Created] (FELIX-6611) maven-bundle-plugin doesn't handle multi-release jars

Samael Bate created FELIX-6611:
----------------------------------

             Summary: maven-bundle-plugin doesn't handle multi-release jars
                 Key: FELIX-6611
                 URL: https://issues.apache.org/jira/browse/FELIX-6611
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
            Reporter: Samael Bate
         Attachments: image-2023-05-30-12-45-34-958.png

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:

!image-2023-05-30-12-45-34-958.png!

 

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

 
{code:java}
[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}
 {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)