Skip to content

Commit

Permalink
[MRELEASE-1091] Use non-interactive mode for forked Maven process
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 10, 2022
1 parent bbfc0e3 commit 2d46463
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,10 @@ public void executeGoals( File workingDirectory, List<String> 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 );
Expand Down

0 comments on commit 2d46463

Please sign in to comment.