Andreas Sewe created FELIX-5677:
-----------------------------------
Summary: No dependency-reduced POM is created if embedded
dependencies are inlined
Key: FELIX-5677
URL: https://issues.apache.org/jira/browse/FELIX-5677
Project: Felix
Issue Type: Bug
Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-3.3.0
Environment: Maven home: /Users/sewe/apache-maven-3.5.0
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"
Reporter: Andreas Sewe
Attachments: example.zip
The
[{{maven-bundle-plugin:bundle}}|https://felix.apache.org/components/bundle-plugin/bundle-mojo.html#createDependencyReducedPom]
documentation says
bq. createDependencyReducedPom: If true, remove any inlined or embedded
dependencies from the resulting pom.
This is *not* true. As the attached minimal example project shows, the
dependency ({{om.google.guava:guava:21.0}}) is inlined, but no
{{dependency-reduced-pom.xml}} is created on a {{mvn clean install}}.
If you change
{noformat}
<Embed-Dependency>guava;inline=true</Embed-Dependency>
{noformat}
to
{noformat}
<Embed-Dependency>guava;inline=false</Embed-Dependency>
{noformat}
the {{dependency-reduced-pom.xml}} is correctly created (with the Guava
dependency removed) and installed into the local Maven repository.
I tried for hours using different combinations of {{Export-Package}},
{{Embed-Dependency}}, and {{_exportcontents}}, but couldn’t find a workaround.
:-(
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)