It's what JP as he said in a previous e-mail:
mvn:org.test.features/sample/1.0.0/xml/features
@JP: Karaf 3 is different in term of artifact resolution. Let me check
what we have by default in etc/org.ops4j.pax.url.mvn.cfg.
Regards
JB
On 11/14/2013 08:04 PM, Benjamin Debeerst wrote:
Hello JP,
I think your URL is wrong, it should be:
mvn:<groupId>/<artifactId>/<version>/xml/features
i.e. org.test.features/sample/1.0.0/xml/features
That's how it works in Karaf 2.3.3 at least.
Regards,
Benjamin
-----Original Message-----
From: CLEMENT Jean-Philippe [mailto:[email protected]]
Sent: Donnerstag, 14. November 2013 19:03
To: [email protected]
Subject: RE: Feature addition without running Karaf
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
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com