Maven
  1. Maven
  2. MNG-2061

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        573d 9h 35m 1 Brett Porter 06/Sep/07 20:39
        Mark Thomas made changes -
        Workflow jira [ 12949841 ] Default workflow, editable Closed status [ 12986046 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12712738 ] Default workflow, editable Closed status [ 12752646 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Brett Porter made changes -
        Fix Version/s 2.0.8 [ 13139 ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0.x [ 13141 ]
        Brett Porter made changes -
        Assignee Brett Porter [ brettporter ]
        jancajas made changes -
        Attachment MNG-2061-maven-project.patch [ 29185 ]
        Hide
        jancajas added a comment -

        attached patch and unit test.

        releaseArtifactRepository and snapshotArtifactRepository fields are not copied to the cloned MavenProject object when the project lifecycle is forked.

        (thanks brett.

        Show
        jancajas added a comment - attached patch and unit test. releaseArtifactRepository and snapshotArtifactRepository fields are not copied to the cloned MavenProject object when the project lifecycle is forked. (thanks brett.
        Jason van Zyl made changes -
        Fix Version/s 2.0.x [ 13141 ]
        Fix Version/s 2.0.6 [ 13010 ]
        kenneyw made changes -
        Fix Version/s 2.0.6 [ 13010 ]
        Fix Version/s 2.0.5 [ 12294 ]
        John Casey made changes -
        Fix Version/s 2.0.4 [ 12294 ]
        Fix Version/s 2.0.3 [ 12107 ]
        Brett Porter made changes -
        Field Original Value New Value
        Fix Version/s 2.0.3 [ 12107 ]
        Max Feldman created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development