Documentation updates

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@326283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl committed 2005-10-18 22:38:17 +00:00
1 parent 28e297eae9
commit 79d8017b74
5 files changed
+204 -6

No files matched your search

+5 -2
View File
@@ -27,7 +27,7 @@
<goals>
<goal>
<name>pom</name>
<description>Validate the Maven XML project descriptor</description>
<description>Just calls <code>pom:validate</code>.</description>
</goal>
<goal>
<name>pom:contentvalidate</name>
@@ -38,7 +38,10 @@
</goal>
<goal>
<name>pom:validate</name>
<description>Validate the Maven XML project descriptor</description>
<description>
Validate the Maven XML project descriptor.
See <a href="validation.html">Validation</a>.
</description>
</goal>
</goals>
</body>
+6 -3
View File
@@ -33,10 +33,13 @@
<p>
<strong>WARNING</strong>: for the <code>pom:validate</code> goal
to work, your project descriptor (<code>project.xml</code>) has
to be at leat parsable and well-formed in the first place
to be at least parsable and well-formed in the first place
(chicken or egg?). If your pom is not well-formed, Maven
will fail with a <code>SAXParseException</code> (and hopefully
a useful error message) before any plugin starts to work.
will fail with a (hopefully useful) error message before any
plugin starts to work. If you are having problems getting Maven
to run, you should try to validate your pom with an independent
validation tool first.
See <a href="validation.html">Validation</a> for more details.
</p>
</section>
</body>
+1
View File
@@ -27,6 +27,7 @@
<menu name="Overview">
<item href="/goals.html" name="Goals"/>
<item href="/properties.html" name="Properties"/>
<item href="/validation.html" name="Validation"/>
</menu>
</body>
</project>
+1 -1
View File
@@ -23,7 +23,7 @@
</properties>
<body>
<section name="Maven POM Plugin Settings">
<p>There are no settings to customize this plugin</p>
<p>There are no settings to customize this plugin.</p>
</section>
</body>
</document>
+191
View File
@@ -0,0 +1,191 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<document>
<properties>
<title>Validation</title>
</properties>
<body>
<section name="Validating your POM">
<p>
The <code>pom:validate</code> goal performs a validation of your
project descriptor (<code>project.xml</code>, pom) against an xsd
schema. The general form of a project descriptor can be found
on the main Maven
<a href="http://maven.apache.org/reference/project-descriptor.html">site</a>.
</p>
<subsection name="Required elements">
<p>
The validation routine works differently for stand-alone
poms and poms that extend other ones (child poms).
The following table shows which
top-level elements (<emph>i.e.</emph>, elements just below the
<code>&lt;project&gt;</code> root) are required in each case.
</p>
<table>
<tr>
<th>Element name</th>
<th>Required in stand-alone pom?</th>
<th>Required in child pom?</th>
</tr>
<tr>
<td><code>&lt;extend/&gt;</code></td>
<td>N/A</td><td>Yes</td>
</tr>
<tr>
<td><code>&lt;pomVersion/&gt;</code></td>
<td>Yes</td><td>Yes</td>
</tr>
<tr>
<td><code>&lt;id/&gt;</code></td>
<td>Yes</td><td>Yes</td>
</tr>
<tr>
<td><code>&lt;groupId/&gt;</code></td>
<td>Yes</td><td>No</td>
</tr>
<tr>
<td><code>&lt;artifactId/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;name/&gt;</code></td>
<td>Yes</td><td>Yes</td>
</tr>
<tr>
<td><code>&lt;currentVersion/&gt;</code></td>
<td>Yes</td><td>Yes</td>
</tr>
<tr>
<td><code>&lt;description/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;shortDescription/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;url/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;logo/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;issueTrackingUrl/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;inceptionYear/&gt;</code></td>
<td>Yes</td><td>No</td>
</tr>
<tr>
<td><code>&lt;gumpRepositoryId/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;siteAddress/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;siteDirectory/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;distributionSite/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;distributionDirectory/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;mailingLists&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;developers&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;contributors&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;licenses&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;versions&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;branches&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;packageGroups&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;reports&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;repository&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;organization&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;properties&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;package/&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;build&gt;</code></td>
<td>No</td><td>No</td>
</tr>
<tr>
<td><code>&lt;dependencies&gt;</code></td>
<td>No</td><td>No</td>
</tr>
</table>
</subsection>
<subsection name="Namespace">
<p>
It is recommended that you include a namespace declaration in your
project root:
</p>
<source><![CDATA[<project xmlns="http://maven.apache.org/POM/3.0.0">]]></source>
<p>
but this is currently not enforced by the validation routine.
</p>
</subsection>
</section>
</body>
</document>