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

Classes from current artifact are excluded when explicit shaded includes are provided

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3.1
    • Labels:
      None
    • Environment:
      Linux; maven 2.0.9

      Description

      When specifying artifacts to include in shaded jar, the final jar seem to exclude the built classes for the current artifact. This is a change from 1.2.2 where the current artifact was (quite rightly) included (as you are not really shading it, but rather others into it).

      Please find attached an example of this behaviour (example.zip);

      $ mvn -DshadePlugin=1.2.2 clean package
      $ unzip -l two/target/two-1-SNAPSHOT.jar | grep class
      260 01-11-10 18:37 org/test/two/Two.class
      317 01-11-10 18:37 shaded/org/test/one/One.class

      $ mvn -DshadePlugin=1.3 clean package
      $ unzip -l two/target/two-1-SNAPSHOT.jar | grep class
      317 01-11-10 18:41 shaded/org/test/one/One.class

        Activity

        cf created issue -
        Hide
        Benjamin Bentmann added a comment -

        Fixed in r900138.

        Show
        Benjamin Bentmann added a comment - Fixed in r900138 .
        Benjamin Bentmann made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Assignee Benjamin Bentmann [ bentmann ]
        Fix Version/s 1.3.1 [ 16111 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:26:34 UTC 2015 [ 1428236794734 ]
        Mark Thomas made changes -
        Workflow jira [ 12725886 ] Default workflow, editable Closed status [ 12764124 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:14:06 UTC 2015 [ 1428282846586 ]
        Mark Thomas made changes -
        Workflow jira [ 12963603 ] Default workflow, editable Closed status [ 12999466 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        5d 18h 46m 1 Benjamin Bentmann 17/Jan/10 07:35

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            cf
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development