From a1a6d86db5425d18b6ff0f35fe1ee48fa8852af6 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 13 Apr 2018 15:48:40 +0200 Subject: [PATCH] #73 - Disable backup poms during version increment. We now call versions:set with -DgenerateBackupPoms=false to disable .versionBackup file creation. --- .../data/release/build/MavenBuildSystem.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/release-tools/src/main/java/org/springframework/data/release/build/MavenBuildSystem.java b/release-tools/src/main/java/org/springframework/data/release/build/MavenBuildSystem.java index 7e7e73e..e6406d4 100644 --- a/release-tools/src/main/java/org/springframework/data/release/build/MavenBuildSystem.java +++ b/release-tools/src/main/java/org/springframework/data/release/build/MavenBuildSystem.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -234,12 +234,14 @@ class MavenBuildSystem implements BuildSystem { CommandLine goals = CommandLine.of(goal("versions:set"), goal("versions:commit")); - mvn.execute(project, goals.and(arg("newVersion").withValue(information.getProjectVersionToSet(project)))); + mvn.execute(project, goals.and(arg("newVersion").withValue(information.getProjectVersionToSet(project))) + .and(arg("generateBackupPoms").withValue("false"))); if (BUILD.equals(project)) { - mvn.execute(project, goals.and(arg("newVersion").withValue(information.getReleaseTrainVersion()))// - .and(arg("groupId").withValue("org.springframework.data"))// + mvn.execute(project, goals.and(arg("newVersion").withValue(information.getReleaseTrainVersion())) // + .and(arg("generateBackupPoms").withValue("false")) // + .and(arg("groupId").withValue("org.springframework.data")) // .and(arg("artifactId").withValue("spring-data-releasetrain"))); mvn.execute(project, CommandLine.of(Goal.INSTALL));