You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "James Carman (JIRA)" <ji...@apache.org> on 2012/06/14 19:08:42 UTC
[jira] [Updated] (KARAF-1548) The features-maven-plugin is
dependent upon the order of the declaration of the dependencies.
[ https://issues.apache.org/jira/browse/KARAF-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Carman updated KARAF-1548:
--------------------------------
Affects Version/s: (was: 2.2.2)
2.2.7
> The features-maven-plugin is dependent upon the order of the declaration of the dependencies.
> ---------------------------------------------------------------------------------------------
>
> Key: KARAF-1548
> URL: https://issues.apache.org/jira/browse/KARAF-1548
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.2.7
> Environment: Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
> Java home: /home/jcarman/Programs/jdk1.6.0_31/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "unix"
> Reporter: James Carman
>
> When declaring your dependencies in your pom.xml file, the order of the dependencies changes the generated file quite dramatically. For instance, if I declare:
> {code:xml}
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>com.carmanconsulting.smx.example.camel</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>com.carmanconsulting.smx.example.service</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> {code}
> I get:
> {code:xml}
> <feature name='com.carmanconsulting.smx.example.camel' version='1.0.0-SNAPSHOT'>
> <feature version='1.3.1'>com.springsource.com.thoughtworks.xstream</feature>
> <bundle>mvn:com.carmanconsulting.smx/com.carmanconsulting.smx.example.camel/1.0.0-SNAPSHOT</bundle>
> </feature>
> <feature name='com.carmanconsulting.smx.example.service' version='1.0.0-SNAPSHOT'>
> <feature version='1.5'>domdrides-core</feature>
> <feature version='2.4'>commons-lang</feature>
> <bundle>mvn:com.carmanconsulting.smx/com.carmanconsulting.smx.example.service/1.0.0-SNAPSHOT</bundle>
> </feature>
> {code}
> However, if I do:
> {code:xml}
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>com.carmanconsulting.smx.example.service</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>com.carmanconsulting.smx.example.camel</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> {code}
> I get:
> {code:xml}
> <feature name='com.carmanconsulting.smx.example.service' version='1.0.0-SNAPSHOT'>
> <feature version='1.5'>domdrides-core</feature>
> <feature version='2.4'>commons-lang</feature>
> <bundle>mvn:com.carmanconsulting.smx/com.carmanconsulting.smx.example.service/1.0.0-SNAPSHOT</bundle>
> </feature>
> <feature name='com.carmanconsulting.smx.example.camel' version='1.0.0-SNAPSHOT'>
> <feature version='1.3.1'>com.springsource.com.thoughtworks.xstream</feature>
> <feature version='1.0.0-SNAPSHOT'>com.carmanconsulting.smx.example.service</feature>
> <bundle>mvn:com.carmanconsulting.smx/com.carmanconsulting.smx.example.camel/1.0.0-SNAPSHOT</bundle>
> </feature>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira