This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch dep
in repository https://gitbox.apache.org/repos/asf/maven-release.git

commit 482161a270821ec7139d7dc632690cc7330993e4
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Fri Nov 28 06:34:05 2025 -0600

    Clean up exceptions
---
 .../org/apache/maven/plugins/release/AbstractReleaseMojo.java  | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git 
a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/AbstractReleaseMojo.java
 
b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/AbstractReleaseMojo.java
index bf228d53..f321078a 100644
--- 
a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/AbstractReleaseMojo.java
+++ 
b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/AbstractReleaseMojo.java
@@ -19,7 +19,6 @@
 package org.apache.maven.plugins.release;
 
 import java.io.File;
-import java.io.IOException;
 import java.nio.file.Path;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -146,12 +145,7 @@ public abstract class AbstractReleaseMojo extends 
AbstractMojo {
 
         descriptor.setInteractive(settings.isInteractiveMode());
 
-        Path workingDirectory;
-        try {
-            workingDirectory = getCommonBasedir(reactorProjects);
-        } catch (IOException e) {
-            throw new RuntimeException(e.getMessage());
-        }
+        Path workingDirectory = getCommonBasedir(reactorProjects);
         
descriptor.setWorkingDirectory(workingDirectory.toFile().getAbsolutePath());
 
         Path rootBasedir = basedir.toPath();
@@ -262,7 +256,7 @@ public abstract class AbstractReleaseMojo extends 
AbstractMojo {
         }
     }
 
-    static Path getCommonBasedir(List<MavenProject> reactorProjects) throws 
IOException {
+    private static Path getCommonBasedir(List<MavenProject> reactorProjects) {
         Path basePath = reactorProjects.get(0).getBasedir().toPath();
 
         for (MavenProject reactorProject : reactorProjects) {

Reply via email to