[
https://issues.apache.org/jira/browse/KARAF-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14300104#comment-14300104
]
Matthias Jeschke commented on KARAF-3491:
-----------------------------------------
But I want to include the ipojo feature in the distribution, however, the
descriptor does not have the "features" classifier. How would I do this?
> karaf-maven-plugin:install-kars ignores feature descriptors without
> classifier "features"
> -----------------------------------------------------------------------------------------
>
> Key: KARAF-3491
> URL: https://issues.apache.org/jira/browse/KARAF-3491
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 3.0.2, 3.0.3
> Environment: Windows 7 64Bit, Java 8, Maven 3
> Reporter: Matthias Jeschke
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
>
> When building a custom distribution using the karaf-assemble archetype, it
> seems like the install-kars goal ignores features descriptors defined in the
> dependency section that do not have a classifier "features". This can be
> seen, e.g, when adding the feature descriptor for ipojo:
> {code:xml}
> <dependency>
> <groupId>org.apache.felix</groupId>
> <artifactId>org.apache.felix.ipojo.features</artifactId>
> <version>1.12.1</version>
> <type>xml</type>
> <scope>runtime</scope>
> </dependency>
> {code}
> When Maven runs, the dependency is ignored / not resolved:
> {noformat}
> [INFO] --- karaf-maven-plugin:3.0.3:install-kars (default-install-kars) @
> pcbnxt-karaf3 ---
> [INFO] Creating system directory
> [INFO] Creating startup.properties
> [INFO] Loading kar and features repositories dependencies with compile or
> runtime scopes
> [INFO] The startup.properties file is updated using kar and features
> dependency with a scope different from runtime, or defined in the
> <startupFeatures/> plugin configuration
> [INFO] Extracting org.apache.karaf.features:framework:kar:3.0.3:compile kar
> [INFO] Resolving
> /C:/Users/mj/Development/Workspace/Java/pcbnxt/pcbnxt-karaf3/target/assembly/system/org/apache/karaf/features/framework/3.0.3/framework-3.0.3-features.xml
> features repository
> [INFO] Resolving
> org.apache.karaf.features:standard:xml:features:3.0.3:runtime features
> repository
> [INFO] Resolving mvn:org.apache.karaf.features/standard/3.0.3/xml/features
> features repository
> [INFO] Resolving mvn:org.ops4j.pax.web/pax-web-features/3.1.4/xml/features
> features repository
> [INFO] Checking features resolution
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)