mirror of
https://github.com/apache/maven.git
synced 2025-02-25 20:05:24 +00:00
[MNG-4761] Fixing unit tests. system scope has to be preserved in plugin-level deps.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@984543 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b2fd85fa8a
commit
8cdb461fdf
@ -98,7 +98,10 @@ public List<Artifact> resolve( Plugin plugin, Artifact pluginArtifact, ArtifactR
|
||||
Set<Artifact> overrideArtifacts = new LinkedHashSet<Artifact>();
|
||||
for ( Dependency dependency : plugin.getDependencies() )
|
||||
{
|
||||
dependency.setScope( Artifact.SCOPE_RUNTIME );
|
||||
if ( !Artifact.SCOPE_SYSTEM.equals( dependency.getScope() ) )
|
||||
{
|
||||
dependency.setScope( Artifact.SCOPE_RUNTIME );
|
||||
}
|
||||
overrideArtifacts.add( repositorySystem.createDependencyArtifact( dependency ) );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user