mirror of https://github.com/apache/maven.git
[MNG-7576] Restore compatibility for flatten-maven-plugin (#903)
This commit is contained in:
parent
dc47da4366
commit
f27b975ddc
|
@ -20,6 +20,7 @@ package org.apache.maven.model.profile;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import javax.inject.Inject;
|
||||
|
@ -44,6 +45,10 @@ public class DefaultProfileSelector implements ProfileSelector {
|
|||
|
||||
private final List<ProfileActivator> activators;
|
||||
|
||||
public DefaultProfileSelector() {
|
||||
this.activators = Collections.emptyList();
|
||||
}
|
||||
|
||||
@Inject
|
||||
public DefaultProfileSelector(List<ProfileActivator> activators) {
|
||||
this.activators = new ArrayList<>(activators);
|
||||
|
|
Loading…
Reference in New Issue