Uploaded image for project: 'Maven EAR Plugin'
  1. Maven EAR Plugin
  2. MEAR-87

Allow exclusion of artifacts when building the ear file.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.1
    • 2.7
    • None
    • Patch

    Description

      What is included in the .ear file is determined by the module list and the dependency list and its transitive dependencies. We are often confronted with changing demands about what to include in our ear files. It is quite hard to change our dependency management (scopes) every time without side-effects on other distributable artifacts. So I created an exclude configuration option which allows to exclude artifacts from the ear file based on regular expressions (java.util.regex) matching artifactIds and groupIds.

      Use it like this:

      <configuration>
         <excludes>
            <exclude>
               <groupId>be.nondistributable.*</groupId>
            </exclude>
         </excludes>
      </configuration>
      

      Attachments

        1. maven-ear-plugin-excludes.patch
          12 kB
          Dieter Houthooft
        2. maven-ear-plugin-excludes-fixed.patch
          12 kB
          Dieter Houthooft

        Activity

          People

            dennisl@apache.org Dennis Lundberg
            dhouthoo Dieter Houthooft
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: