What is the purpose of the pom.xml file in Maven?

What is the purpose of the pom.xml file in Maven?

A) To define project dependencies, plugins, and build configurations
B) To manage database connections
C) To store application properties
D) To configure web server settings

Answer:

A) To define project dependencies, plugins, and build configurations

Explanation:

The pom.xml file is the core configuration file in a Maven project. It defines the project’s dependencies, plugins, and build configurations. The pom.xml file also contains metadata about the project, such as its version, description, and more. It serves as the foundation for building, packaging, and deploying the project.

Reference links:

https://www.javaguides.net/p/maven.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top