File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -1777,8 +1777,23 @@ private static Set<Artifact> retainInProcArtifactsUnique( Set<Artifact> provider
1777
1777
Artifact ... inPluginArtifacts )
1778
1778
{
1779
1779
Set <Artifact > result = new LinkedHashSet <Artifact >();
1780
- addAll ( result , inPluginArtifacts );
1781
- result .removeAll ( providerArtifacts );
1780
+ for ( Artifact inPluginArtifact : inPluginArtifacts )
1781
+ {
1782
+ boolean contains = false ;
1783
+ for ( Artifact providerArtifact : providerArtifacts )
1784
+ {
1785
+ if ( providerArtifact .getGroupId ().equals ( inPluginArtifact .getGroupId () )
1786
+ && providerArtifact .getArtifactId ().equals ( inPluginArtifact .getArtifactId () ) )
1787
+ {
1788
+ contains = true ;
1789
+ break ;
1790
+ }
1791
+ }
1792
+ if ( !contains )
1793
+ {
1794
+ result .add ( inPluginArtifact );
1795
+ }
1796
+ }
1782
1797
return result ;
1783
1798
}
1784
1799
You can’t perform that action at this time.
0 commit comments