You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Boué (JIRA)" <ji...@apache.org> on 2016/08/06 16:33:20 UTC

[jira] [Commented] (MDEPLOY-181) DeployAtEnd cannot be overwritten from command line using -DdeployAtEnd=false

    [ https://issues.apache.org/jira/browse/MDEPLOY-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410655#comment-15410655 ] 

Guillaume Boué commented on MDEPLOY-181:
----------------------------------------

Since this is issue closed as "Not A Problem", should we remove the test added in [r1620139|http://svn.apache.org/viewvc?view=revision&revision=1620139] or make the failure expected? The test fails in CI at the moment.

It is indeed expected: the parameters configured in the POM take precedence over those from the default configuration (this can be seen in Maven Core inside the class [DefaultLifecycleExecutionPlanCalculator|https://github.com/apache/maven/blob/maven-3.3.9/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java#L303]).

> DeployAtEnd cannot be overwritten from command line using -DdeployAtEnd=false
> -----------------------------------------------------------------------------
>
>                 Key: MDEPLOY-181
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-181
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy
>    Affects Versions: 2.8.1
>         Environment: Maven 3.2.1 on Mac OSX 10.9.2
>            Reporter: Christian Lipphardt (camunda)
>            Assignee: Robert Scholte
>            Priority: Minor
>
> 1. Declare the maven-deploy-plugin and as configuration, add <deployAtEnd>true</deployAtEnd>.
> 2. Override deployAtEnd property using the command line argument '-DdeployAtEnd=false'.
> 3. Deploy plugin still wants to deploy all artifacts at the end.
> Expected behaviour:
> Deploy plugin honors command line argument '-DdeployAtEnd=false'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)