You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Mark Raynsford (JIRA)" <ji...@apache.org> on 2017/02/10 08:47:41 UTC

[jira] [Commented] (FELIX-5527) Bundle plugin Embed-Dependency complains about class files in META-INF

    [ https://issues.apache.org/jira/browse/FELIX-5527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15860933#comment-15860933 ] 

Mark Raynsford commented on FELIX-5527:
---------------------------------------

In a comment to the bndtools-users list, Neil Bartlett noted that this is a current limitation of bndtools:

"Bnd does not yet support java 9."

https://groups.google.com/forum/#!topic/bndtools-users/OrTIEE4zHv8

> Bundle plugin Embed-Dependency complains about class files in META-INF
> ----------------------------------------------------------------------
>
>                 Key: FELIX-5527
>                 URL: https://issues.apache.org/jira/browse/FELIX-5527
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-3.2.0
>         Environment: 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"
>            Reporter: Mark Raynsford
>              Labels: maven
>
> 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".



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)