Added required modelVersion and a basic sample

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@329929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2005-10-31 23:17:03 +00:00
parent 26a613542c
commit f3a9a7f258
1 changed files with 31 additions and 0 deletions

View File

@ -41,6 +41,8 @@ foo-1.0.jar (or whatever artifact is referred to in the pom.xml)
Note that the bundle will be read by a script, so it must follow the above format. Also,
the <<<pom.xml>>> should at least contain the following elements:
* modelVersion
* groupId
* artifactId
@ -59,6 +61,35 @@ foo-1.0.jar (or whatever artifact is referred to in the pom.xml)
* dependencies
A basic sample:
+----+
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
<version>2.0</version>
<packaging>jar</packaging>
<name>Maven core</name>
<url>http://maven.apache.org</url>
<description>The maven main core project description</description>
<scm>
<url>http://svn.apache.org/viewcvs.cgi/maven</url>
</scm>
<dependencies>
<dependency>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
</dependency>
...
<dependencies>
</project>
+----+
[]
Some considerations about the <<groupId>>: it will identify your project uniquely across all