Maven Shade Plugin
  1. Maven Shade Plugin
  2. MSHADE-66

Creation of dependency reduced POM fails for project with uninstalled local parent using Maven 3

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2
    • Labels:
      None

      Description

      When running the Shade Plugin with Maven 3, the plugin will fail to create the dependency reduced POM if the POM inherits from a parent that is not installed to the local repo but only available from the project checkout via <relativePath> and that parent is not part of the reactor build. The problem being that the plugin creates the dependency reduced POM in the target directory, thereby changing the base directory when it calls the project builder. This only works in Maven 2.x because of internal project caches which are not present in this form in 3.x

        Activity

        Benjamin Bentmann created issue -
        Hide
        Benjamin Bentmann added a comment -

        Fixed in r830522.

        Show
        Benjamin Bentmann added a comment - Fixed in r830522 .
        Benjamin Bentmann made changes -
        Field Original Value New Value
        Assignee Benjamin Bentmann [ bentmann ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.2.2 [ 15525 ]
        Benjamin Bentmann made changes -
        Description When running the Shade Plugin with Maven 3, the plugin will fail to create the dependency reduced POM if the POM inherits from a parent that is not installed to the local repo but only available from the project checkout via {{<relativePath>}}. The problem being that the plugin creates the dependency reduced POM in the {{target}} directory, thereby changing the base directory when it calls the project builder. This only works in Maven 2.x because of internal project caches which are not present in this form in 3.x When running the Shade Plugin with Maven 3, the plugin will fail to create the dependency reduced POM if the POM inherits from a parent that is not installed to the local repo but only available from the project checkout via {{<relativePath>}} and that parent is not part of the reactor build. The problem being that the plugin creates the dependency reduced POM in the {{target}} directory, thereby changing the base directory when it calls the project builder. This only works in Maven 2.x because of internal project caches which are not present in this form in 3.x
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:26:34 UTC 2015 [ 1428236794734 ]
        Mark Thomas made changes -
        Workflow jira [ 12725880 ] Default workflow, editable Closed status [ 12764128 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:14:06 UTC 2015 [ 1428282846586 ]
        Mark Thomas made changes -
        Workflow jira [ 12963638 ] Default workflow, editable Closed status [ 12999504 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        9m 6s 1 Benjamin Bentmann 28/Oct/09 08:15

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development