It's a bug that is fixed in svn. I've been running a custom built version for several months that has this fix.
Anyone care to comment on when a war plugin release is going to happen? -----Original Message----- From: Piotr Bzdyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 7:16 AM To: Maven Users List Subject: Re: [m2] war plugin and warSourceExcludes not working for dependencies > Is it a bug in the maven-war-plugin? From plugin sources: for ( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); // TODO: utilise appropriate methods from project builder ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); if ( !artifact.isOptional() && filter.include( artifact ) ) { String type = artifact.getType(); if ( "tld".equals( type ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), tldDirectory ); } /* ################################################################### */ else if ( "jar".equals( type ) || "ejb".equals( type ) || "ejb-client".equals( type ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), libDirectory ); } /* ################################################################### */ It seems that all dependencies are copied to the WEB-INF/lib - excludes filter is not used here. Is this a bug or the plugin should work this way? If this behavior is intended maybe there should be some flag or other excludes filter for project dependencies? I tried to make all dependencies <scope>provided</scope> but then they don't appear in the manifest.mf Classpath :( Best regards, Piotrek --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
