2003-01-24 03:44:26 +00:00

119 lines
3.7 KiB
XML

<?xml version="1.0"?>
<document>
<properties>
<title>Maven Java Plug-in Goals</title>
<author email="dion@multitask.com.au">dIon Gillard</author>
<author email="kschrader@karmalab.org">Kurt Schrader</author>
</properties>
<body>
<section name="Goals">
<table>
<tr><th>Goal</th><th>Description</th></tr>
<tr>
<td>java:prepare-filesystem</td>
<td>
Creates the directories necessary for compilation
</td>
</tr>
<tr>
<td>java:compile</td>
<td>
<p>
Compiles the Java source code for the project
</p>
<p>
The source code directory is specified in the
<a href="http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html#build">build</a>
element of your <code>project.xml</code>
file.
</p>
</td>
</tr>
<tr>
<td>java:jar-resources</td>
<td>
<p>
Copies any resources that must be present in the deployed JAR
file, from the directory specified by
<a href="properties.html">maven.jarResources.basedir</a> to the
build directory, where class files are stored.
</p>
<p>
The <a href="properties.html">maven.jar.resources.set</a>
property is used to determine which files from the base directory
are included
</p>
</td>
</tr>
<tr>
<td>java:jar</td>
<td>
Creates a jar file in the Maven build directory with the
form <code>${project.id}-${project.currentVersion}.jar</code> where
the id and currentVersion are taken from the <code>project.xml</code>
of the project being built.
</td>
</tr>
<tr>
<td>jar:snapshot</td>
<td>
Creates a jar file in the Maven build directory with the
form <code>${project.id}-YYYYMMDD.hhmmss.jar</code> where
<ul>
<li>
id - taken from the <code>project.xml</code>
of the project being built
</li>
<li>YYYYMMDD - The current year in 8 digit format</li>
<li>hhmmss - the current time in 6 digit format</li>
</ul>
</td>
</tr>
<tr>
<td>jar:deploy-snapshot</td>
<td>
Deploy a snapshot jar to the remote repository
</td>
</tr>
<tr>
<td>jar:deploy</td>
<td>
Deploy a jar to the remote repository. The jar is built using
the <code>java:jar</code> goal
</td>
</tr>
<tr>
<td>jar:install</td>
<td>
Install a jar into the local repository. The jar is built using
the <code>java:jar</code> goal
</td>
</tr>
<tr>
<td>jar:install-snapshot</td>
<td>
Install a jar into the local repository. The jar is built using
the <code>jar:snapshot</code> goal and copied into the local
repository as the -SNAPSHOT version.
</td>
</tr>
<tr>
<td>clean</td>
<td>
This goal is a shortcut to the <code>clean:clean</code> goal
</td>
</tr>
<tr>
<td>clean:clean</td>
<td>
Removes the <a href="properties.html">maven.build.dir</a> and
<a href="properties.html">maven.test.reportsDirectory</a> directories
</td>
</tr>
</table>
</section>
</body>
</document>