Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Allow feature-maven-plugin:add-features-to-repo to resolve dependencies without specifying the directory to copy to.
For example
<plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>features-maven-plugin</artifactId> <version>${karaf.version}</version> <executions> <execution> <id>add-features-to-repo</id> <phase>generate-resources</phase> <goals> <goal>add-features-to-repo</goal> </goals> <configuration> <descriptors> <descriptor>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</descriptor> </descriptors> <features> <feature>camel-blueprint</feature> </features> <addTransitiveFeatures>true</addTransitiveFeatures> <failOnArtifactResolutionError>false</failOnArtifactResolutionError> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors> <resolveOnly>true</resolveOnly> </configuration> </execution> </executions> </plugin>
The <resolveOnly>true</resolveOnly> will tell the feature-maven-plugin to
resolve (like http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html) the specified features without copying them into the target directory.
It can be rather useful when doing integration testing with karaf testing framework.
As a rule a feature has more dependencies than maven dependency and embedded karaf always connects to Internet do resolve dependencies of the specified feature, which are not listed in the pom.xml