mirror of
https://github.com/apache/maven.git
synced 2025-03-08 09:44:43 +00:00
don't add dependencies with scope=provided to wtpmodules
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@329864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea3a153a95
commit
aaf2b81012
@ -198,7 +198,8 @@ private void writeWarSpecificResources( XMLWriter writer, File basedir, MavenPro
|
|||||||
Artifact artifact = (Artifact) it.next();
|
Artifact artifact = (Artifact) it.next();
|
||||||
String type = artifact.getType();
|
String type = artifact.getType();
|
||||||
|
|
||||||
if ( "jar".equals( type ) || "ejb".equals( type ) || "ejb-client".equals( type ) )
|
if ( "jar".equals( type ) || "ejb".equals( type ) || "ejb-client".equals( type )
|
||||||
|
&& !Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) )
|
||||||
{
|
{
|
||||||
addDependency( writer, artifact, referencedReactorArtifacts, localRepository );
|
addDependency( writer, artifact, referencedReactorArtifacts, localRepository );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user