File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
maven-release-plugin/src/main/java/org/apache/maven/plugins/release Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1919package org .apache .maven .plugins .release ;
2020
2121import java .io .File ;
22- import java .io .IOException ;
2322import java .nio .file .Path ;
2423import java .util .ArrayList ;
2524import java .util .Arrays ;
@@ -146,12 +145,7 @@ protected ReleaseDescriptorBuilder createReleaseDescriptor() {
146145
147146 descriptor .setInteractive (settings .isInteractiveMode ());
148147
149- Path workingDirectory ;
150- try {
151- workingDirectory = getCommonBasedir (reactorProjects );
152- } catch (IOException e ) {
153- throw new RuntimeException (e .getMessage ());
154- }
148+ Path workingDirectory = getCommonBasedir (reactorProjects );
155149 descriptor .setWorkingDirectory (workingDirectory .toFile ().getAbsolutePath ());
156150
157151 Path rootBasedir = basedir .toPath ();
@@ -262,7 +256,7 @@ protected void addArgument(String argument) {
262256 }
263257 }
264258
265- static Path getCommonBasedir (List <MavenProject > reactorProjects ) throws IOException {
259+ private static Path getCommonBasedir (List <MavenProject > reactorProjects ) {
266260 Path basePath = reactorProjects .get (0 ).getBasedir ().toPath ();
267261
268262 for (MavenProject reactorProject : reactorProjects ) {
You can’t perform that action at this time.
0 commit comments