mirror of https://github.com/apache/maven.git
PR: MNG-2309
Profiles are activated in random order so overriding settings doesn't produce the same results on all environments. Use a LinkedHashMap for the profilesById to preserve profile ordering. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@408021 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65b412ea17
commit
c2296be700
maven-project/src/main/java/org/apache/maven/profiles
|
@ -11,9 +11,9 @@ import org.codehaus.plexus.component.repository.exception.ComponentLifecycleExce
|
|||
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
|
@ -44,7 +44,7 @@ public class DefaultProfileManager
|
|||
|
||||
private List defaultIds = new ArrayList();
|
||||
|
||||
private Map profilesById = new HashMap();
|
||||
private Map profilesById = new LinkedHashMap();
|
||||
|
||||
public DefaultProfileManager( PlexusContainer container )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue