The addUrl command has been renamed to repo-add.
So they are the same command.

To add a file, you may need to use 3 slashes for a file.  The following
command works for me:

feature:repo-add
file:///Users/gnodet/work/git/karaf4x/assemblies/apache-karaf-minimal/target/assembly/system/org/apache/karaf/features/spring/4.1.2-SNAPSHOT/spring-4.1.2-SNAPSHOT-features.xml

2017-04-03 0:42 GMT+02:00 smunro <[email protected]>:

> Hello,
>
> I'm trying to put together a guide on installing multiple osgi bundles for
> my team and one solution I would like to explore is using the features.xml
> file.
>
> All the guides on-line have made reference to a features:addUrl command.
> When entering this, I'm informed the features command does not exist, nor
> can I see it referenced in the available commands. There are other ways
> around this to use feature:repo-add mvn:blah, however, I'd like to be able
> to use the file protocol.
>
> So, for example, if I had a features.xml file in
> C:/feature_sandbox/features.xml, I'd like to do
> feature:repo-add file://C:/feature_sandbox/features.xml
>
> The above does not work either. The only other option I have is to use the
> karaf feature plugin, which I'm happy to do, but I was keen to get
> something
> faster in place before I add this plugin to the project. Is the file
> protocol option available?
>
> Secondly, has the features command been removed completely or is it
> something I need to install in addition to my base installation. I haven't
> seen the removal of this mentioned in some of the release notes, so it's
> omission is mystery to me based on the very recently posted articles
> regarding it's usage.
>
> Warm Regards,
> Stephen Munro
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Karaf-feature-xml-files-tp4049996.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet

Reply via email to