Maven Deploy Plugin
  1. Maven Deploy Plugin
  2. MDEPLOY-89

Skip won't work if distribution management is not specified

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      Imagine a project where you want to adjust the standard build lifecycle of a packaging type. You want to do most of the build steps as definied by the packacking type except the deployment. You want to a let your own plugin do the work. In this case you have to skip the deploy goal of the deploy plugin. It is possible to set the skip property of the deploy plugin to true, but this will cause an error if you haven't specified a distribution management.
      The problem:
      The deploy plugin defines the property deploymentRepository (http://maven.apache.org/plugins/maven-deploy-plugin/xref/org/apache/maven/plugin/deploy/DeployMojo.html#85).
      Because of the dependency injection by plexus, plexus tries to resolve the ArtifactRepository which is not possible if there is no distribution management definied.
      I don't know much about plexus, but it should be possible to define that property as lazy loading. I guess this will fix the problem.

        Issue Links

          Activity

          René Link created issue -
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue depends upon MDEPLOY-50 [ MDEPLOY-50 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MDEPLOY-50 [ MDEPLOY-50 ]
          Benjamin Bentmann made changes -
          Link This issue depends upon MDEPLOY-50 [ MDEPLOY-50 ]
          Benjamin Bentmann made changes -
          Link This issue is related to PLX-415 [ PLX-415 ]
          Benjamin Bentmann made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Fix Version/s 2.5 [ 14498 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:25:59 UTC 2015 [ 1428225959796 ]
          Mark Thomas made changes -
          Workflow jira [ 12719328 ] Default workflow, editable Closed status [ 12761528 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:00:37 UTC 2015 [ 1428274837609 ]
          Mark Thomas made changes -
          Workflow jira [ 12956808 ] Default workflow, editable Closed status [ 12993575 ]

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              René Link
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development