Search in sources :

Example 1 with OperatingSystemProfileActivator

use of org.apache.maven.model.profile.activation.OperatingSystemProfileActivator 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)

Example 2 with OperatingSystemProfileActivator

use of org.apache.maven.model.profile.activation.OperatingSystemProfileActivator in project spring-cloud-function by spring-cloud.

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)2 DefaultProfileSelector (org.apache.maven.model.profile.DefaultProfileSelector)2 FileProfileActivator (org.apache.maven.model.profile.activation.FileProfileActivator)2 JdkVersionProfileActivator (org.apache.maven.model.profile.activation.JdkVersionProfileActivator)2 OperatingSystemProfileActivator (org.apache.maven.model.profile.activation.OperatingSystemProfileActivator)2 PropertyProfileActivator (org.apache.maven.model.profile.activation.PropertyProfileActivator)2