Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 27136 invoked from network); 1 Jul 2009 08:13:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 08:13:25 -0000 Received: (qmail 39648 invoked by uid 500); 1 Jul 2009 08:13:35 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 39543 invoked by uid 500); 1 Jul 2009 08:13:35 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 39533 invoked by uid 99); 1 Jul 2009 08:13:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 08:13:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 08:13:26 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id BDE5114A81B6 for ; Wed, 1 Jul 2009 03:13:05 -0500 (CDT) Message-ID: <20701753.31401246435985756.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Wed, 1 Jul 2009 03:13:05 -0500 (CDT) From: "Benjamin Bentmann (JIRA)" To: issues@maven.apache.org Subject: [jira] Commented: (MDEP-216) Specifying parameters on the command-line interface using -D syntax requires mdep refix. In-Reply-To: <25361076.31291246435625462.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MDEP-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182101#action_182101 ] Benjamin Bentmann commented on MDEP-216: ---------------------------------------- bq. According to the documentation however the "mdep." prefix is not needed You probably misread the [documentation about the parameter|http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#failOnMissingClassifierArtifact], it says {{Expression: ${mdep.failOnMissingClassifierArtifact}}}. > Specifying parameters on the command-line interface using -D syntax requires mdep refix. > ---------------------------------------------------------------------------------------- > > Key: MDEP-216 > URL: http://jira.codehaus.org/browse/MDEP-216 > Project: Maven 2.x Dependency Plugin > Issue Type: Bug > Components: copy-dependencies > Affects Versions: 2.0-alpha-1, 2.0-alpha-2, 2.0-alpha-3, 2.0-alpha-4, 2.0, 2.1, 2.2 > Environment: Maven 2.0.9, dependency plugin 2.0. > Reporter: Rob ten Hove > Assignee: Brian Fox > Priority: Minor > > I used the dependency:copy-dependencies goal on the command-line, and wanted to set the "failOnMissingClassifierArtifact" option to "false". > Command-line used: > mvn -Dclassifier=sources -DfailOnMissingClassifierArtifact=false -DoutputDirectory=x/y/z dependency:copy-dependencies > The problem is that the "failOnMissingClassifierArtifact" remained "true". This was also visible after running maven in debug mode. After looking in the source code, I saw that the "failOnMissingClassifierArtifact" class field was specified as '@parameter expression="${mdep.failOnMissingClassifierArtifact}" default-value="true"'. > The "outputDirectory" parameter however was specified as '@parameter expression="${outputDirectory}" default-value="${project.build.directory}/dependency"'. > Thus, without the "mdep." prefix. > The outputDirectory worked so I changed the commandline to include the *mdep.* prefix: > mvn -Dclassifier=sources -Dmdep.failOnMissingClassifierArtifact=false -DoutputDirectory=x/y/z dependency:copy-dependencies > Now it worked. According to the documentation however the "mdep." prefix is not needed, and I would find it strange if it was needed. I think this problem is also true for other parameters, maybe even for other goals. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira