Repository: karaf Updated Branches: refs/heads/master 47024fbf2 -> 6a9ca438c
[KARAF-5365] Add notice about wrap feature Add a notice to inform that wrap feature is a prerequisite to manage bundle installed using wrap protocol Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/cf896d44 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/cf896d44 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/cf896d44 Branch: refs/heads/master Commit: cf896d446e0ba83b749725f6a4373b57361816b3 Parents: 47024fb Author: Mat V <mvincent...@gmail.com> Authored: Thu Feb 25 16:12:52 2016 +0100 Committer: Åukasz Dywicki <l...@code-house.org> Committed: Sat Feb 27 21:26:56 2016 +0100 ---------------------------------------------------------------------- .../developer-guide/creating-bundles.adoc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/cf896d44/manual/src/main/asciidoc/developer-guide/creating-bundles.adoc ---------------------------------------------------------------------- diff --git a/manual/src/main/asciidoc/developer-guide/creating-bundles.adoc b/manual/src/main/asciidoc/developer-guide/creating-bundles.adoc index 1838f21..8c8e8d8 100644 --- a/manual/src/main/asciidoc/developer-guide/creating-bundles.adoc +++ b/manual/src/main/asciidoc/developer-guide/creating-bundles.adoc @@ -121,6 +121,24 @@ root@karaf> bundles:install 'wrap:mvn:commons-lang/commons-lang/2.4$Bundle-Symbo <bundle>wrap:mvn:commons-lang/commons-lang/2.4$Bundle-SymbolicName=commons-lang&Bundle-Version=2.4</bundle> ---- +Important notice : Add as child of your feature definition, the reference to wrap feature + +---- +<feature prerequisiste="true">wrap</feature> +---- + +For instance : + +---- +<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="app-2.0.0"> + <feature name="external-libs" version="2.0.0" description="External libs"> + <details>External dependencies</details> + <feature prerequisite="true">wrap</feature> + <bundle start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&Bundle-Version=2.6.11</bundle> + </feature> +</features> +---- + ==== Statically bundling jars You can also create a wrap bundle for a third party dependency. @@ -210,4 +228,4 @@ The resulting OSGi bundle can now be deployed directly: ---- root@karaf> bundles:install -s mvn:osgi.commons-lang/osgi.commons-lang/2.4 ----- \ No newline at end of file +----