New property maven.compile.failonerror. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@379563 13f79535-47bb-0310-9956-ffa450edef68
298 lines
9.6 KiB
XML
298 lines
9.6 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!--
|
|
/*
|
|
* Copyright 2001-2004 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>Properties</title>
|
|
<author email="smor@apache.org">Stéphane MOR</author>
|
|
<author email="dion@multitask.com.au">dIon Gillard</author>
|
|
</properties>
|
|
|
|
<body>
|
|
<section name="Compile Settings">
|
|
<table>
|
|
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
|
<tr>
|
|
<td>maven.compile.compilerargs</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Provides arguments to a compiler when <code>maven.compile.fork</code>
|
|
is set to true
|
|
</p>
|
|
<p>
|
|
Corresponds to the nested <code>compilerarg</code> element for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.debug</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
Specifies wether to include debugging information in the compiled
|
|
class files; the default value is <code>on</code>.
|
|
Used by the "java:compile" goal.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.debuglevel</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Keyword list to be appended to the <code>-g</code> command-line switch.
|
|
This is only used if <code>maven.compile.debug=on</code>.
|
|
Defaults to <code>lines,vars,source</code>.
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>debuglevel</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.deprecation</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
Specifies wether source should be compiled with deprecation
|
|
information; the default value is <code>on</code>.
|
|
Used by the "java:compile" goal.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.encoding</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Sets the encoding of the .java files being compiled
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>encoding</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.executable</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Names the program to be invoked as the java compiler
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>executable</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.fork</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Runs the compiler in a separate process
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>fork</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.memoryInitialSize</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Sets the initial memory size value passed to the VM when fork is set to true.
|
|
Has no effect if fork is false.
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>memoryInitialSize</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.memoryMaximumSize</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Sets the maximum memory size value passed to the VM when fork is set to true.
|
|
Has no effect if fork is false.
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>memoryMaximumSize</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.optimize</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
Specifies whether source should be compiled with optimization; the
|
|
default value is <code>off</code>.
|
|
Used by the "java:compile" goal.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.src.set</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
The source directories maven uses to compile java code.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.source</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Specifies the source version for the Java compiler.
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>source</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
This value defaults to 1.3 so that builds on JDK 1.4 or later stil work on
|
|
earlier JVMs. Valid values are 1.3, 1.4, 1.5.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.target</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Generate class files for a specific JVM version
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>target</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task. This value defaults to the Ant task default value.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.verbose</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Asks the compiler for verbose output
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>verbose</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.log</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>Where to save the output of the compiler. Only works when fork is true.</p>
|
|
<p>The default value for this property is ${maven.build.dir}/compile.log</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>pom.build.sourceModifications</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
This property is the list of the
|
|
<source><![CDATA[
|
|
<build>
|
|
<sourceModifications>
|
|
<sourceModification>
|
|
<className></className>
|
|
<excludes>
|
|
<exclude></exclude>
|
|
</excludes>
|
|
</sourceModification>
|
|
</sourceModifications>
|
|
</build>
|
|
]]></source>
|
|
source modifications in your
|
|
<a href="http://maven.apache.org/reference/project-descriptor.html">
|
|
project descriptor</a>. This property is used during compilation to exclude or
|
|
include classes from compilation depending on whether a named class is available
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.nowarn</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Indicates whether the <code>-nowarn</code> switch should be passed
|
|
to the compiler; defaults to <code>off</code>.
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>nowarn</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.compile.failonerror</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
<p>
|
|
Indicates whether the build will continue even if there are
|
|
compilation errors; defaults to <code>true</code>.
|
|
</p>
|
|
<p>
|
|
Corresponds to the <code>failonerror</code> attribute for the ant
|
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
|
task.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</section>
|
|
<section name="Other Settings">
|
|
<table>
|
|
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
|
<tr>
|
|
<td>maven.build.dest</td>
|
|
<td>Yes</td>
|
|
<td>The directory for compiled classes</td>
|
|
</tr>
|
|
<tr>
|
|
<td>maven.dependency.classpath</td>
|
|
<td>Yes</td>
|
|
<td>
|
|
This property holds the Ant <code>path</code> of all the dependent jar
|
|
files listed in the <code>dependencies</code> block of your
|
|
<a href="http://maven.apache.org/reference/project-descriptor.html">
|
|
project descriptor</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</section>
|
|
</body>
|
|
</document>
|