Search in sources :

Example 6 with ActivationProperty

use of org.apache.maven.model.ActivationProperty in project tesb-studio-se by Talend.

the class CreateMavenDataServicePom method addProfileForCloud.

/**
 * DOC skip depoly phase in publich to cloud in parent pom, enable in nexus.
 */
private Profile addProfileForCloud() {
    Profile deployCloudProfile = new Profile();
    deployCloudProfile.setId("deploy-cloud");
    Activation deployCloudActivation = new Activation();
    ActivationProperty activationProperty = new ActivationProperty();
    activationProperty.setName("!altDeploymentRepository");
    deployCloudActivation.setProperty(activationProperty);
    deployCloudProfile.setActivation(deployCloudActivation);
    deployCloudProfile.setBuild(new Build());
    deployCloudProfile.getBuild().addPlugin(addSkipDeployFeatureMavenPlugin());
    return deployCloudProfile;
}
Also used : Build(org.apache.maven.model.Build) Activation(org.apache.maven.model.Activation) ActivationProperty(org.apache.maven.model.ActivationProperty) Profile(org.apache.maven.model.Profile)

Aggregations

ActivationProperty (org.apache.maven.model.ActivationProperty)6 Activation (org.apache.maven.model.Activation)3 Profile (org.apache.maven.model.Profile)3 ActivationFile (org.apache.maven.model.ActivationFile)2 ActivationOS (org.apache.maven.model.ActivationOS)2 Build (org.apache.maven.model.Build)2 Activation (org.apache.maven.settings.Activation)2 MavenActivationProperty (org.eclipse.che.maven.data.MavenActivationProperty)1