
Every Maven project has a packaging type. One of these default values is the packaging type. As for the example above, its fully qualified artifact name is ":my-app:1".Īlso, as mentioned in the first section, if the configuration details are not specified, Maven will use their defaults. These three values form the project's fully qualified artifact name.

It reads the POM, gets the needed configuration information, then executes the goal. When executing a task or goal, Maven looks for the POM in the current directory.


Examples for this is the build directory, which is target the source directory, which is src/main/java the test source directory, which is src/test/java and so on. It contains default values for most projects. It is an XML file that contains information about the project and configuration details used by Maven to build the project. Project Inheritance vs Project AggregationĪ Project Object Model or POM is the fundamental unit of work in Maven.
