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]