You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Sergey Zhemzhitsky (JIRA)" <ji...@apache.org> on 2012/05/21 21:21:42 UTC

[jira] [Created] (KARAF-1495) Allow feature-maven-plugin:add-features-to-repo to resolve dependencies without specifying the directory to copy to

Sergey Zhemzhitsky created KARAF-1495:
-----------------------------------------

             Summary: Allow feature-maven-plugin:add-features-to-repo to resolve dependencies without specifying the directory to copy to
                 Key: KARAF-1495
                 URL: https://issues.apache.org/jira/browse/KARAF-1495
             Project: Karaf
          Issue Type: Improvement
            Reporter: Sergey Zhemzhitsky


Allow feature-maven-plugin:add-features-to-repo to resolve dependencies without specifying the directory to copy to.

For example

{code}
<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>
{code}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira