Karaf
  1. Karaf
  2. KARAF-1495

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sergey Zhemzhitsky
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development