Description
Currently you have to know the exact maven url of a feature file to install it.
Example:
features:addurl mvn:org.apache.camel.karaf/apache-camel/2.8.2/xml/features
I propose to introduce a new command that will do the same like this:
features:chooseurl camel 2.8.2
The feature repo name as well as the version should support completion.
The feature repo urls will have to be configured in a config file:
camel=org.apache.camel.karaf:apache-camel:xml:features:(0,]
cxf=org.apache.cxf.karaf:apache-cxf:xml:features:(0,]
activemq=org.apache.activemq:activemq-karaf:xml:features:(0,]
jclouds=org.jclouds.karaf:feature:xml:features:(0,]
The key is the name that can be used in the command above. The value is a filter coordinate for the feature repo. For the version completion this filter should be used to display the version that are available in the configured maven repos.
When the version is given the feature url is composed by replacing the version filter in the value above by the given version.