mirror of https://github.com/apache/maven.git
o Fixed profile activation
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
929016ddf9
commit
db03ef60f0
|
@ -193,9 +193,15 @@ public class DefaultMavenExecutionRequestPopulator
|
|||
|
||||
List settingsProfiles = settings.getProfiles();
|
||||
|
||||
List settingsActiveProfileIds = settings.getActiveProfiles();
|
||||
List<String> settingsActiveProfileIds = settings.getActiveProfiles();
|
||||
|
||||
profileManager.getProfileActivationContext().setExplicitlyActiveProfileIds( settingsActiveProfileIds );
|
||||
if ( settingsActiveProfileIds != null )
|
||||
{
|
||||
for ( String profileId : settingsActiveProfileIds )
|
||||
{
|
||||
profileManager.getProfileActivationContext().setActive( profileId );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ( settingsProfiles != null ) && !settingsProfiles.isEmpty() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue