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

André Kühnert commented on FELIX-6457:
--------------------------------------

[~tuomas_kiviaho] did you find a workaround for that issue?


I'm currently trying to update our project(s) to java 17, which also requires 
updating the maven bundle plugin (currently we still on java 11).
With 4.1.0 everything was working fine, starting with 4.2.0 build takes much, 
much longer and the bundle plugin seems to embed nearly everything (probably 
also the reason why the build takes much longer). As a result our application 
does also not start anymore because bundles/MANIFEST.MF seems to contain too 
much (and of course the resulting bundles are quite huge) resulting the 
resolving phase to fail when starting.

Our instruction looks like this
{code:java}
<instructions>
 <Bundle-Name>${project.artifactId}</Bundle-Name>
 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
 <Import-Package>!javax.annotation.*, *</Import-Package>
 <Embed-Dependency>*;     
groupId=!org.osgi|de.company|de.company.stuff|de.company.stuff2;
  scope=compile|runtime
 </Embed-Dependency>
 <Embed-Transitive>true</Embed-Transitive>
 <_noee>true</_noee>
</instructions> {code}

This issue might also relate to that one 
https://issues.apache.org/jira/browse/FELIX-6188

> Regression after a change in maven-bundle-plugin:4.2.0 related to leaking of 
> transitive dependencies of excluded artifacts
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-6457
>                 URL: https://issues.apache.org/jira/browse/FELIX-6457
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-4.2.0
>            Reporter: Tuomas Kiviaho
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> I've been using {{maven-bundle-plugin:4.1.0}} until now and once I bumped 
> version up to 4.2.0 or newer the logic how transitive dependencies were 
> handled from {{maven-bundle-plugin:3.0.0}} onward has reverted from what was 
> fixed in [FELIX-3565|https://issues.apache.org/jira/browse/FELIX-3565]
> The breaking change has happened at 
> [FELIX-6073|https://issues.apache.org/jira/browse/FELIX-6073] when the plugin 
> was bumped up to Maven 3.0.0 when support for dependency tree via 
> {{org.apache.maven.shared.dependency.graph.DependencyNode}} was removed from 
> {{org.apache.felix.bundleplugin.AbstractDependencyFilter}}



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

Reply via email to