mirror of https://github.com/apache/maven.git
o Fixed artifact filtering
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fc9b20303c
commit
f755552cbe
|
@ -249,13 +249,13 @@ public class MavenProject
|
|||
|
||||
for ( Dependency d : getDependencies() )
|
||||
{
|
||||
Artifact dependencyArtifact = repositorySystem.createArtifact( d.getGroupId(), d.getArtifactId(), d.getVersion(), d.getScope(), d.getType() );
|
||||
if ( filter != null )
|
||||
Artifact dependencyArtifact =
|
||||
repositorySystem.createArtifact( d.getGroupId(), d.getArtifactId(), d.getVersion(), d.getScope(),
|
||||
d.getType() );
|
||||
|
||||
if ( filter == null || filter.include( dependencyArtifact ) )
|
||||
{
|
||||
if ( filter.include( dependencyArtifact ) )
|
||||
{
|
||||
artifacts.add( dependencyArtifact );
|
||||
}
|
||||
artifacts.add( dependencyArtifact );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue