maven-plugins/java/xdocs/properties.xml
jstrachan 98525aa613 Defaulted the compile target to 1.1. If a build is done on JDK 1.4 then it defaults to JDK 1.4, which means on some JVM's (e.g. IBM's JDK 1.3) the code won't work! Even if you're not using any JDK 1.4 features. The generated bytecode can contain some JDK 1.4 specific methods!
So as a safety measure, I've defaulted the target to 1.1 by default (which is the default setting for JDK 1.1, 1.2 and 1.3 anyway). 

You can still overload this value on a project by project basis - this just prevents this possible bug hitting Maven users.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113388 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 09:56:23 +00:00

208 lines
6.4 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<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.aspects</td>
<td>Yes</td>
<td>
Specifies that Aspects are included during compilation.
Used by the "java:compile" goal.
The default value is <code>false</code>. Please
refer to the <a href="http://www.aspectj.org/">AspectJ</a>
web site for more information on Aspect-Oriented
Programming.
</td>
</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.deprecation</td>
<td>Yes</td>
<td>
Specifies wether source should be compiled with deprecation
information; the default value is <code>off</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.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.source</td>
<td>Yes</td>
<td>
<p>
Provide source compatibility with a specific release
</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.
</p>
</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.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 1.1 so that builds on JDK 1.4 or later stil work on
earlier JVMs.
</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>pom.build.sourceModifications</td>
<td>Yes</td>
<td>
This property is the list of the
<source><![CDATA[
<build>
<sourceModification>
<sourceModification>
<className></className>
<excludes>
<exclude></exclude>
</excludes>
</sourceModification>
</sourceModification>
</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>
</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>