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: Open Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      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.

      1. MJAR-107.patch
        3 kB
        Christian Schulte

        Activity

        Christian Schulte made changes -
        Field Original Value New Value
        Attachment MJAR-107.patch [ 34751 ]

          People

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

            Dates

            • Created:
              Updated: