mirror of https://github.com/apache/maven.git
[MNG-6114] Elements from the global settings should be ordered before elements from the user settings
This closes #142 and closes #418
This commit is contained in:
parent
d740200811
commit
b23116d626
|
@ -111,6 +111,7 @@ public class MavenSettingsMerger
|
||||||
String recessiveSourceLevel )
|
String recessiveSourceLevel )
|
||||||
{
|
{
|
||||||
Map<String, T> dominantById = mapById( dominant );
|
Map<String, T> dominantById = mapById( dominant );
|
||||||
|
final List<T> identifiables = new ArrayList<>( recessive.size() );
|
||||||
|
|
||||||
for ( T identifiable : recessive )
|
for ( T identifiable : recessive )
|
||||||
{
|
{
|
||||||
|
@ -118,9 +119,11 @@ public class MavenSettingsMerger
|
||||||
{
|
{
|
||||||
identifiable.setSourceLevel( recessiveSourceLevel );
|
identifiable.setSourceLevel( recessiveSourceLevel );
|
||||||
|
|
||||||
dominant.add( identifiable );
|
identifiables.add( identifiable );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dominant.addAll( 0, identifiables );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue