I\'m using Maven in Eclipse and when I try to build my project I see the following options:
Maven - Introduction to the Build Lifecycle is something worth reading.
What follows the mvn
command can be a build phase, or a plugin goal.
I would suggest that you know the use of different "goals", without going too deep.
build
: I have never seen such goal. Trying mvn build
in my own project also gives me error. clean
: cleans up the output targetsgenerate-source
: one phase of the default lifecycle. Running it will do all phases in the lifecycle, until generate-source
. Hence, compile, packaging etc is not run.install
: another phase of default lifecycle. It will compile, package your project, and then install it to your local repository. (I hope you have the concept of local and remote repository in Maven)Build is not a phase in the standard Maven life cycles, whereas install is one. mvn install
It will invoke all the phases up to the phase install.
It consists of compiling, packaging and installing it in the local repository.
You may want to just run the phase of the default lifecycle install
Or
You may want to configure build to perform some combination of build phases and plugin goals.
It is related to interface usability. You may only need the basic functionalities of maven or you might want to go a bit deeper and configure it to run according to your more specific needs. Eclipse aims to improve development speed and quality, providing functionalities for users with all levels of experience.
Here is an example of some interface usability heuristics
In this case, we are probably looking at an interface decision that targets the following heuristic:
Flexibility and efficiency of use