Interview :: Maven
3) What are the advantages of Maven?
4) What is the command to check the maven version?
5) What does the build tool?
6) What is the difference between Ant and Maven?
Ant | Maven |
---|---|
It is a toolbox. | It is a framework. |
It is mainly a build tool. | It is mainly a project management tool. |
There is no life cycle. | There is alife cycle. |
Ant doesn't have formal conventions. | Maven has a convention to place source code, compiled code etc. |
Ant is procedural. | Maven is declarative. |
The ant scripts are not reusable. | The Maven plugins are reusable. |
7) Why is the use of the profile required in Maven?
For providing probability to projects, we use profiles.
8) What is the syntax for offline project creation?
The syntax for project creation is:
mvn o packg.
9) How is the propagation of plugins to child POMs stopped?
It can be done using the following syntax:
10) What is the use of the exclusion element?
The element is used to exclude dependencies.