Search in sources :

Example 1 with PropertyProfileActivator

use of org.apache.maven.model.profile.activation.PropertyProfileActivator in project spring-boot by spring-projects.

the class MavenSettings method createProfileSelector.

private DefaultProfileSelector createProfileSelector() {
    DefaultProfileSelector selector = new DefaultProfileSelector();
    selector.addProfileActivator(new FileProfileActivator().setPathTranslator(new DefaultPathTranslator()));
    selector.addProfileActivator(new JdkVersionProfileActivator());
    selector.addProfileActivator(new PropertyProfileActivator());
    selector.addProfileActivator(new OperatingSystemProfileActivator());
    return selector;
}
Also used : JdkVersionProfileActivator(org.apache.maven.model.profile.activation.JdkVersionProfileActivator) PropertyProfileActivator(org.apache.maven.model.profile.activation.PropertyProfileActivator) OperatingSystemProfileActivator(org.apache.maven.model.profile.activation.OperatingSystemProfileActivator) FileProfileActivator(org.apache.maven.model.profile.activation.FileProfileActivator) DefaultPathTranslator(org.apache.maven.model.path.DefaultPathTranslator) DefaultProfileSelector(org.apache.maven.model.profile.DefaultProfileSelector)

Aggregations

DefaultPathTranslator (org.apache.maven.model.path.DefaultPathTranslator)1 DefaultProfileSelector (org.apache.maven.model.profile.DefaultProfileSelector)1 FileProfileActivator (org.apache.maven.model.profile.activation.FileProfileActivator)1 JdkVersionProfileActivator (org.apache.maven.model.profile.activation.JdkVersionProfileActivator)1 OperatingSystemProfileActivator (org.apache.maven.model.profile.activation.OperatingSystemProfileActivator)1 PropertyProfileActivator (org.apache.maven.model.profile.activation.PropertyProfileActivator)1