Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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}