You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Wabner (JIRA)" <ji...@codehaus.org> on 2014/05/08 08:25:10 UTC

[jira] (MDEP-446) make available on command line for dependency:copy

Thomas Wabner created MDEP-446:
----------------------------------

             Summary: make <destFileName> available on command line for dependency:copy
                 Key: MDEP-446
                 URL: https://jira.codehaus.org/browse/MDEP-446
             Project: Maven Dependency Plugin
          Issue Type: Improvement
          Components: copy
    Affects Versions: 2.8
            Reporter: Thomas Wabner


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





--
This message was sent by Atlassian JIRA
(v6.1.6#6162)