Hi Xav,
you mean using the generate-feature goal of the plugin ?
Honestly, if you want some "special" configuration like this, you have
to create the feature by hand and upload the feature XML artifact using
the build-helper-plugin to attach the artifact.
By the way, soon in the karaf-maven-plugin, it will be possible to
resolve the transitive features (in the install-kar goal first).
Regards
JB
On 05/27/2014 08:59 AM, xav wrote:
Hi all,
Question about this plugin.
in my case it's work very well, just, I would like add a "feature cap", i.e.
if I have the following dependencies
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>my-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>my-manager</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>my-impl</artifactId>
<version>${project.version}</version>
</dependency>
in the feature.xml generated, I have
<features>
<feature name='my-api' version='0.1.0' >
<bundle>mvn:com.eaton.pqsoft/my-api/0.1.0</bundle>
</feature>
<feature name='my-manager' version='0.1.0' >
<feature version='0.1.0'>my-api</feature>
<bundle>mvn:com.eaton.pqsoft/my-manager/0.1.0</bundle>
</feature>
<feature name='my-impl' version='0.1.0' >
<bundle>mvn:commons-lang/commons-lang/2.6</bundle>
<feature version='0.1.0'>my-api</feature>
<bundle>mvn:commons-io/commons-io/2.0.1</bundle>
<bundle>mvn:commons-codec/commons-codec/1.4</bundle>
<bundle>mvn:com.eaton.pqsoft/my-impl/0.1.0</bundle>
</feature>
</features>
Ok, but if I want a feature named "my" where inside I have this:
<feature name='my' version='0.1.0' >
<feature version='0.1.0'>my-manager</feature>
<feature version='0.1.0'>my-impl</feature>
</feature>
In the plugin's documentation, I don't find, any information to add
manually, or automatically somethings like this.
Is there a solution to my problem?
Thanks
Regards
--
View this message in context:
http://karaf.922171.n3.nabble.com/karaf-features-maven-plugin-tp4033284.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com