Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365399

Summary: Allow disabling --batch-mode on execution
Product: z_Archived Reporter: Tuukka Mustonen <catapl3xis>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: catapl3xis, igor, matze
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Tuukka Mustonen CLA 2011-12-02 04:31:25 EST
Seems like m2eclipse always turns on --batch mode. The cause is that interactive executions resort on default values. For example, one cannot interactively type in the version identifiers and other properties that *should* be asked by release:prepare goal - instead, the build resorts to the default values.

I don't know the reasoning behind setting it always enabled, but maybe allow disabling the --batch-mode through an additional checkbox on the launch page?

Previous questions about the issue (with no answers):

http://maven.40175.n5.nabble.com/release-prepare-in-non-batch-mode-td511082.html
http://dev.eclipse.org/mhonarc/lists/m2e-dev/msg00008.html
Comment 1 Igor Fedorenko CLA 2013-09-29 09:52:36 EDT
closing old/stale bugreports
Comment 2 Matthias Hanisch CLA 2015-11-30 06:26:46 EST
I think this is a valid issue. There are some helper plugins that cannot be executed as m2e launch in practice because of the fact that the batch mode cannot be disabled.

My use case: Update a version in a multi-module project with versions:set goal(versions-maven-plugin).

When the plugin is launched in interactive mode it would prompt for the new version.
However, in batch mode you have to specify the new version as parameter in the launch file and therefore cannot be re-used because you always have to change it.

It would be nice to have a "Batch Mode" checkbox in the launch dialog which is of course enabled by default to control the "-B" command line option.
Comment 3 Denis Roy CLA 2021-04-19 13:24:00 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/