[ https://jira.codehaus.org/browse/MEAR-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282151#comment-282151 ]
Dennis Lundberg commented on MEAR-87: ------------------------------------- This is an interesting approach that I am interested in getting into the EAR Plugin. Although somewhat related to MEAR-60, this fills another need. It looks similar in concept to the packagingExcludes feature in the WAR Plugin. This feature is useful if you have multiple EARs that use a common "shared library" of JARs, where MEAR-60 in contrast is used to share JARs within the modules of a single EAR. I'm also looking at MWAR-81, which is an enhancement to packagingExcludes to allow different "selectors", like regexp. There might be an overlap between these two. Even if it turns out there is no overlap, we should still try to use a common terminology when it comes to naming the configuration parameters. > Allow exclusion of artifacts when building the ear file. > -------------------------------------------------------- > > Key: MEAR-87 > URL: https://jira.codehaus.org/browse/MEAR-87 > Project: Maven 2.x Ear Plugin > Issue Type: New Feature > Affects Versions: 2.3.1 > Reporter: Dieter Houthooft > Priority: Minor > Fix For: 2.7 > > Attachments: maven-ear-plugin-excludes-fixed.patch, > maven-ear-plugin-excludes.patch > > > 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> -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira