You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jonathan Anstey (Created) (JIRA)" <ji...@apache.org> on 2012/02/03 21:25:54 UTC
[jira] [Created] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Karaf features-maven-plugin always selects lowest version in range
------------------------------------------------------------------
Key: KARAF-1182
URL: https://issues.apache.org/jira/browse/KARAF-1182
Project: Karaf
Issue Type: Bug
Affects Versions: 2.2.5
Reporter: Jonathan Anstey
For example, the following plugin config
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
<version>2.2.5</version>
<executions>
<execution>
<id>add-features-to-repo</id>
<phase>generate-resources</phase>
<goals>
<goal>add-features-to-repo</goal>
</goals>
<configuration>
<descriptors>
<descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
</descriptors>
<features>
<feature>camel-spring</feature>
</features>
<includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
<repository>target/features-repo</repository>
</configuration>
</execution>
</executions>
</plugin>
Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Updated] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Jean-Baptiste Onofré (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-1182:
----------------------------------------
Fix Version/s: 3.0.0
2.2.6
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Resolved] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Andreas Pieber (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Pieber resolved KARAF-1182.
-----------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.0.0)
Committing to https://svn.apache.org/repos/asf/karaf/branches/karaf-2.2.x ...
M tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
Committed r1240650
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Andreas Pieber
> Fix For: 2.2.6
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Assigned] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-1182:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Commented] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Andreas Pieber (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200601#comment-13200601 ]
Andreas Pieber commented on KARAF-1182:
---------------------------------------
looks pretty good to me. In addition, to get the latest version instead of the first sounds like the better/correct behavior to me anyhow.
Thank you very much for the patch. I'll apply it.
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Andreas Pieber
> Fix For: 2.2.6, 3.0.0
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Updated] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Jonathan Anstey (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Anstey updated KARAF-1182:
-----------------------------------
Attachment: KARAF-1182.patch
Patch to fix the issue on karaf-2.2.x branch.
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Closed] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jamie goodyear closed KARAF-1182.
---------------------------------
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Andreas Pieber
> Fix For: 2.2.6
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Assigned] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Andreas Pieber (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Pieber reassigned KARAF-1182:
-------------------------------------
Assignee: Andreas Pieber (was: Jean-Baptiste Onofré)
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Andreas Pieber
> Fix For: 2.2.6, 3.0.0
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Commented] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Jonathan Anstey (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200024#comment-13200024 ]
Jonathan Anstey commented on KARAF-1182:
----------------------------------------
Not sure yet if this problem occurs on trunk.
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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
[jira] [Commented] (KARAF-1182) Karaf features-maven-plugin always
selects lowest version in range
Posted by "Jonathan Anstey (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201467#comment-13201467 ]
Jonathan Anstey commented on KARAF-1182:
----------------------------------------
Cool, thanks Andreas!
> Karaf features-maven-plugin always selects lowest version in range
> ------------------------------------------------------------------
>
> Key: KARAF-1182
> URL: https://issues.apache.org/jira/browse/KARAF-1182
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.2.5
> Reporter: Jonathan Anstey
> Assignee: Andreas Pieber
> Fix For: 2.2.6
>
> Attachments: KARAF-1182.patch
>
>
> For example, the following plugin config
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.2.5</version>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <phase>generate-resources</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>camel-spring</feature>
> </features>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> Will download org/springframework/spring-core/2.5.6.SEC02/spring-core-2.5.6.SEC02.jar rather than spring 3.0.6 that is preferred. The plugin from Karaf 2.2.4 doesn't have this issue.
--
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