You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Benson Margulies <be...@basistech.com> on 2015/08/31 13:54:06 UTC
Tuning start= on a bundle in a feature
Here's a start/main/feature/feature.xml. Note the use of my particular
Maven property: rosette-osgi-version. Is there a way to get the Karaf
plugin to use the version from the dependency tree?
<features name="${project.artifactId}-${project.version}"
xmlns="http://karaf.apache.org/xmlns/features/v1.3.0">
<feature name='${project.artifactId}'
description='${project.name}' version='${project.version}' >
<details>${project.description}</details>
<bundle
start="false">mvn:com.basistech.osgi.template.component/template-component-osgi/${rosette-osgi-version}/jar/fragment-bundle</bundle>
</feature>
</features>
Re: Tuning start= on a bundle in a feature
Posted by Achim Nierbeck <bc...@googlemail.com>.
yes,
if it is a maven property.
The karaf and other features.xml also use this.
I added a link to the pax-web features project as example [1]
regards, Achim
[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-features/src/main/resources/features.xml
2015-08-31 13:54 GMT+02:00 Benson Margulies <be...@basistech.com>:
> Here's a start/main/feature/feature.xml. Note the use of my particular
> Maven property: rosette-osgi-version. Is there a way to get the Karaf
> plugin to use the version from the dependency tree?
>
>
> <features name="${project.artifactId}-${project.version}"
> xmlns="http://karaf.apache.org/xmlns/features/v1.3.0">
> <feature name='${project.artifactId}'
> description='${project.name}' version='${project.version}' >
> <details>${project.description}</details>
> <bundle
>
> start="false">mvn:com.basistech.osgi.template.component/template-component-osgi/${rosette-osgi-version}/jar/fragment-bundle</bundle>
> </feature>
> </features>
>
--
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