Maven pom.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
==<groupId>==
==<groupId>==


Mandatory.
Mandatory. For more details about Group ID, see [[Maven_Concepts#Group_ID|Maven Concepts - Group ID]].


==<artifactId>==
==<artifactId>==

Revision as of 16:32, 4 November 2016

External

Internal

Overview

<project> is the root element.

Elements

<modelVersion>

Mandatory. Should be:

<modelVersion>4.0.0</modelVersion>

<groupId>

Mandatory. For more details about Group ID, see Maven Concepts - Group ID.

<artifactId>

Mandatory. The artifactId is generally the name that the project is known by.

<version>

Mandatory.

<name>

Optional. See <artifactId>.

<properties>

<project>
  <properties>
    <some.property>something</some.property>
    <some.other.property>something else</some.other.property>
  </properties>
  ..