Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2061

DistributionManagement properties don't get copied in cloned executionProject while lifecycle fork

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.8
    • Component/s: Plugins and Lifecycle
    • Labels:
      None

      Description

      Define a new Maven plugin with the goal described like this:

      /**

      • @execute phase="deploy"
      • @goal deploy-custom
        */

      When running 'mvn deploy-custom', deploy phase execution fails with 'Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated'.
      It seems the problem raises from the fact that releaseArtifactRepository/snapshotArtifactRepository don't get copied in the cloned executionProject while lifecycle fork.

        Attachments

          Activity

            People

            • Assignee:
              brettporter Brett Porter
              Reporter:
              xfeldman Max Feldman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: