What is Pom.xml file Key Components
- dependencies- dependencies element is used to defines a list of dependency of project.
- dependency- dependency defines a dependency and used inside dependencies tag. Each dependency is described by its groupId, artifactId and version.
- name- this element is used to give name to our maven project.
- scope- this element used to define scope for this maven project that can be compile, runtime, test, provided system etc.
- packaging- packaging element is used to packaging our project to output types like JAR, WAR etc.
Apache Maven
Maven is a powerful project management tool that is based on POM (project object model). It is used for project build, dependency, and documentation. It simplifies the build process like ANT. But it is too much more advanced than ANT. In short terms we can tell maven is a tool that can be used for building and managing any Java-based project. maven makes the day-to-day work of Java developers easier and generally helps with the comprehension of any Java-based project.