mirror of https://github.com/apache/maven.git
Stop re-applying profiles to models that have already had profiles applied.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497556 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e3b0fd239
commit
87226eab2e
|
@ -885,29 +885,7 @@ public class DefaultMavenProjectBuilder
|
|||
{
|
||||
Model model = project.getModel();
|
||||
|
||||
List explicitlyActive;
|
||||
List explicitlyInactive;
|
||||
|
||||
if ( profileMgr != null )
|
||||
{
|
||||
explicitlyActive = profileMgr.getExplicitlyActivatedIds();
|
||||
explicitlyInactive = profileMgr.getExplicitlyDeactivatedIds();
|
||||
}
|
||||
else
|
||||
{
|
||||
explicitlyActive = Collections.EMPTY_LIST;
|
||||
explicitlyInactive = Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
List active = profileAdvisor.applyActivatedProfiles( model, projectDir, explicitlyActive, explicitlyInactive );
|
||||
|
||||
LinkedHashSet activated = new LinkedHashSet();
|
||||
|
||||
activated.addAll( project.getActiveProfiles() );
|
||||
activated.addAll( active );
|
||||
|
||||
List activeProfiles = new ArrayList( activated );
|
||||
project.setActiveProfiles( activeProfiles );
|
||||
List activeProfiles = project.getActiveProfiles();
|
||||
|
||||
// TODO: Clean this up...we're using this to 'jump' the interpolation step for model properties not expressed in XML.
|
||||
// [BP] - Can this above comment be explained?
|
||||
|
|
Loading…
Reference in New Issue