Hey Achim,
Would be great to get a section in docs about that. I’ve found just blog post 
[1] which is describing that, but I belive best place for that is official 
guide.

[1] http://blog.tonyganchev.com/beginning-karaf/ 
<http://blog.tonyganchev.com/beginning-karaf/>

Cheers,
Łukasz
--
[email protected]
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

> Wiadomość napisana przez Achim Nierbeck <[email protected]> w dniu 25 
> lut 2016, o godz. 11:02:
> 
> yes, you need to add a dependency to your feature with the wrap feature: 
> 
> <feature prerequisit="true">wrap</feature> 
> 
> in your feature definition. 
> If you have a custom build, make sure that the karaf std. features are 
> "grouped" via brackets "(feature1, feature2, ...),(custom-feature)" 
> in your karaf-maven-plugin section. 
> 
> regards, Achim 
> 
> 
> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <[email protected] 
> <mailto:[email protected]>>:
> Hi,
> 
> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the wrap 
> mode for bundle installation.
> 
> I've tried to upgrade the definition to (according to documentation 
> https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html 
> <https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html>)
>  : 
> 
> <bundle 
> start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
> 
> But I get the following error when launching Karaf : 
> 
> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>       at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>       at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>       at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>       at 
> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>       ... 8 more
> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>       at 
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>       at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>       ... 11 more
> 
> Any idea ?
> Thanks
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer 
> & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ 
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS 
> <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 

Reply via email to