From 2d46463d38e1f7f9afc4cc0947e15c390df15ecd Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 10 May 2022 00:50:14 +0200 Subject: [PATCH] [MRELEASE-1091] Use non-interactive mode for forked Maven process --- .../maven/shared/release/exec/InvokerMavenExecutor.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/exec/InvokerMavenExecutor.java b/maven-release-manager/src/main/java/org/apache/maven/shared/release/exec/InvokerMavenExecutor.java index b118c4df9..1eda20959 100644 --- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/exec/InvokerMavenExecutor.java +++ b/maven-release-manager/src/main/java/org/apache/maven/shared/release/exec/InvokerMavenExecutor.java @@ -72,16 +72,10 @@ public void executeGoals( File workingDirectory, List goals, ReleaseEnvi InvocationRequest req = new DefaultInvocationRequest() .setDebug( getLogger().isDebugEnabled() ) .setBaseDirectory( workingDirectory ) - .setBatchMode( !interactive ) + .setBatchMode( true ) .setOutputHandler( getLogger()::info ) .setErrorHandler( getLogger()::error ); - // for interactive mode we need some inputs stream - if ( interactive ) - { - req.setInputStream( System.in ); - } - if ( pomFileName != null ) { req.setPomFileName( pomFileName );