Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9725F1821C for ; Wed, 14 Oct 2015 06:17:05 +0000 (UTC) Received: (qmail 64178 invoked by uid 500); 14 Oct 2015 06:17:05 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 64109 invoked by uid 500); 14 Oct 2015 06:17:05 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 64007 invoked by uid 99); 14 Oct 2015 06:17:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2015 06:17:05 +0000 Date: Wed, 14 Oct 2015 06:17:05 +0000 (UTC) From: "Pierre De Rop (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-5074) Using org.apache.felix.scr.bnd together with maven-bundle-plugin leads to using the wrong bnd version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-5074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14956340#comment-14956340 ] Pierre De Rop commented on FELIX-5074: -------------------------------------- Ok, I do agree; we don't depend on some specific bndlib 3+ api, so let's continue to depend on bndlib 2.1.0. Thanks. > Using org.apache.felix.scr.bnd together with maven-bundle-plugin leads to using the wrong bnd version > ----------------------------------------------------------------------------------------------------- > > Key: FELIX-5074 > URL: https://issues.apache.org/jira/browse/FELIX-5074 > Project: Felix > Issue Type: Bug > Components: SCR Tooling > Affects Versions: scr bnd plugin 1.4.0 > Reporter: Konrad Windszus > Attachments: pom.xml > > > If I have a POM with a plugin configuration like this > {code} > > org.apache.felix > maven-bundle-plugin > 3.0.0 > true > > > > <_plugin>org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin;destdir=target/classes > > > > > > org.apache.felix > org.apache.felix.scr.bnd > 1.4.0 > > > > {code} > Unfortunately {{org.apache.felix.scr.bnd}} depends on {{biz.aQute.bnd:bndlib:jar:2.1.0}}. Therefore the classpath of maven-bundle-plugin looks like this: > {code} > [DEBUG] Populating class realm plugin>org.apache.felix:maven-bundle-plugin:3.0.0 > [DEBUG] Included: org.apache.felix:maven-bundle-plugin:jar:3.0.0 > [DEBUG] Included: org.apache.felix:org.apache.felix.scr.bnd:jar:1.4.0 > [DEBUG] Included: biz.aQute.bnd:bndlib:jar:2.1.0 > [DEBUG] Included: org.osgi:org.osgi.core:jar:4.3.1 > [DEBUG] Included: biz.aQute.bnd:biz.aQute.bndlib:jar:3.0.0 > [DEBUG] Included: org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.6 > [DEBUG] Included: org.easymock:easymock:jar:2.5.2 > [DEBUG] Included: org.apache.felix:org.apache.felix.utils:jar:1.6.0 > [DEBUG] Included: org.osgi:org.osgi.compendium:jar:4.2.0 > [DEBUG] Included: org.slf4j:slf4j-jdk14:jar:1.5.6 > [DEBUG] Included: org.slf4j:slf4j-api:jar:1.5.6 > [DEBUG] Included: org.slf4j:jcl-over-slf4j:jar:1.5.6 > [DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.2.0 > [DEBUG] Included: org.apache.maven.doxia:doxia-logging-api:jar:1.1 > [DEBUG] Included: junit:junit:jar:4.11 > [DEBUG] Included: org.hamcrest:hamcrest-core:jar:1.3 > [DEBUG] Included: commons-cli:commons-cli:jar:1.2 > [DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 > [DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1 > [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 > [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 > [DEBUG] Included: org.apache.maven:maven-archiver:jar:2.5 > [DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:2.1 > [DEBUG] Included: org.codehaus.plexus:plexus-io:jar:2.0.2 > [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.15 > [DEBUG] Included: org.apache.maven.shared:maven-dependency-tree:jar:2.1 > [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 > [DEBUG] Included: org.eclipse.aether:aether-util:jar:0.9.0.M2 > [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10 > [DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.7 > [DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0 > [DEBUG] Included: org.apache.maven.doxia:doxia-site-renderer:jar:1.0 > [DEBUG] Included: org.apache.maven.doxia:doxia-core:jar:1.0 > [DEBUG] Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7 > [DEBUG] Included: org.codehaus.plexus:plexus-velocity:jar:1.1.7 > [DEBUG] Included: org.apache.velocity:velocity:jar:1.5 > [DEBUG] Included: commons-lang:commons-lang:jar:2.1 > [DEBUG] Included: oro:oro:jar:2.0.8 > [DEBUG] Included: org.apache.maven.doxia:doxia-decoration-model:jar:1.0 > [DEBUG] Included: commons-collections:commons-collections:jar:3.2 > [DEBUG] Included: org.apache.maven.doxia:doxia-module-apt:jar:1.0 > [DEBUG] Included: org.apache.maven.doxia:doxia-module-fml:jar:1.0 > [DEBUG] Included: org.apache.maven.doxia:doxia-module-xdoc:jar:1.0 > [DEBUG] Included: org.apache.maven.doxia:doxia-module-xhtml:jar:1.0 > [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.2.0 > [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 > [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.2.0 > [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.2.0 > [DEBUG] Excluded: classworlds:classworlds:jar:1.1 > {code} > So the classpath contains both bnd 2.1 and bnd 3.0. > IMHO the {{felix.scr.bnd}} should not transitively influence the classpath. I guess marking the dependency to bnd as provided in its pom.xml should do the trick here! -- This message was sent by Atlassian JIRA (v6.3.4#6332)