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;
}
Aggregations