Maven pom.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
</pre>
</pre>


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


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


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


Is optional. See <tt>[[#.3CartifactId.3E|<artifactId>]]</tt>.
Mandatory. The artifactId is generally the name that the project is known by.


=Properties=
==<version>==
 
Mandatory.
 
==<name>==
 
Optional. See <tt>[[#.3CartifactId.3E|<artifactId>]]</tt>.
 
==<properties>==


<pre>
<pre>

Revision as of 16:23, 4 November 2016

Internal

Overview

<project> is the root element.

Elements

<modelVersion>

Mandatory. Should be:

<modelVersion>4.0.0</modelVersion>

<groupId>

Mandatory.

<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>
  ..