Repaso
EspaƱol
Maven, Git & SDLCFoundationsVCS-31

What is pom.xml in a Maven project?

Options

  1. The Project Object Model: dependencies and builds (Correct option)
  2. The main Java class that starts the application
  3. The database script that creates all the tables
  4. A test report that is created after the build

Answer

The project's Project Object Model: the main configuration file with its coordinates, dependencies and build settings

Why

Maven's guide: the pom.xml file is the core of a project's configuration in Maven, a single file with most of the information needed to build the project.

Inside you find the project's coordinates (groupId, artifactId, version), the Java version, and the list of dependencies that Maven downloads for you.

Maven is a build tool, so you describe what you want and it runs the steps.

Remember

pom.xml = the project's configuration for Maven.

Key terms

Practice this question in Repaso