Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-454

copy-dependencies with <includeArtifactIds> does NOT copy transitive deps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 2.8
    • None
    • copy-dependencies
    • None

    Description

      I would like to copy transitive deps of specific artifacts into a custom directory. For that I am using copy-dependencies goal of dep plugin.

      But the plugin copies only the artifacts which are mentioned in <includeArtifactIds> tag and not its transitive deps.

      POM section for reference->

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-dependency-plugin</artifactId>
              <version>2.8</version>
              <executions>
                <execution>
                  <id>Copying dependencies into ${stage}/${pkg_name_ss}/jars</id>
                  <phase>package</phase>
                  <goals>
                    <goal>copy-dependencies</goal>
                  </goals>
                  <configuration>
                    <excludeTransitive>false</excludeTransitive>
                    <includeArtifactIds>jbpm-executor,jbpm-runtime-manager</includeArtifactIds>
                    <outputDirectory>${stage}/${pkg_name_ss}/jars</outputDirectory>
                    <overWriteReleases>false</overWriteReleases>
                    <overWriteSnapshots>false</overWriteSnapshots>
                    <overWriteIfNewer>true</overWriteIfNewer>
                  </configuration>
                </execution>
              </executions>
            </plugin>
      

      It is a blocker for me.

      -Tejas.

      Attachments

        1. console.txt
          5 kB
          Tejas Mulay
        2. consumerBanking.zip
          224 kB
          Tejas Mulay

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              tejasmulay Tejas Mulay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: