Maven follows Convention over Configuration.Īll jars in the Maven Repository are indexed by artefact id and group id. LifeCycle construction is a series of phases. When we execute “mvn clean install,” we finish the whole maven build life cycle. spring-boot-starter-web spring-boot-starter-test test Maven Build Life Cycle You must explain it by providing specifics about the dependency.Ī maven artefact may be identified by a GroupId and an ArtifactId, much way a Java class can be identified by a class name and a package name. Yet, how does Maven know which dependencies to download? Maven would fetch the dependencies and include them in your project. Maven helps us do all these and more… Naming a projectĭependencies are specified in your pom.xml file. It is tough to define what Maven accomplishes.Įvery day, Developer undertakes a variety of tasks. When you declare Spring as a dependency, Maven will download it. Spring, for example, may require additional libraries like as logging, xml, and so on. You also don’t have to worry about which libraries your library need to function.
Whenever you require a new version of the library, simply change the version number and your project is complete! The application that you use to manage your libraries. You want to tell the tool that I require A, B, and C, and you want it to download the libraries and make them accessible to you.
You do not want to keep all of your libraries in your project!