I use Karaf 3 so I guess the equivalent line to be feature:repo-add.
There is the following error:
Error executing command: Error resolving artifact
org.test.features:sample:xml:features:1.0.0: Could not find artfifact
org.test.features:sample:xml:features:1.0.0 in Nexus-internal (<URL>)
Where <URL> is the location of my enterprise Maven repository :S
Did it try locally first?
JP
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:[email protected]]
Envoyé : jeudi 14 novembre 2013 18:55
À : [email protected]
Objet : Re: Feature addition without running Karaf
Hi JP,
can you try to resolve the feature XML in Karaf shell:
features:addurl mvn:org.test.features/sample/1.0.0/xml/features
features:list|grep -i sample
I bet that the resolution fails (it doesn't find the features descriptor at the
MVN URL).
Regards
JB
On 11/14/2013 06:51 PM, CLEMENT Jean-Philippe wrote:
> I removed the cache directory, restarted Karaf, but still no features. Are
> there other files to change?
>
> JP
>
> PS: I did change the configuration before the first start of Karaf.
>
>
> -----Message d'origine-----
> De : Henryk Konsek [mailto:[email protected]] Envoyé : jeudi 14
> novembre 2013 18:42 À : [email protected] Objet : Re: Feature
> addition without running Karaf
>
>> But when I start Karaf and list the features I don't see sample. Missed
>> something?
>
> Option featureBoot is supposed to be used primarily for creating your own
> Karaf distribution. This is the reason why changes featureBoot applied after
> the first execution of Karaf wouldn't work. You can remove data/cache
> directory to force Karaf to reinitialize featureBoot after next restart.
>
> Cheers.
>
> --
> Henryk Konsek
> http://henryk-konsek.blogspot.com
>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com