Maven

  • Maven is a build and dependency management tool
  • While building a java application we add dependencies to the classpath.
  • Maven helps to organize and declare all the dependencies that you want in a single file.
  • We do not have to separately add jars in classpath
    • We mention the jars that we need in the file called as pom.xml.
    • This file contains a list of all the dependencies that Maven needs to know.
    • Then we run the "mvn" commands which screens through all the dependencies in file and it goes to the concerned repository and fetches and adds all the jars needed to the class path.
    • It also creates a starter project for us.
      • It comes with arch type a template which helps us to start off with a project.

No comments:

Post a Comment

Spring Boot

What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...