You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by flosee <fl...@gmx.de> on 2016/04/19 13:17:57 UTC

[karaf-maven-plugin 4.0.4] Problems with conditional features when generating offline repository with goal features-add-to-repository

Hi all,
I want to generate an offline repository as the productive system has no
internet access. The configuration section of my pom.xml looks like this

<configuration>
	<ignoreDependencyFlag>false</ignoreDependencyFlag>
	<addTransitiveFeatures>true</addTransitiveFeatures>
	<descriptors>
	
<descriptor>mvn:org.apache.karaf.features/spring/4.0.4/xml/features</descriptor>
	
<descriptor>mvn:org.apache.karaf.features/standard/4.0.4/xml/features</descriptor>
	
<descriptor>mvn:org.apache.karaf.features/framework/4.0.4/xml/features</descriptor>
	
<descriptor>mvn:org.apache.karaf.features/enterprise/4.0.4/xml/features</descriptor>
	
<descriptor>mvn:org.ops4j.pax.cdi/pax-cdi-features/0.12.0/xml/features</descriptor>
	
<descriptor>mvn:org.ops4j.pax.web/pax-web-features/4.2.4/xml/features</descriptor>
	
<descriptor>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.7.0/xml/features</descriptor>
	</descriptors>
	<features>
		<feature>instance</feature>
		<feature>package</feature>
		<feature>log</feature>
		<feature>ssh</feature>
		<feature>aries-blueprint</feature>
		<feature>system</feature>
		<feature>feature</feature>
		<feature>shell</feature>
		<feature>management</feature>
		<feature>service</feature>
		<feature>jaas</feature>
		<feature>shell-compat</feature>
		<feature>deployer</feature>
		<feature>diagnostic</feature>
		<feature>wrap</feature>
		<feature>bundle</feature>
		<feature>config</feature>
		<feature>kar</feature>
		<feature>transaction</feature>
	</features>
	<repository>${target}</repository>
</configuration>

The repository is actually generated, however conditional features seem not
to be considered properly. For instance, if I try to install the feature
transaction, karaf complains about the missing artifact
org.apache.felix.coordinator:1.0.2 which is a conditional bundle needed when
aries-blueprint is installed (boot feature). Even adding aries-blueprint and
transaction to the features section of the maven plugin configuration does
not help.
I would be very thankful if anyone can give me hint about what is wrong.

Thanks!



--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-maven-plugin-4-0-4-Problems-with-conditional-features-when-generating-offline-repository-with-y-tp4046281.html
Sent from the Karaf - User mailing list archive at Nabble.com.