protected void setDefaultMavenDescriptor() {
// Flag to publish the Maven POM, but no pom file inputted, activate default Maven install.
// if the project doesn't have the maven install task, warn
Project project = getProject();
TaskContainer tasks = project.getTasks();
Upload installTask = tasks.withType(Upload.class).findByName("install");
if (installTask == null) {
log.warn("Cannot publish pom for project '{}' since it does not contain the Maven " +
"plugin install task and task '{}' does not specify a custom pom path.",
new Object[]{project.getPath(), getPath()});
mavenDescriptor = null;