Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-bundle-plugin-3.2.0
-
Linux copperhead 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Apache Maven 3.3.9 (NON-CANONICAL_2015-11-23T13:17:27+03:00_root; 2015-11-23T10:17:27+00:00)
Maven home: /opt/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "4.8.13-1-arch", arch: "amd64", family: "unix"
Linux copperhead 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux openjdk version "1.8.0_121" OpenJDK Runtime Environment (build 1.8.0_121-b13) OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode) Apache Maven 3.3.9 (NON-CANONICAL_2015-11-23T13:17:27+03:00_root; 2015-11-23T10:17:27+00:00) Maven home: /opt/maven Java version: 1.8.0_121, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-openjdk/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "4.8.13-1-arch", arch: "amd64", family: "unix"
Description
As of Java 9, it's no longer a mistake to have included class files in the META-INF directory of a bundle. However, if the Embed-Dependency instruction is used to pack the contents of a jar file into a bundle, and the original jar file happened to have class files in META-INF, the execution fails with an error.
A repro case is included in the following repository:
https://github.com/io7m/maven-bundle-plugin-bug-20170207
Just "mvn clean package".
Attachments
Issue Links
- relates to
-
FELIX-5592 Maven bundle plugin does not support Java 9 Multi-Release jars
- Closed
-
FELIX-5760 Update to bnd version 3.4
- Closed