Does anyone know what the -B maven parameter does? Sample use:
maven clean install -B -U -e
(I'm seeing this in a legacy Jenkins job config) Thanks
-D, --define <arg> Defines a system property. This is the option most frequently used to customized the behavior of Maven plugins. Some examples of using the -D command line argument: $ mvn help:describe -Dcmd=compiler:compile $ mvn install -Dmaven.test.skip=true.
mvn clean install: This maven command helps in executing a clean build life cycle and installs build phase in the default build cycle. This build life cycles may have its build phases and inside each build, there are different build goals.
mvn verify. This command tells Maven to build all the modules, and to check if all integration tests succeeded (when any was defined) That's it! If you look in the target subdirectory, you should find the build output and the final library or application that was being built.
-B
is a shorthand for --batch-mode
. It allows you to perform a release in a non-interactive way. Having said that, using is in conjunction with the clean
and install
targets seems redundant to me as these goals are non-interactive by nature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With