You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Kerry Billingham <ke...@redbite.com> on 2015/09/08 10:01:30 UTC
Karaf Features Maven archetype (karaf-feature-archetype)
Hi,
I was wondering if I can use karaf-feature-archetype to build a
features.xml where my feature has a dependency upon another feature? As
far as I can work out I can specify only dependent bundles with
artifact, group etc. but can I specify a dependent feature as well?
Oddly for some reason I'm having problems picking up the latest version
of this archetype (4.0.1?) through Netbeans but seems to work ok from
commandline. (granted, this further issue is probably not directly
related to this mailing list but if anyone else has experienced this it
would be nice to know)
Thanks
Kerry
Re: Karaf Features Maven archetype (karaf-feature-archetype)
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
the karaf-maven-plugin right now only takes dependencies for bundles into
account of using those to "fill in the gaps" for feature files.
If you want to build a more sophisticated feature file you'll need to
create it yourself. But you can combine the two for example if you take
your "hand-made" feature descriptor as template for the plugin.
regards, Achim
2015-10-17 18:34 GMT+02:00 Daniel McGreal <d....@gmail.com>:
> I’d like to know too!
>
> Does it work if you depend on another maven project with packaging
> ‘feature’? Would be cool! But not super useful if you want to depend on a
> repo/feature without a published karat-maven-plugin bundle.
>
> Dan.
>
> > On 8 Sep 2015, at 09:01, Kerry Billingham <ke...@redbite.com> wrote:
> >
> > Hi,
> >
> > I was wondering if I can use karaf-feature-archetype to build a
> features.xml where my feature has a dependency upon another feature? As far
> as I can work out I can specify only dependent bundles with artifact, group
> etc. but can I specify a dependent feature as well?
> >
> > Oddly for some reason I'm having problems picking up the latest version
> of this archetype (4.0.1?) through Netbeans but seems to work ok from
> commandline. (granted, this further issue is probably not directly related
> to this mailing list but if anyone else has experienced this it would be
> nice to know)
> >
> > Thanks
> >
> > Kerry
>
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
Re: Karaf Features Maven archetype (karaf-feature-archetype)
Posted by Daniel McGreal <d....@gmail.com>.
I’d like to know too!
Does it work if you depend on another maven project with packaging ‘feature’? Would be cool! But not super useful if you want to depend on a repo/feature without a published karat-maven-plugin bundle.
Dan.
> On 8 Sep 2015, at 09:01, Kerry Billingham <ke...@redbite.com> wrote:
>
> Hi,
>
> I was wondering if I can use karaf-feature-archetype to build a features.xml where my feature has a dependency upon another feature? As far as I can work out I can specify only dependent bundles with artifact, group etc. but can I specify a dependent feature as well?
>
> Oddly for some reason I'm having problems picking up the latest version of this archetype (4.0.1?) through Netbeans but seems to work ok from commandline. (granted, this further issue is probably not directly related to this mailing list but if anyone else has experienced this it would be nice to know)
>
> Thanks
>
> Kerry