Hi Dominik,
On 05.02.17 11:27, Dominik Przybysz wrote:
> Look at my simple example here:
> https://github.com/alien11689/feature-toggle/tree/master/featuretoogle-karaf-feature
> <https://github.com/alien11689/feature-toggle/tree/master/featuretoogle-karaf-feature>
Ok, I see from your example that you wrote your feature.xml manually.
You do not refer to any dependencies in the POM. From the docs I
understood that putting the dependencies in your POM should be
equivalent to what you wrote and the feature.xml file should be
generated automatically. Like, instead of:
<bundle
start-level="80">mvn:com.github.alien11689.osgi.featuretoogle/com.github.alien11689.osgi.feature-toggle-api/1.0-SNAPSHOT</bundle>
<bundle
start-level="80">mvn:com.github.alien11689.osgi.featuretoogle/com.github.alien11689.osgi.feature-toggle-impl/1.0-SNAPSHOT</bundle>
the POM should contain
<dependency>
<groupId>com.github.alien11689.osgi.featuretoogle</groupId>
<artifactId>com.github.alien11689.osgi.feature-toggle-api</artifactId>
<version>1.0-SNAPSHOT</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.github.alien11689.osgi.featuretoogle</groupId>
<artifactId>com.github.alien11689.osgi.feature-toggle-impl</artifactId>
<version>1.0-SNAPSHOT</version>
<type>bundle</type>
</dependency>
This somehow works for our application but the resulting feature.xml
does not resolve all dependencies, especially not those that are
supposed to exist already in Karaf as you mentioned.
I hope it is possible to understand what I'm trying to achieve.
Bye, Thomas