This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-release.git
The following commit(s) were added to refs/heads/master by this push:
new 0ef78fd8 Bump parent from 42 to 45
0ef78fd8 is described below
commit 0ef78fd81a46cc34e5f92d06f6afef31d3085c2e
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Fri Oct 31 22:21:42 2025 +0100
Bump parent from 42 to 45
- bump parent
- fix checkstyle issues
- fix ITs
- disable ci-friendly-multi-module IT for Maven 4
---
.github/dependabot.yml | 3 -
maven-release-manager/pom.xml | 4 +
.../config/PropertiesReleaseDescriptorStore.java | 1 +
.../release/phase/AbstractRewritePomsPhase.java | 1 +
.../AbstractRewritingReleasePhaseTestCase.java | 1 -
.../phase/CheckDependencySnapshotsPhaseTest.java | 12 +-
.../shared/release/phase/MapVersionsPhaseTest.java | 141 ++++++++++-----------
.../release/transform/jdom2/JDomBuildTest.java | 2 -
.../transform/jdom2/JDomDependencyTest.java | 4 -
.../release/transform/jdom2/JDomParentTest.java | 3 +-
.../maven/shared/release/util/PomFinderTest.java | 18 +--
.../MRELEASE-161-dependencyManagement/pom.xml | 1 +
.../src/it/projects/prepare/MRELEASE-161/pom.xml | 1 +
.../ci-friendly-multi-module/invoker.properties | 4 +-
.../policy/semver/SemVerVersionPolicyTest.java | 2 +-
pom.xml | 11 +-
16 files changed, 105 insertions(+), 104 deletions(-)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index d7c9cd4e..9c761915 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -21,9 +21,6 @@ updates:
directory: "/"
schedule:
interval: "daily"
- ignore:
- # Ignore Maven Core updates
- - dependency-name: "org.apache.maven:*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
diff --git a/maven-release-manager/pom.xml b/maven-release-manager/pom.xml
index 85216354..917c09f9 100644
--- a/maven-release-manager/pom.xml
+++ b/maven-release-manager/pom.xml
@@ -30,6 +30,10 @@
<name>Maven Release Manager</name>
+ <properties>
+ <checkstyle.violation.ignore>FileLength</checkstyle.violation.ignore>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.maven.release</groupId>
diff --git
a/maven-release-manager/src/main/java/org/apache/maven/shared/release/config/PropertiesReleaseDescriptorStore.java
b/maven-release-manager/src/main/java/org/apache/maven/shared/release/config/PropertiesReleaseDescriptorStore.java
index 2ebb584d..8faf3844 100644
---
a/maven-release-manager/src/main/java/org/apache/maven/shared/release/config/PropertiesReleaseDescriptorStore.java
+++
b/maven-release-manager/src/main/java/org/apache/maven/shared/release/config/PropertiesReleaseDescriptorStore.java
@@ -137,6 +137,7 @@ public class PropertiesReleaseDescriptorStore implements
ReleaseDescriptorStore
* @param file a {@link java.io.File} object
* @throws
org.apache.maven.shared.release.config.ReleaseDescriptorStoreException if any.
*/
+ @SuppressWarnings("checkstyle:MethodLength")
public void write(BuilderReleaseDescriptor config, File file) throws
ReleaseDescriptorStoreException {
Properties properties = new Properties();
properties.setProperty("completedPhase", config.getCompletedPhase());
diff --git
a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
b/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
index 4f180ee2..91b16645 100644
---
a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
+++
b/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
@@ -608,6 +608,7 @@ public abstract class AbstractRewritePomsPhase extends
AbstractReleasePhase impl
* @param releaseDescriptor
* @return {@code true} if the property was rewritten, otherwise {@code
false}
*/
+ @SuppressWarnings("checkstyle:ParameterNumber")
boolean rewritePropertyUsedInVersionExpression(
String projectKey,
String artifactKey,
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractRewritingReleasePhaseTestCase.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractRewritingReleasePhaseTestCase.java
index 3dea7ba1..9b7eb7a1 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractRewritingReleasePhaseTestCase.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractRewritingReleasePhaseTestCase.java
@@ -519,7 +519,6 @@ public abstract class AbstractRewritingReleasePhaseTestCase
extends AbstractRele
ScmManager scmManager = (ScmManager) lookup(ScmManager.class);
if (scmManager instanceof ScmManagerStub) {
((ScmManagerStub) scmManager).setException(new
NoSuchScmProviderException("..."));
- ;
}
// execute
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckDependencySnapshotsPhaseTest.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckDependencySnapshotsPhaseTest.java
index 325ea4b3..739732cd 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckDependencySnapshotsPhaseTest.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckDependencySnapshotsPhaseTest.java
@@ -68,7 +68,7 @@ public class CheckDependencySnapshotsPhaseTest extends
AbstractReleaseTestCase {
@Test
public void testNoSnapshotDependencies() throws Exception {
ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder();
- ;
+
List<MavenProject> reactorProjects =
createDescriptorFromProjects("no-snapshot-dependencies");
phase.execute(ReleaseUtils.buildReleaseDescriptor(builder), new
DefaultReleaseEnvironment(), reactorProjects);
@@ -609,7 +609,7 @@ public class CheckDependencySnapshotsPhaseTest extends
AbstractReleaseTestCase {
@Test
public void testNoSnapshotReportPlugins() throws Exception {
ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder();
- ;
+
List<MavenProject> reactorProjects =
createDescriptorFromProjects("no-snapshot-report-plugins");
phase.execute(ReleaseUtils.buildReleaseDescriptor(builder), new
DefaultReleaseEnvironment(), reactorProjects);
@@ -699,7 +699,7 @@ public class CheckDependencySnapshotsPhaseTest extends
AbstractReleaseTestCase {
@Test
public void testNoSnapshotPlugins() throws Exception {
ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder();
- ;
+
List<MavenProject> reactorProjects =
createDescriptorFromProjects("no-snapshot-plugins");
phase.execute(ReleaseUtils.buildReleaseDescriptor(builder), new
DefaultReleaseEnvironment(), reactorProjects);
@@ -910,7 +910,7 @@ public class CheckDependencySnapshotsPhaseTest extends
AbstractReleaseTestCase {
@Test
public void testReleaseExternalParent() throws Exception {
ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder();
- ;
+
List<MavenProject> reactorProjects =
createDescriptorFromProjects("external-parent/child");
phase.execute(ReleaseUtils.buildReleaseDescriptor(builder), new
DefaultReleaseEnvironment(), reactorProjects);
@@ -968,7 +968,7 @@ public class CheckDependencySnapshotsPhaseTest extends
AbstractReleaseTestCase {
@Test
public void testReleaseExternalExtension() throws Exception {
ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder();
- ;
+
List<MavenProject> reactorProjects =
createDescriptorFromProjects("external-extension");
phase.execute(ReleaseUtils.buildReleaseDescriptor(builder), new
DefaultReleaseEnvironment(), reactorProjects);
@@ -1088,7 +1088,7 @@ public class CheckDependencySnapshotsPhaseTest extends
AbstractReleaseTestCase {
String developmentVersion;
- public VersionPair(String releaseVersion, String developmentVersion) {
+ VersionPair(String releaseVersion, String developmentVersion) {
this.releaseVersion = releaseVersion;
this.developmentVersion = developmentVersion;
}
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/MapVersionsPhaseTest.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/MapVersionsPhaseTest.java
index 4fb8b527..a4e30e19 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/MapVersionsPhaseTest.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/MapVersionsPhaseTest.java
@@ -84,7 +84,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteSnapshot_MapRelease() throws Exception {
+ public void testExecuteSnapshotMapRelease() throws Exception {
// prepare
MavenProject project = createProject("artifactId", "1.0-SNAPSHOT");
when(mockPrompter.prompt(
@@ -111,7 +111,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateSnapshot_MapReleaseVersions() throws Exception {
+ public void testSimulateSnapshotMapReleaseVersions() throws Exception {
// prepare
MavenProject project = createProject("artifactId", "1.0-SNAPSHOT");
when(mockPrompter.prompt(
@@ -354,7 +354,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteSnapshotNonInteractive_MapRelease() throws
Exception {
+ public void testExecuteSnapshotNonInteractiveMapRelease() throws Exception
{
// prepare
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -375,7 +375,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateSnapshotNonInteractive_MapReleaseVersions() throws
Exception {
+ public void testSimulateSnapshotNonInteractiveMapReleaseVersions() throws
Exception {
// prepare
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -663,7 +663,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_DefaultDevelopmentVersion_MapDevelopment()
throws Exception {
+ public void
testExecuteSnapshotBranchCreationDefaultDevelopmentVersionMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -688,7 +688,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_DefaultDevelopmentVersion_MapDevelopment()
throws Exception {
+ public void
testSimulateSnapshotBranchCreationDefaultDevelopmentVersionMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -713,7 +713,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_DefaultDevelopmentVersion_NonInteractive_MapDevelopment()
+ public void
testExecuteSnapshotBranchCreationDefaultDevelopmentVersionNonInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
@@ -740,7 +740,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_DefaultDevelopmentVersion_NonInteractive_MapDevelopment()
+ public void
testSimulateSnapshotBranchCreationDefaultDevelopmentVersionNonInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
@@ -767,7 +767,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_NonInteractive_MapDevelopment() throws
Exception {
+ public void
testExecuteSnapshotBranchCreationNonInteractiveMapDevelopment() throws
Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -792,7 +792,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_NonInteractive_MapDevelopment() throws
Exception {
+ public void
testSimulateSnapshotBranchCreationNonInteractiveMapDevelopment() throws
Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -817,7 +817,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteSnapshotDefaultDevelopmentVersion_MapDevelopment()
throws Exception {
+ public void testExecuteSnapshotDefaultDevelopmentVersionMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -841,7 +841,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateSnapshotDefaultDevelopmentVersion_MapDevelopment()
throws Exception {
+ public void testSimulateSnapshotDefaultDevelopmentVersionMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -865,7 +865,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotDefaultDevelopmentVersion_NonInteractive_MapDevelopment()
throws Exception {
+ public void
testExecuteSnapshotDefaultDevelopmentVersionNonInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -890,7 +890,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotDefaultDevelopmentVersion_NonInteractive_MapDevelopment()
throws Exception {
+ public void
testSimulateSnapshotDefaultDevelopmentVersionNonInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -915,7 +915,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteSnapshotNonInteractive_MapDevelopment() throws
Exception {
+ public void testExecuteSnapshotNonInteractiveMapDevelopment() throws
Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -939,7 +939,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateSnapshotNonInteractive_MapDevelopment() throws
Exception {
+ public void testSimulateSnapshotNonInteractiveMapDevelopment() throws
Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -963,7 +963,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotAutoVersionSubmodules_NotInteractive_MapDevelopment() throws
Exception {
+ public void
testExecuteSnapshotAutoVersionSubmodulesNotInteractiveMapDevelopment() throws
Exception {
// verify
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -988,7 +988,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotAutoVersionSubmodules_NotInteractive_MapDevelopment()
throws Exception {
+ public void
testSimulateSnapshotAutoVersionSubmodulesNotInteractiveMapDevelopment() throws
Exception {
// verify
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1013,7 +1013,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseAutoVersionSubmodules_NotInteractive_MapDevelopment() throws
Exception {
+ public void
testExecuteReleaseAutoVersionSubmodulesNotInteractiveMapDevelopment() throws
Exception {
// verify
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1038,7 +1038,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseAutoVersionSubmodules_NotInteractive_MapDevelopment() throws
Exception {
+ public void
testSimulateReleaseAutoVersionSubmodulesNotInteractiveMapDevelopment() throws
Exception {
// verify
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1063,7 +1063,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotAutoVersionSubmodules_NotInteractive_MapRelease() throws
Exception {
+ public void
testExecuteSnapshotAutoVersionSubmodulesNotInteractiveMapRelease() throws
Exception {
// verify
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1088,7 +1088,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotAutoVersionSubmodules_NotInteractive_MapRelease() throws
Exception {
+ public void
testSimulateSnapshotAutoVersionSubmodulesNotInteractiveMapRelease() throws
Exception {
// verify
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1113,7 +1113,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseAutoVersionSubmodules_NotInteractive_MapRelease() throws
Exception {
+ public void
testExecuteReleaseAutoVersionSubmodulesNotInteractiveMapRelease() throws
Exception {
// verify
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1138,7 +1138,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseAutoVersionSubmodules_NotInteractive_MapRelease() throws
Exception {
+ public void
testSimulateReleaseAutoVersionSubmodulesNotInteractiveMapRelease() throws
Exception {
// verify
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1163,8 +1163,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotAutoVersionSubmodules_BranchCreation_NotInteractive_MapDevelopment()
- throws Exception {
+ public void
testExecuteSnapshotAutoVersionSubmodulesBranchCreationNotInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1190,8 +1189,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotAutoVersionSubmodules_BranchCreation_NotInteractive_MapDevelopment()
- throws Exception {
+ public void
testSimulateSnapshotAutoVersionSubmodulesBranchCreationNotInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1217,8 +1215,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseAutoVersionSubmodules_BranchCreation_NotInteractive_MapDevelopment()
- throws Exception {
+ public void
testExecuteReleaseAutoVersionSubmodulesBranchCreationNotInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1244,8 +1241,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseAutoVersionSubmodules_BranchCreation_NotInteractive_MapDevelopment()
- throws Exception {
+ public void
testSimulateReleaseAutoVersionSubmodulesBranchCreationNotInteractiveMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1271,7 +1267,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotAutoVersionSubmodules_BranchCreation_NotInteractive_MapBranch()
throws Exception {
+ public void
testExecuteSnapshotAutoVersionSubmodulesBranchCreationNotInteractiveMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1297,7 +1293,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotAutoVersionSubmodules_BranchCreation_NotInteractive_MapBranch()
throws Exception {
+ public void
testSimulateSnapshotAutoVersionSubmodulesBranchCreationNotInteractiveMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1323,7 +1319,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseAutoVersionSubmodules_BranchCreation_NotInteractive_MapBranch()
throws Exception {
+ public void
testExecuteReleaseAutoVersionSubmodulesBranchCreationNotInteractiveMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1354,7 +1350,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseAutoVersionSubmodules_BranchCreation_NotInteractive_MapBranch()
throws Exception {
+ public void
testSimulateReleaseAutoVersionSubmodulesBranchCreationNotInteractiveMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1385,7 +1381,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_NonInteractive_UpdateBranchVersions_MapBranch()
throws Exception {
+ public void
testExecuteSnapshotBranchCreationNonInteractiveUpdateBranchVersionsMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1414,7 +1410,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_NonInteractive_UpdateBranchVersions_MapBranch()
throws Exception {
+ public void
testSimulateSnapshotBranchCreationNonInteractiveUpdateBranchVersionsMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1443,7 +1439,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_DefaultReleaseVersion_NonInteractive_UpdateBranchVersions_MapBranch()
+ public void
testExecuteSnapshotBranchCreationDefaultReleaseVersionNonInteractiveUpdateBranchVersionsMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
@@ -1471,7 +1467,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_DefaultReleaseVersion_NonInteractive_UpdateBranchVersions_MapBranch()
+ public void
testSimulateSnapshotBranchCreationDefaultReleaseVersionNonInteractiveUpdateBranchVersionsMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
@@ -1499,8 +1495,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_DefaultReleaseVersion_UpdateBranchVersions_MapBranch()
- throws Exception {
+ public void
testExecuteSnapshotBranchCreationDefaultReleaseVersionUpdateBranchVersionsMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1526,7 +1521,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_DefaultReleaseVersion_UpdateBranchVersions_MapBranch()
+ public void
testSimulateSnapshotBranchCreationDefaultReleaseVersionUpdateBranchVersionsMapBranch()
throws Exception {
// prepare
MapBranchVersionsPhase phase =
@@ -1553,7 +1548,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_UpdateBranchVersions_MapBranch() throws
Exception {
+ public void
testExecuteSnapshotBranchCreationUpdateBranchVersionsMapBranch() throws
Exception {
// prepare
// updateBranchVersions is set to true, so suggest the next snapshot
version
// org.apache.maven.release:maven-release-manager:(,2.4) > 1.2-SNAPSHOT
@@ -1579,7 +1574,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_UpdateBranchVersions_MapBranch() throws
Exception {
+ public void
testSimulateSnapshotBranchCreationUpdateBranchVersionsMapBranch() throws
Exception {
// prepare
// updateBranchVersions is set to true, so suggest the next snapshot
version
// org.apache.maven.release:maven-release-manager:(,2.4) > 1.2-SNAPSHOT
@@ -1605,7 +1600,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseBranchCreation_UpdateBranchVersions_UpdateVersionsToSnapshot_MapBranch()
+ public void
testExecuteReleaseBranchCreationUpdateBranchVersionsUpdateVersionsToSnapshotMapBranch()
throws Exception {
// prepare
// updateBranchVersions is set to true, so suggest the next snapshot
version
@@ -1640,7 +1635,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseBranchCreation_UpdateBranchVersions_UpdateVersionsToSnapshot_MapBranch()
+ public void
testSimulateReleaseBranchCreationUpdateBranchVersionsUpdateVersionsToSnapshotMapBranch()
throws Exception {
// prepare
// updateBranchVersions is set to true, so suggest the next snapshot
version
@@ -1675,7 +1670,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_UpdateBranchVersions_UpdateVersionsToSnapshot_MapBranch()
+ public void
testExecuteSnapshotBranchCreationUpdateBranchVersionsUpdateVersionsToSnapshotMapBranch()
throws Exception {
// prepare
// updateBranchVersions is set to true, so suggest the next snapshot
version
@@ -1703,7 +1698,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_UpdateBranchVersions_UpdateVersionsToSnapshot_MapBranch()
+ public void
testSimulateSnapshotBranchCreationUpdateBranchVersionsUpdateVersionsToSnapshotMapBranch()
throws Exception {
// prepare
// updateBranchVersions is set to true, so suggest the next snapshot
version
@@ -1731,7 +1726,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteReleaseBranchCreation_MapBranch() throws Exception {
+ public void testExecuteReleaseBranchCreationMapBranch() throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1760,7 +1755,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateReleaseBranchCreation_MapBranch() throws Exception
{
+ public void testSimulateReleaseBranchCreationMapBranch() throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1789,7 +1784,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseBranchCreation_NonUpdateWorkingCopyVersions_MapDevelopment()
throws Exception {
+ public void
testExecuteReleaseBranchCreationNonUpdateWorkingCopyVersionsMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1814,7 +1809,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseBranchCreation_NonUpdateWorkingCopyVersions_MapDevelopment()
throws Exception {
+ public void
testSimulateReleaseBranchCreationNonUpdateWorkingCopyVersionsMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1839,7 +1834,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteReleaseBranchCreation_MapDevelopment() throws
Exception {
+ public void testExecuteReleaseBranchCreationMapDevelopment() throws
Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1864,7 +1859,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateReleaseBranchCreation_MapDevelopment() throws
Exception {
+ public void testSimulateReleaseBranchCreationMapDevelopment() throws
Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1891,7 +1886,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteSnapshotBranchCreation_MapBranch() throws Exception
{
+ public void testExecuteSnapshotBranchCreationMapBranch() throws Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1915,7 +1910,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateSnapshotBranchCreation_MapBranch() throws
Exception {
+ public void testSimulateSnapshotBranchCreationMapBranch() throws Exception
{
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1939,7 +1934,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_NonUpdateWorkingCopyVersions_MapDevelopment()
throws Exception {
+ public void
testExecuteSnapshotBranchCreationNonUpdateWorkingCopyVersionsMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1964,7 +1959,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_NonUpdateWorkingCopyVersions_MapDevelopment()
throws Exception {
+ public void
testSimulateSnapshotBranchCreationNonUpdateWorkingCopyVersionsMapDevelopment()
throws Exception {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -1989,7 +1984,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteReleaseBranchCreation_UpdateBranchVersions_MapBranch() throws
Exception {
+ public void
testExecuteReleaseBranchCreationUpdateBranchVersionsMapBranch() throws
Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2017,7 +2012,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateReleaseBranchCreation_UpdateBranchVersions_MapBranch() throws
Exception {
+ public void
testSimulateReleaseBranchCreationUpdateBranchVersionsMapBranch() throws
Exception {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2045,7 +2040,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotBranchCreation_UpdateWorkingCopyVersions_MapDevelopment()
throws Exception {
+ public void
testExecuteSnapshotBranchCreationUpdateWorkingCopyVersionsMapDevelopment()
throws Exception {
// prepare
when(mockPrompter.prompt(startsWith("What is the new working copy
version for"), eq("1.3-SNAPSHOT")))
.thenReturn("2.0-SNAPSHOT");
@@ -2066,7 +2061,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotBranchCreation_UpdateWorkingCopyVersions_MapDevelopment()
throws Exception {
+ public void
testSimulateSnapshotBranchCreationUpdateWorkingCopyVersionsMapDevelopment()
throws Exception {
// prepare
when(mockPrompter.prompt(startsWith("What is the new working copy
version for"), eq("1.3-SNAPSHOT")))
.thenReturn("2.0-SNAPSHOT");
@@ -2087,7 +2082,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testExecuteMultiModuleAutoVersionSubmodules__MapDevelopment()
throws Exception {
+ public void testExecuteMultiModuleAutoVersionSubmodulesMapDevelopment()
throws Exception {
// verify
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2121,7 +2116,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateMultiModuleAutoVersionSubmodules__MapDevelopment()
throws Exception {
+ public void testSimulateMultiModuleAutoVersionSubmodulesMapDevelopment()
throws Exception {
// verify
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2155,7 +2150,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotAutoVersionSubmodules_DefaultReleaseVersion_NonInteractive_MapDevelopment()
+ public void
testExecuteSnapshotAutoVersionSubmodulesDefaultReleaseVersionNonInteractiveMapDevelopment()
throws Exception {
// verify
MapDevelopmentVersionsPhase phase =
@@ -2182,7 +2177,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotAutoVersionSubmodules_DefaultReleaseVersion_NonInteractive_MapDevelopment()
+ public void
testSimulateSnapshotAutoVersionSubmodulesDefaultReleaseVersionNonInteractiveMapDevelopment()
throws Exception {
// verify
MapDevelopmentVersionsPhase phase =
@@ -2209,7 +2204,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testExecuteSnapshotAutoVersionSubmodules_DefaultDevelopmentVersion_NonInteractive_MapDevelopment()
+ public void
testExecuteSnapshotAutoVersionSubmodulesDefaultDevelopmentVersionNonInteractiveMapDevelopment()
throws Exception {
// verify
MapDevelopmentVersionsPhase phase =
@@ -2236,7 +2231,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testSimulateSnapshotAutoVersionSubmodules_DefaultDevelopmentVersion_NonInteractive_MapDevelopment()
+ public void
testSimulateSnapshotAutoVersionSubmodulesDefaultDevelopmentVersionNonInteractiveMapDevelopment()
throws Exception {
// verify
MapDevelopmentVersionsPhase phase =
@@ -2382,7 +2377,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testUpdateBranchInvalidDefaultReleaseVersion_NonInteractive() {
+ public void testUpdateBranchInvalidDefaultReleaseVersionNonInteractive() {
// prepare
MapBranchVersionsPhase phase =
new MapBranchVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2405,7 +2400,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testUpdateReleaseInvalidDefaultReleaseVersion_NonInteractive()
{
+ public void testUpdateReleaseInvalidDefaultReleaseVersionNonInteractive() {
// prepare
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2427,7 +2422,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void
testUpdateDevelopmentInvalidDefaultDevelopmentVersion_NonInteractive() {
+ public void
testUpdateDevelopmentInvalidDefaultDevelopmentVersionNonInteractive() {
// prepare
MapDevelopmentVersionsPhase phase =
new MapDevelopmentVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
@@ -2449,7 +2444,7 @@ public class MapVersionsPhaseTest extends
PlexusJUnit4TestCase {
}
@Test
- public void testSimulateRelease_CheckModificationExcludes() throws
Exception {
+ public void testSimulateReleaseCheckModificationExcludes() throws
Exception {
// verify
MapReleaseVersionsPhase phase =
new MapReleaseVersionsPhase(scmRepositoryConfigurator,
mockPrompter, versionPolicies);
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomBuildTest.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomBuildTest.java
index 4db65a16..20115268 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomBuildTest.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomBuildTest.java
@@ -84,7 +84,6 @@ public class JDomBuildTest {
@Test(expected = UnsupportedOperationException.class)
public void testAddExtension() {
new JDomBuild(null).addExtension(null);
- ;
}
@Test(expected = UnsupportedOperationException.class)
@@ -120,7 +119,6 @@ public class JDomBuildTest {
@Test(expected = UnsupportedOperationException.class)
public void testSetExtensions() {
new JDomBuild(null).setExtensions(null);
- ;
}
@Test(expected = UnsupportedOperationException.class)
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomDependencyTest.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomDependencyTest.java
index 5745d27b..47441b98 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomDependencyTest.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomDependencyTest.java
@@ -106,25 +106,21 @@ public class JDomDependencyTest {
@Test(expected = UnsupportedOperationException.class)
public void testRemoveExclusion() {
new JDomDependency(null).removeExclusion(null);
- ;
}
@Test(expected = UnsupportedOperationException.class)
public void testSetArtifactIdString() {
new JDomDependency(null).setArtifactId(null);
- ;
}
@Test(expected = UnsupportedOperationException.class)
public void testSetClassifierString() {
new JDomDependency(null).setClassifier(null);
- ;
}
@Test(expected = UnsupportedOperationException.class)
public void testSetExclusions() {
new JDomDependency(null).setExclusions(null);
- ;
}
@Test(expected = UnsupportedOperationException.class)
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomParentTest.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomParentTest.java
index 036811ef..212a426e 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomParentTest.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom2/JDomParentTest.java
@@ -26,7 +26,8 @@ import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;
import org.junit.Test;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
public class JDomParentTest {
private SAXBuilder builder = new SAXBuilder();
diff --git
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/util/PomFinderTest.java
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/util/PomFinderTest.java
index 863f640d..05afe57e 100644
---
a/maven-release-manager/src/test/java/org/apache/maven/shared/release/util/PomFinderTest.java
+++
b/maven-release-manager/src/test/java/org/apache/maven/shared/release/util/PomFinderTest.java
@@ -47,19 +47,15 @@ public class PomFinderTest {
found = pf.parsePom(pomFile);
assertTrue("pomFile not found pomUrl " + pomUrl + ", pomFile " +
pomFile.getPath(), found);
- {
- File foundPom = pf.findMatchingPom(pomFile.getParentFile());
- assertNotNull(foundPom);
+ File foundPom = pf.findMatchingPom(pomFile.getParentFile());
+ assertNotNull(foundPom);
- assertEquals(pomFile.getAbsolutePath(),
foundPom.getAbsolutePath());
- }
+ assertEquals(pomFile.getAbsolutePath(), foundPom.getAbsolutePath());
- {
- // try from 1 directory higher
- File foundPom =
pf.findMatchingPom(pomFile.getParentFile().getParentFile());
- assertNotNull(foundPom);
+ // try from 1 directory higher
+ File foundPom2 =
pf.findMatchingPom(pomFile.getParentFile().getParentFile());
+ assertNotNull(foundPom2);
- assertEquals(pomFile.getAbsolutePath(),
foundPom.getAbsolutePath());
- }
+ assertEquals(pomFile.getAbsolutePath(), foundPom2.getAbsolutePath());
}
}
diff --git
a/maven-release-plugin/src/it/projects/prepare/MRELEASE-161-dependencyManagement/pom.xml
b/maven-release-plugin/src/it/projects/prepare/MRELEASE-161-dependencyManagement/pom.xml
index ff953014..b80f0aec 100644
---
a/maven-release-plugin/src/it/projects/prepare/MRELEASE-161-dependencyManagement/pom.xml
+++
b/maven-release-plugin/src/it/projects/prepare/MRELEASE-161-dependencyManagement/pom.xml
@@ -68,6 +68,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/ma
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
+ <version>@version.maven-source-plugin@</version>
<executions>
<execution>
<phase>package</phase>
diff --git a/maven-release-plugin/src/it/projects/prepare/MRELEASE-161/pom.xml
b/maven-release-plugin/src/it/projects/prepare/MRELEASE-161/pom.xml
index 8cd6dc02..fdc63a9d 100644
--- a/maven-release-plugin/src/it/projects/prepare/MRELEASE-161/pom.xml
+++ b/maven-release-plugin/src/it/projects/prepare/MRELEASE-161/pom.xml
@@ -49,6 +49,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/ma
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
+ <version>@version.maven-source-plugin@</version>
<executions>
<execution>
<phase>package</phase>
diff --git
a/maven-release-plugin/src/it/projects/prepare/ci-friendly-multi-module/invoker.properties
b/maven-release-plugin/src/it/projects/prepare/ci-friendly-multi-module/invoker.properties
index 50eda560..b5a4efb4 100644
---
a/maven-release-plugin/src/it/projects/prepare/ci-friendly-multi-module/invoker.properties
+++
b/maven-release-plugin/src/it/projects/prepare/ci-friendly-multi-module/invoker.properties
@@ -16,4 +16,6 @@
# under the License.
invoker.goals=release:clean release:prepare -Dsha1=-abcdef12
-#invoker.mavenOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
\ No newline at end of file
+#invoker.mavenOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
+
+invoker.maven.version=4-
diff --git
a/maven-release-policies/maven-release-semver-policy/src/test/java/org/apache/maven/shared/release/policy/semver/SemVerVersionPolicyTest.java
b/maven-release-policies/maven-release-semver-policy/src/test/java/org/apache/maven/shared/release/policy/semver/SemVerVersionPolicyTest.java
index 55c89fea..913d5d23 100644
---
a/maven-release-policies/maven-release-semver-policy/src/test/java/org/apache/maven/shared/release/policy/semver/SemVerVersionPolicyTest.java
+++
b/maven-release-policies/maven-release-semver-policy/src/test/java/org/apache/maven/shared/release/policy/semver/SemVerVersionPolicyTest.java
@@ -22,7 +22,7 @@ import
org.apache.maven.shared.release.policy.version.VersionPolicy;
import org.apache.maven.shared.release.policy.version.VersionPolicyRequest;
import org.junit.Test;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
public final class SemVerVersionPolicyTest {
diff --git a/pom.xml b/pom.xml
index a9c7e8c7..a80086ac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId>
- <version>42</version>
+ <version>45</version>
<relativePath />
</parent>
@@ -95,6 +95,10 @@
<wagonVersion>3.5.3</wagonVersion>
<slf4jVersion>1.7.36</slf4jVersion>
<junitVersion>4.13.2</junitVersion>
+
+ <!-- TODO: remove with next parent -->
+ <version.maven-invoker-plugin>3.9.1</version.maven-invoker-plugin>
+
<maven.site.path>maven-release-archives/maven-release-LATEST</maven.site.path>
<project.build.outputTimestamp>2025-09-16T17:06:48Z</project.build.outputTimestamp>
@@ -161,6 +165,11 @@
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.maven.plugin-tools</groupId>
+ <artifactId>maven-plugin-annotations</artifactId>
+ <version>${version.maven-plugin-tools}</version>
+ </dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>