[ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103263 ]
Thomas Hart commented on MEAR-73: --------------------------------- Sorry i'm a maven newbie, i don't know where the right position is. But I think the following code block include the unwanted dependencies. {code:java|title=org.apache.maven.plugin.ear.AbstractEarMojo} ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); if ( !isArtifactRegistered( artifact, allModules ) && !artifact.isOptional() && filter.include( artifact ) ) { EarModule module = EarModuleFactory.newEarModule( artifact, defaultLibBundleDir ); allModules.add( module ); } {code} I try to use the {{excludeTransitive}} parameter for the {{dependency:resolve-plugins}} mojo. Maybe that works for me. > Property to disable transitive dependencies resolving > ----------------------------------------------------- > > Key: MEAR-73 > URL: http://jira.codehaus.org/browse/MEAR-73 > Project: Maven 2.x Ear Plugin > Issue Type: Improvement > Reporter: Thomas Hart > > We have ears with a lot of modules. So the transitive dependencies are very > huge and to exclude all these with {{<excluded>true</excluded>}} is no > option. Also to mark these dependencies with optional is no way. It is > possible to create a new property for that? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira