You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Martin Stiborský <ma...@gmail.com> on 2013/03/13 20:55:53 UTC

Creating extensions to Karaf console - loading Maven extensions

Hello guys,
I just started to creating own extension to Karaf console, to handle some
things to a project I'm running under Karaf.

I went through few tutorial and documentation, how to make a extension,
then I started with own examples, but first of all I had a problem with
"bundle" packacking. Maven build fail, because "bundle" was unknown for
Maven.

The solution is simple (with some already gained knowledge about Maven,
OSGi, ...) ,  just add "<extensions>true</extensions>" to
maven-bundle-plugin.
Why I'm posting here is because, have I missed something? I guess I haven't
seen this thing, needed for a succesfull build in no blogpost, or oficial
Karaf documentation.
If I'm not wrong, why it's not there? I mean, is there some default
settings expected, or is it problem just on my side?


-- 
S pozdravem / Best regards
Martin Stiborský

Jabber: stibi@njs.netlab.cz
Twitter: http://www.twitter.com/stibi

Re: Creating extensions to Karaf console - loading Maven extensions

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Martin,

guess it's us being kind of blind on that eye to not have linked it
somewhere.
It's documented at the maven-bundle-plugin page at the felix project, see
[1]. I guess
we somehow expect people to already "know" most of the osgi basics and the
tools
around. I'd say we have some room for improvement on this :-)

regards, Achim

[1] - http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html


2013/3/13 Martin Stiborský <ma...@gmail.com>

> Hello guys,
> I just started to creating own extension to Karaf console, to handle some
> things to a project I'm running under Karaf.
>
> I went through few tutorial and documentation, how to make a extension,
> then I started with own examples, but first of all I had a problem with
> "bundle" packacking. Maven build fail, because "bundle" was unknown for
> Maven.
>
> The solution is simple (with some already gained knowledge about Maven,
> OSGi, ...) ,  just add "<extensions>true</extensions>" to
> maven-bundle-plugin.
> Why I'm posting here is because, have I missed something? I guess I
> haven't seen this thing, needed for a succesfull build in no blogpost, or
> oficial Karaf documentation.
> If I'm not wrong, why it's not there? I mean, is there some default
> settings expected, or is it problem just on my side?
>
>
> --
> S pozdravem / Best regards
> Martin Stiborský
>
> Jabber: stibi@njs.netlab.cz
> Twitter: http://www.twitter.com/stibi
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>