[
https://issues.apache.org/jira/browse/FELIX-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023596#comment-13023596
]
Yuri commented on FELIX-2931:
-----------------------------
Took a crack at fixing it:
https://github.com/ydewit/felix/commit/eba47d142df233749a7a50cc8b9761b14c0081c5
> bundle:bundleall includes mode dependencies than it should or so it seems
> -------------------------------------------------------------------------
>
> Key: FELIX-2931
> URL: https://issues.apache.org/jira/browse/FELIX-2931
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.3.4
> Environment: Maven 3, OSX Snow Leopard, Java 6
> Reporter: Yuri
>
> I am running bundle:bundleall and I am seeing:
> * more dependencies bundled than what is reported by dependency:tree
> * WARNINGS on dependencies that I explicitly excluded in my parent
> pom dependencyManagement (same happening when I add the exclusions
> clause to the project pom)
> * bundles are created in ${basedir}/target/classes: shouldn't they be
> created somewhere else (e.g. ${basedir}/target/bundles)?
> I am using the dependency:tree plugin to compare.
> Here is the result of dependency:tree:
> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ peaberry.servlet
> ---
> [INFO] com.me:peaberry.servlet:jar:0.1.0-SNAPSHOT
> [INFO] +- org.ops4j:peaberry:jar:1.2-SNAPSHOT:compile
> [INFO] +-
> org.ops4j.peaberry.extensions:peaberry.activation:jar:1.2-SNAPSHOT:compile
> [INFO] | \- org.osgi:org.osgi.compendium:jar:4.2.0:compile
> [INFO] +-
> org.apache.felix:de.kalpatec.pojosr.framework:jar:0.1.1-SNAPSHOT:compile
> [INFO] | \- org.osgi:org.osgi.core:jar:4.2.0:compile
> [INFO] +- com.google.inject:guice:jar:3.0:compile
> [INFO] | +- javax.inject:javax.inject:jar:1:compile
> [INFO] | \- aopalliance:aopalliance:jar:1.0:compile
> [INFO] +- javax.servlet:servlet-api:jar:2.5:provided
> [INFO] +- junit:junit:jar:4.8.2:test
> [INFO] +- ch.qos.logback:logback-classic:jar:0.9.28:test
> [INFO] | +- ch.qos.logback:logback-core:jar:0.9.28:test
> [INFO] | \- org.slf4j:slf4j-api:jar:1.6.1:test
> [INFO] +- org.mockito:mockito-all:jar:1.8.5:test
> [INFO] \- org.hamcrest:hamcrest-all:jar:1.1:test
> And here is the result of invoking bundle:bundleall:
> [INFO] --- maven-bundle-plugin:2.3.4:bundleall (default-cli) @
> peaberry.servlet ---
> [INFO] Bundling aopalliance:aopalliance:jar:1.0:compile
> [INFO] Bundling javax.inject:javax.inject:jar:1:compile
> [INFO] Bundling asm:asm:jar:3.1:compile
> [INFO] Bundling org.apache.ant:ant-launcher:jar:1.8.1:compile
> [INFO] Bundling org.apache.ant:ant:jar:1.8.1:compile
> [INFO] Bundling asm:asm-tree:jar:3.1:compile
> [INFO] Bundling asm:asm-util:jar:3.1:compile
> [INFO] Bundling org.sonatype.sisu.inject:cglib:jar:2.2.1-v20090111:compile
> [WARNING] Ignoring artifact due to dependency cycle
> aopalliance:aopalliance:jar:1.0:compile
> [WARNING] Ignoring artifact due to dependency cycle
> javax.inject:javax.inject:jar:1:compile
> [INFO] Bundling com.google.inject:guice:jar:3.0:compile
> [INFO] Using existing OSGi bundle for com.google.inject:guice:3.0
> [INFO] Bundling org.osgi:org.osgi.core:jar:4.2.0:compile
> [INFO] Using existing OSGi bundle for org.osgi:org.osgi.core:4.2.0
> [INFO] Bundling org.osgi:org.osgi.compendium:jar:4.2.0:compile
> [INFO] Using existing OSGi bundle for org.osgi:org.osgi.compendium:4.2.0
> [INFO] Bundling
> org.apache.felix:de.kalpatec.pojosr.framework:jar:0.1.1-SNAPSHOT:compile
> [INFO] Using existing OSGi bundle for
> org.apache.felix:de.kalpatec.pojosr.framework:0.1.1-SNAPSHOT
> [INFO] Bundling
> org.ops4j.peaberry.dependencies:javax.inject:jar:1.0-SNAPSHOT:compile
> [INFO] Using existing OSGi bundle for
> org.ops4j.peaberry.dependencies:javax.inject:1.0-SNAPSHOT
> [INFO] Bundling
> org.ops4j.peaberry.dependencies:aopalliance:jar:1.0-SNAPSHOT:compile
> [INFO] Using existing OSGi bundle for
> org.ops4j.peaberry.dependencies:aopalliance:1.0-SNAPSHOT
> [INFO] Bundling asm:asm:jar:3.3.1:compile
> [INFO] Bundling org.ops4j:peaberry:jar:1.2-SNAPSHOT:compile
> [INFO] Using existing OSGi bundle for org.ops4j:peaberry:1.2-SNAPSHOT
> [INFO] Bundling
> org.ops4j.peaberry.extensions:peaberry.activation:jar:1.2-SNAPSHOT:compile
> [INFO] Using existing OSGi bundle for
> org.ops4j.peaberry.extensions:peaberry.activation:1.2-SNAPSHOT
> [WARNING] Package org.aopalliance.intercept is exported in more than a bundle:
> [WARNING]
> org.ops4j.peaberry.dependencies:aopalliance:jar:1.0-SNAPSHOT:compile
> [WARNING] aopalliance:aopalliance:jar:1.0:compile
> [WARNING] Package org.aopalliance.aop is exported in more than a bundle:
> [WARNING]
> org.ops4j.peaberry.dependencies:aopalliance:jar:1.0-SNAPSHOT:compile
> [WARNING] aopalliance:aopalliance:jar:1.0:compile
> [WARNING] Package javax.inject is exported in more than a bundle:
> [WARNING]
> org.ops4j.peaberry.dependencies:javax.inject:jar:1.0-SNAPSHOT:compile
> [WARNING] javax.inject:javax.inject:jar:1:compile
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira