[MNG-7576] Restore compatibility for flatten-maven-plugin (#903)

This commit is contained in:
Guillaume Nodet 2022-12-05 17:22:33 +01:00 committed by GitHub
parent dc47da4366
commit f27b975ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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);