Maven JAR Plugin
  1. Maven JAR Plugin
  2. MJAR-107

[PATCH] Need the ability to include/exclude files based on output from other mojos.

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Not A Problem
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      Using various mojos to generate sources (JAXB,xmlbeans,castor,etc.) I would need the ability to let those mojos (or my own) specify a list of excludes for the jar mojo to not include all generated class files in the final jar file. I attached a patch which introduces two new mojo parameters includesFile and excludesFile which may point to textfiles containing includes or excludes to be used by the jar mojo. This way it is possible to let other mojos write those files and somehow configure the jar mojo that way. I did not find another solution to let mojos introduce such configuration of the jar mojo in another way. Any other solution highly appreciated.

        Activity

        Christian Schulte created issue -
        schulte2005 made changes -
        Field Original Value New Value
        Attachment MJAR-107.patch [ 34751 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 10:31:03 UTC 2015 [ 1428229863560 ]
        Mark Thomas made changes -
        Workflow jira [ 12721994 ] Default workflow, editable Closed status [ 12759457 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:05:23 UTC 2015 [ 1428278723217 ]
        Mark Thomas made changes -
        Workflow jira [ 12959506 ] Default workflow, editable Closed status [ 12996415 ]
        Karl Heinz Marbaise made changes -
        Fix Version/s waiting-for-feedback [ 12332649 ]
        Karl Heinz Marbaise made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Not A Problem [ 8 ]
        Karl Heinz Marbaise made changes -
        Fix Version/s waiting-for-feedback [ 12332649 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Christian Schulte
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development