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

make <destFileName> available on command line for dependency:copy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8
    • more-investigation
    • copy
    • None

    Description

      It would be nice to be able to specify the destFileName as parameter on commandline, to copy a dependency.

      This is currently only supported in the pom.xml configuration section for the dependency plugin like:

      <artifactItems>
                      <artifactItem>
                        <groupId>${project.groupId}</groupId>
                        <artifactId>${project.artifactId}</artifactId>
                        <version>${project.version}</version>
                        <type>${project.packaging}</type>
                        <destFileName>${project.build.finalName}.${project.packaging}</destFileName>
                        <overWrite>true</overWrite>
                      </artifactItem>
                    </artifactItems>
      

      We want to have a option on command line, to specify the destFileName with a parameter.

      For example:

      mvn dependency:copy -Dartifact=groupid:artifactId:version:war -Dmdep.stripVersion=true -DoutputDirectory=/temp/ -Dartifact.destFileName=result.war

      Attachments

        Activity

          People

            Unassigned Unassigned
            waffel Thomas Wabner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: