Maven pom.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 36: Line 36:


Optional, the default value is "jar". For more details about packaging, see [[Maven_Concepts#Packaging|Maven Concepts - Packaging]].
Optional, the default value is "jar". For more details about packaging, see [[Maven_Concepts#Packaging|Maven Concepts - Packaging]].
==<classifier>==
Optional. For more details about packaging, see [[Maven_Concepts#Classifier|Maven Concepts - Classifier]].


==<name>==
==<name>==

Revision as of 16:52, 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. For more details about Artifact ID, see Maven Concepts - Artifact ID.

<version>

Mandatory. For more details about Version, see Maven Concepts - Version.

<packaging>

Optional, the default value is "jar". For more details about packaging, see Maven Concepts - Packaging.

<classifier>

Optional. For more details about packaging, see Maven Concepts - Classifier.

<name>

Optional. See <artifactId>.

<properties>

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