[ https://issues.apache.org/jira/browse/FELIX-6611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed FELIX-6611. ----------------------------------- > 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 > Assignee: Paul Rütter > Priority: Major > Fix For: maven-bundle-plugin-6.0.0 > > 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)