Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven command line parameter "-B"

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

like image 529
Damo Avatar asked May 14 '14 15:05

Damo


People also ask

What is D in mvn command?

-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.

What is option in mvn clean install?

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.

What is mvn verify?

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.


1 Answers

-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.

like image 56
Mureinik Avatar answered Sep 21 '22 03:09

Mureinik