[
https://issues.apache.org/jira/browse/KARAF-5465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ge@@ru updated KARAF-5465:
--------------------------
Description:
karaf-maven-plugin: 4.1.3
features-maven-plugin: 2.4.4
Pom parent is a dep-manager that has as parent:
<parent>
<groupId>org.apache.servicemix.parent</groupId>
<artifactId>features-parent</artifactId>
<version>7.0.1</version>
</parent>
{code:xml}
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
<executions>
<execution>
<id>add-features-to-repo</id>
<goals>
<goal>add-features-to-repo</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<karafVersion>${karaf.version}</karafVersion>
<descriptors>
<descriptor>mvn:org.apache.cxf.karaf/apache-cxf/${cxf.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.servicemix.features/servicemix-features/${servicemix.version}/xml/features</descriptor>
<descriptor>file:${project.build.directory}/feature/feature.xml</descriptor>
</descriptors>
<features>
<feature>my-features-on-local</feature>
</features>
<includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
<repository>target/system</repository>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
</plugin>
{code}
features.xml of descriptors with mvn: prefix are correctly inserted but not
descriptors with file: prefix.
Also jar of my-features-on-local inside local target/features/feature.xml are
inserted correctly.
was:
karaf-maven-plugin: 4.1.3
features-maven-plugin: 2.4.4
Pom parent is a dep-manager that has as parent:
<parent>
<groupId>org.apache.servicemix.parent</groupId>
<artifactId>features-parent</artifactId>
<version>7.0.1</version>
</parent>
{code:xml}
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
<executions>
<execution>
<id>add-features-to-repo</id>
<goals>
<goal>add-features-to-repo</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<karafVersion>${karaf.version}</karafVersion>
<descriptors>
<descriptor>mvn:org.apache.cxf.karaf/apache-cxf/${cxf.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor>
<descriptor>mvn:org.apache.servicemix.features/servicemix-features/${servicemix.version}/xml/features</descriptor>
<descriptor>file:${project.build.directory}/feature/feature.xml</descriptor>
</descriptors>
<features>
<feature>ews-fetcher</feature>
</features>
<includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
<repository>target/system</repository>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
</plugin>
{code}
features.xml of descriptors with mvn: prefix are correctly inserted but not
descriptors with file: prefix.
> features-maven-plugin: Descriptor of the project is not added on system
> repository with goal add-features-to-repo
> -----------------------------------------------------------------------------------------------------------------
>
> Key: KARAF-5465
> URL: https://issues.apache.org/jira/browse/KARAF-5465
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 4.0.9
> Reporter: Ge@@ru
>
> karaf-maven-plugin: 4.1.3
> features-maven-plugin: 2.4.4
> Pom parent is a dep-manager that has as parent:
> <parent>
> <groupId>org.apache.servicemix.parent</groupId>
> <artifactId>features-parent</artifactId>
> <version>7.0.1</version>
> </parent>
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>add-features-to-repo</id>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <phase>generate-resources</phase>
> <configuration>
> <karafVersion>${karaf.version}</karafVersion>
> <descriptors>
>
> <descriptor>mvn:org.apache.cxf.karaf/apache-cxf/${cxf.version}/xml/features</descriptor>
>
> <descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor>
>
> <descriptor>mvn:org.apache.servicemix.features/servicemix-features/${servicemix.version}/xml/features</descriptor>
>
> <descriptor>file:${project.build.directory}/feature/feature.xml</descriptor>
> </descriptors>
> <features>
> <feature>my-features-on-local</feature>
> </features>
>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <repository>target/system</repository>
> </configuration>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven.wagon</groupId>
> <artifactId>wagon-http-lightweight</artifactId>
> <version>2.6</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> features.xml of descriptors with mvn: prefix are correctly inserted but not
> descriptors with file: prefix.
> Also jar of my-features-on-local inside local target/features/feature.xml are
> inserted correctly.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)