Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-107

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

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 2.2
    • None
    • None
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            schulte77 Christian Schulte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: