You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/05/08 15:09:30 UTC
svn commit: r816619 [12/27] - in
/websites/production/maventest/content/plugins/maven-compiler-plugin-latest:
./ apidocs/ apidocs/org/apache/maven/plugin/
apidocs/org/apache/maven/plugin/class-use/ cobertura/ cobertura/css/ css/
examples/ testapidocs/ ...
Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/distribution-management.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/distribution-management.html (added)
+++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/distribution-management.html Tue May 8 13:09:26 2012
@@ -0,0 +1,214 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- Generated by Apache Maven Doxia at Apr 27, 2012 -->
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Project Distribution Management</title>
+ <style type="text/css" media="all">
+ @import url("./css/maven-base.css");
+ @import url("./css/maven-theme.css");
+ @import url("./css/site.css");
+ </style>
+ <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+ <meta name="Date-Revision-yyyymmdd" content="20120427" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
+
+<script type="text/javascript">_uacct = "UA-140879-1";
+ urchinTracker();</script>
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="../../" id="bannerLeft">
+ <img src="../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../images/maven-logo-2.gif" alt="" />
+ </span>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../index.html">Maven</a>
+ >
+ <a href="../index.html">Plugins</a>
+ >
+ <a href="./">Maven Compiler plugin</a>
+ >
+ Project Distribution Management
+ </div>
+ <div class="xright">
+ Last Published: 2012-04-27
+ | Version: 2.4
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="faq.html">FAQ</a>
+ </li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none">
+ <a href="examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
+ </li>
+ <li class="none">
+ <a href="examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
+ </li>
+ <li class="none">
+ <a href="examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
+ </li>
+ <li class="none">
+ <a href="examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
+ </li>
+ <li class="none">
+ <a href="non-javac-compilers.html">Non-javac compilerIds</a>
+ </li>
+ </ul>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="expanded">
+ <a href="project-info.html">Project Information</a>
+ <ul>
+ <li class="none">
+ <a href="index.html">About</a>
+ </li>
+ <li class="none">
+ <a href="project-summary.html">Project Summary</a>
+ </li>
+ <li class="none">
+ <a href="license.html">Project License</a>
+ </li>
+ <li class="none">
+ <a href="team-list.html">Project Team</a>
+ </li>
+ <li class="none">
+ <a href="source-repository.html">Source Repository</a>
+ </li>
+ <li class="none">
+ <a href="issue-tracking.html">Issue Tracking</a>
+ </li>
+ <li class="none">
+ <a href="mail-lists.html">Mailing Lists</a>
+ </li>
+ <li class="none">
+ <a href="dependencies.html">Dependencies</a>
+ </li>
+ <li class="none">
+ <a href="integration.html">Continuous Integration</a>
+ </li>
+ <li class="none">
+ <a href="plugin-management.html">Plugin Management</a>
+ </li>
+ <li class="none">
+ <a href="plugins.html">Project Plugins</a>
+ </li>
+ <li class="none">
+ <strong>Distribution Management</strong>
+ </li>
+ </ul>
+ </li>
+ <li class="collapsed">
+ <a href="project-reports.html">Project Reports</a>
+ </li>
+ </ul>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="./images/logos/maven-feather.png"/>
+ </a>
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <div class="section"><h2>Overview<a name="Overview"></a></h2><a name="Overview"></a><p>The following is the distribution management information used by this project.</p><div class="section"><h3>Repository - apache.releases.https<a name="Repository_-_apache.releases.https"></a></h3><a name="Repository_-_apache.releases.https"></a><a class="externalLink" href="https://repository.apache.org/service/local/staging/deploy/maven2">https://repository.apache.org/service/local/staging/deploy/maven2</a></div><div class="section"><h3>Snapshot Repository - apache.snapshots.https<a name="Snapshot_Repository_-_apache.snapshots.https"></a></h3><a name="Snapshot_Repository_-_apache.snapshots.https"></a><a class="externalLink" href="https://repository.apache.org/content/repositories/snapshots">https://repository.apache.org/content/repositories/snapshots</a></div><div class="section"><h3>Site - apache.website<a name="Site_-_apache.website"></a></h3><a name="Site_-_apache.website"></a><
p>scp://people.apache.org/www/maven.apache.org/plugins/maven-compiler-plugin-2.4/</p></div></div>
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ © 2001-2012
+ The Apache Software Foundation
+
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/distribution-management.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/distribution-management.html
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/compile-using-different-jdk.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/compile-using-different-jdk.html (original)
+++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/compile-using-different-jdk.html Tue May 8 13:09:26 2012
@@ -1,26 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-
-
-
-
-
-
-
-
-
+<!-- Generated by Apache Maven Doxia at Apr 27, 2012 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Maven Compiler plugin - Compiling Sources Using A Different JDK</title>
+ <title>Compiling Sources Using A Different JDK</title>
<style type="text/css" media="all">
@import url("../css/maven-base.css");
@import url("../css/maven-theme.css");
@import url("../css/site.css");
</style>
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="author" content="Edwin Punzalan" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta name="author" content="Edwin Punzalan" />
+ <meta name="Date-Revision-yyyymmdd" content="20120427" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
@@ -29,52 +20,32 @@
</head>
<body class="composite">
<div id="banner">
- <a href="http://maven.apache.org/" id="bannerLeft">
-
- <img src="http://maven.apache.org/images/apache-maven-project-2.png" alt="" />
-
- </a>
- <a href="http://maven.apache.org/" id="bannerRight">
-
- <img src="http://maven.apache.org/images/maven-logo-2.gif" alt="" />
-
- </a>
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
-
-
-
-
-
-
-
- <div class="xleft">
-
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
-
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven</a>
- >
-
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- >
-
- <a href="../../../../../../people.apache.org/www/maven.apache.org/plugins/maven-compiler-plugin">Maven Compiler Plugin</a>
- </div>
- <div class="xright">
-
-
-
-
-
-
-
- Last Published: 2010-09-04
- | Version: 2.3.2
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Maven Compiler plugin</a>
+ >
+ Compiling Sources Using A Different JDK
+ </div>
+ <div class="xright">
+ Last Published: 2012-04-27
+ | Version: 2.4
</div>
<div class="clear">
<hr/>
@@ -82,180 +53,109 @@
</div>
<div id="leftColumn">
<div id="navcolumn">
-
-
-
-
-
-
-
-
- <h5>Overview</h5>
- <ul>
-
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
-
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
-
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
-
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
</ul>
- <h5>Examples</h5>
- <ul>
-
- <li class="none">
- <strong>Compile Using A Different JDK</strong>
- </li>
-
- <li class="none">
- <a href="../examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
- </li>
-
- <li class="none">
- <a href="../examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
- </li>
-
- <li class="none">
- <a href="../examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
- </li>
-
- <li class="none">
- <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
- </li>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none">
+ <strong>Compile Using A Different JDK</strong>
+ </li>
+ <li class="none">
+ <a href="../examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
+ </li>
+ <li class="none">
+ <a href="../examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
+ </li>
+ <li class="none">
+ <a href="../examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
+ </li>
+ <li class="none">
+ <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
+ </li>
</ul>
- <h5>Project Documentation</h5>
- <ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
</ul>
- <h5>Maven Projects</h5>
- <ul>
-
- <li class="none">
- <a href="http://maven.apache.org/ant-tasks/index.html" class="externalLink">Ant Tasks</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/doxia/index.html" class="externalLink">Doxia</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/jxr/index.html" class="externalLink">JXR</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/maven-1.x/index.html" class="externalLink">Maven 1.x</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven 2</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/mercury/index.html" class="externalLink">Mercury</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/scm/index.html" class="externalLink">SCM</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/shared/index.html" class="externalLink">Shared Components</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/surefire/index.html" class="externalLink">Surefire</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/wagon/index.html" class="externalLink">Wagon</a>
- </li>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
</ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
- </a>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2>Compiling Sources Using A Different JDK</h2>
-<p>The <tt>compilerVersion</tt> parameter can be used to specify the version of the compiler that the plugin will use. However, you also need to set <tt>fork</tt> to <tt>true</tt> for this to work. For example:</p>
-<div class="source"><pre><project>
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
ces/apt-format.html --><div class="section"><h2>Compiling Sources Using A Different JDK<a name="Compiling_Sources_Using_A_Different_JDK"></a></h2><p>The <tt>compilerVersion</tt> parameter can be used to specify the version of the compiler that the plugin will use. However, you also need to set <tt>fork</tt> to <tt>true</tt> for this to work. For example:</p><div class="source"><pre><project>
[...]
<build>
[...]
@@ -263,7 +163,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
+ <version>2.4</version>
<configuration>
<verbose>true</verbose>
<fork>true</fork>
@@ -275,15 +175,7 @@
[...]
</build>
[...]
-</project>
-</pre>
-</div>
-<p>To avoid hard-coding a filesystem path for the executable, you can use a property. For example:</p>
-<div class="source"><pre> <executable>${JAVA_1_4_HOME}/bin/javac</executable>
-</pre>
-</div>
-<p>Each developer then defines this property in <a href="http://maven.apache.org/ref/current/maven-settings/settings.html" class="externalLink">settings.xml</a>, or sets an environment variable, so that the build remains portable.</p>
-<div class="source"><pre><settings>
+</project></pre></div><p>To avoid hard-coding a filesystem path for the executable, you can use a property. For example:</p><div class="source"><pre> <executable>${JAVA_1_4_HOME}/bin/javac</executable></pre></div><p>Each developer then defines this property in <a class="externalLink" href="http://maven.apache.org/ref/current/maven-settings/settings.html">settings.xml</a>, or sets an environment variable, so that the build remains portable.</p><div class="source"><pre><settings>
[...]
<profiles>
[...]
@@ -298,31 +190,20 @@
<activeProfiles>
<activeProfile>compiler</activeProfile>
</activeProfiles>
-</settings>
-</pre>
-</div>
-<p>If you build with a different JDK, you may want to <a href="http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html" class="externalLink"> customize</a> the jar file manifest.</p>
-</div>
-
+</settings></pre></div><p>If you build with a different JDK, you may want to <a class="externalLink" href="http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html"> customize</a> the jar file manifest.</p></div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
- <div class="xright">©
- 2001-2010
-
- The Apache Software Foundation
-
-
-
-
-
+ <div class="xright">
+ © 2001-2012
+ The Apache Software Foundation
-
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a></div>
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
<div class="clear">
<hr/>
</div>
Modified: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/compile-with-memory-enhancements.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/compile-with-memory-enhancements.html (original)
+++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/compile-with-memory-enhancements.html Tue May 8 13:09:26 2012
@@ -1,26 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-
-
-
-
-
-
-
-
-
+<!-- Generated by Apache Maven Doxia at Apr 27, 2012 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Maven Compiler plugin - Compile Using Memory Allocation Enhancements</title>
+ <title>Compile Using Memory Allocation Enhancements</title>
<style type="text/css" media="all">
@import url("../css/maven-base.css");
@import url("../css/maven-theme.css");
@import url("../css/site.css");
</style>
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="author" content="Edwin Punzalan" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta name="author" content="Edwin Punzalan" />
+ <meta name="Date-Revision-yyyymmdd" content="20120427" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
@@ -29,52 +20,32 @@
</head>
<body class="composite">
<div id="banner">
- <a href="http://maven.apache.org/" id="bannerLeft">
-
- <img src="http://maven.apache.org/images/apache-maven-project-2.png" alt="" />
-
- </a>
- <a href="http://maven.apache.org/" id="bannerRight">
-
- <img src="http://maven.apache.org/images/maven-logo-2.gif" alt="" />
-
- </a>
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
-
-
-
-
-
-
-
- <div class="xleft">
-
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
-
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven</a>
- >
-
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- >
-
- <a href="../../../../../../people.apache.org/www/maven.apache.org/plugins/maven-compiler-plugin">Maven Compiler Plugin</a>
- </div>
- <div class="xright">
-
-
-
-
-
-
-
- Last Published: 2010-09-04
- | Version: 2.3.2
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Maven Compiler plugin</a>
+ >
+ Compile Using Memory Allocation Enhancements
+ </div>
+ <div class="xright">
+ Last Published: 2012-04-27
+ | Version: 2.4
</div>
<div class="clear">
<hr/>
@@ -82,180 +53,109 @@
</div>
<div id="leftColumn">
<div id="navcolumn">
-
-
-
-
-
-
-
-
- <h5>Overview</h5>
- <ul>
-
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
-
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
-
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
-
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
</ul>
- <h5>Examples</h5>
- <ul>
-
- <li class="none">
- <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
- </li>
-
- <li class="none">
- <a href="../examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
- </li>
-
- <li class="none">
- <strong>Compile Using Memory Allocation Enhancements</strong>
- </li>
-
- <li class="none">
- <a href="../examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
- </li>
-
- <li class="none">
- <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
- </li>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none">
+ <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
+ </li>
+ <li class="none">
+ <a href="../examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
+ </li>
+ <li class="none">
+ <strong>Compile Using Memory Allocation Enhancements</strong>
+ </li>
+ <li class="none">
+ <a href="../examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
+ </li>
+ <li class="none">
+ <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
+ </li>
</ul>
- <h5>Project Documentation</h5>
- <ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
</ul>
- <h5>Maven Projects</h5>
- <ul>
-
- <li class="none">
- <a href="http://maven.apache.org/ant-tasks/index.html" class="externalLink">Ant Tasks</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/doxia/index.html" class="externalLink">Doxia</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/jxr/index.html" class="externalLink">JXR</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/maven-1.x/index.html" class="externalLink">Maven 1.x</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven 2</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/mercury/index.html" class="externalLink">Mercury</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/scm/index.html" class="externalLink">SCM</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/shared/index.html" class="externalLink">Shared Components</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/surefire/index.html" class="externalLink">Surefire</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/wagon/index.html" class="externalLink">Wagon</a>
- </li>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
</ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
- </a>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2>Compile Using Memory Allocation Enhancements</h2>
-<p>The Compiler Plugin accepts configurations for <tt>meminitial</tt> and <tt>maxmem</tt>. You can follow the example below to set the initial memory size to 128MB and the maximum memory usage to 512MB:</p>
-<div class="source"><pre><project>
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
ces/apt-format.html --><div class="section"><h2>Compile Using Memory Allocation Enhancements<a name="Compile_Using_Memory_Allocation_Enhancements"></a></h2><p>The Compiler Plugin accepts configurations for <tt>meminitial</tt> and <tt>maxmem</tt>. You can follow the example below to set the initial memory size to 128MB and the maximum memory usage to 512MB:</p><div class="source"><pre><project>
[...]
<build>
[...]
@@ -263,7 +163,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
+ <version>2.4</version>
<configuration>
<fork>true</fork>
<meminitial>128m</meminitial>
@@ -274,30 +174,20 @@
[...]
</build>
[...]
-</project>
-</pre>
-</div>
-</div>
-
+</project></pre></div></div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
- <div class="xright">©
- 2001-2010
-
- The Apache Software Foundation
-
-
-
-
-
+ <div class="xright">
+ © 2001-2012
+ The Apache Software Foundation
-
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a></div>
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
<div class="clear">
<hr/>
</div>
Modified: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/pass-compiler-arguments.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/pass-compiler-arguments.html (original)
+++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/pass-compiler-arguments.html Tue May 8 13:09:26 2012
@@ -1,26 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-
-
-
-
-
-
-
-
-
+<!-- Generated by Apache Maven Doxia at Apr 27, 2012 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Maven Compiler plugin - Pass Compiler Arguments</title>
+ <title>Pass Compiler Arguments</title>
<style type="text/css" media="all">
@import url("../css/maven-base.css");
@import url("../css/maven-theme.css");
@import url("../css/site.css");
</style>
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="author" content="Edwin Punzalan" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta name="author" content="Edwin Punzalan" />
+ <meta name="Date-Revision-yyyymmdd" content="20120427" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
@@ -29,52 +20,32 @@
</head>
<body class="composite">
<div id="banner">
- <a href="http://maven.apache.org/" id="bannerLeft">
-
- <img src="http://maven.apache.org/images/apache-maven-project-2.png" alt="" />
-
- </a>
- <a href="http://maven.apache.org/" id="bannerRight">
-
- <img src="http://maven.apache.org/images/maven-logo-2.gif" alt="" />
-
- </a>
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
-
-
-
-
-
-
-
- <div class="xleft">
-
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
-
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven</a>
- >
-
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- >
-
- <a href="../../../../../../people.apache.org/www/maven.apache.org/plugins/maven-compiler-plugin">Maven Compiler Plugin</a>
- </div>
- <div class="xright">
-
-
-
-
-
-
-
- Last Published: 2010-09-04
- | Version: 2.3.2
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Maven Compiler plugin</a>
+ >
+ Pass Compiler Arguments
+ </div>
+ <div class="xright">
+ Last Published: 2012-04-27
+ | Version: 2.4
</div>
<div class="clear">
<hr/>
@@ -82,180 +53,109 @@
</div>
<div id="leftColumn">
<div id="navcolumn">
-
-
-
-
-
-
-
-
- <h5>Overview</h5>
- <ul>
-
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
-
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
-
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
-
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
</ul>
- <h5>Examples</h5>
- <ul>
-
- <li class="none">
- <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
- </li>
-
- <li class="none">
- <a href="../examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
- </li>
-
- <li class="none">
- <a href="../examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
- </li>
-
- <li class="none">
- <strong>Pass Compiler Arguments</strong>
- </li>
-
- <li class="none">
- <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
- </li>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none">
+ <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
+ </li>
+ <li class="none">
+ <a href="../examples/set-compiler-source-and-target.html">Compile Using -source and -target javac Options</a>
+ </li>
+ <li class="none">
+ <a href="../examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
+ </li>
+ <li class="none">
+ <strong>Pass Compiler Arguments</strong>
+ </li>
+ <li class="none">
+ <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
+ </li>
</ul>
- <h5>Project Documentation</h5>
- <ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
</ul>
- <h5>Maven Projects</h5>
- <ul>
-
- <li class="none">
- <a href="http://maven.apache.org/ant-tasks/index.html" class="externalLink">Ant Tasks</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/doxia/index.html" class="externalLink">Doxia</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/jxr/index.html" class="externalLink">JXR</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/maven-1.x/index.html" class="externalLink">Maven 1.x</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven 2</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/mercury/index.html" class="externalLink">Mercury</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/scm/index.html" class="externalLink">SCM</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/shared/index.html" class="externalLink">Shared Components</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/surefire/index.html" class="externalLink">Surefire</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/wagon/index.html" class="externalLink">Wagon</a>
- </li>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
</ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
- </a>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2>Pass Compiler Arguments</h2>
-<p>Sometimes, you need to pass other compiler arguments that are not handled by the Compiler Plugin itself but is supported by the <tt>compilerId</tt> selected. For such arguments, the Compiler Plugin's <tt>compilerArguments</tt> will be used. The following example passes compiler arguments to the <tt>javac</tt> compiler:</p>
-<div class="source"><pre><project>
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
ces/apt-format.html --><div class="section"><h2>Pass Compiler Arguments<a name="Pass_Compiler_Arguments"></a></h2><p>Sometimes, you need to pass other compiler arguments that are not handled by the Compiler Plugin itself but is supported by the <tt>compilerId</tt> selected. For such arguments, the Compiler Plugin's <tt>compilerArguments</tt> will be used. The following example passes compiler arguments to the <tt>javac</tt> compiler:</p><div class="source"><pre><project>
[...]
<build>
[...]
@@ -263,7 +163,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
+ <version>2.4</version>
<configuration>
<compilerArgument>-verbose -bootclasspath ${java.home}\lib\rt.jar</compilerArgument>
</configuration>
@@ -272,11 +172,7 @@
[...]
</build>
[...]
-</project>
-</pre>
-</div>
-<p>Or you can also use the Map version:</p>
-<div class="source"><pre><project>
+</project></pre></div><p>Or you can also use the Map version:</p><div class="source"><pre><project>
[...]
<build>
[...]
@@ -284,7 +180,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
+ <version>2.4</version>
<configuration>
<compilerArguments>
<verbose />
@@ -296,30 +192,20 @@
[...]
</build>
[...]
-</project>
-</pre>
-</div>
-</div>
-
+</project></pre></div></div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
- <div class="xright">©
- 2001-2010
-
- The Apache Software Foundation
-
-
-
-
-
+ <div class="xright">
+ © 2001-2012
+ The Apache Software Foundation
-
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a></div>
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
<div class="clear">
<hr/>
</div>
Modified: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/set-compiler-source-and-target.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/set-compiler-source-and-target.html (original)
+++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/examples/set-compiler-source-and-target.html Tue May 8 13:09:26 2012
@@ -1,26 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-
-
-
-
-
-
-
-
-
+<!-- Generated by Apache Maven Doxia at Apr 27, 2012 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Maven Compiler plugin - Setting the -source and -target of the Java Compiler</title>
+ <title>Setting the -source and -target of the Java Compiler</title>
<style type="text/css" media="all">
@import url("../css/maven-base.css");
@import url("../css/maven-theme.css");
@import url("../css/site.css");
</style>
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="author" content="Edwin Punzalan" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta name="author" content="Edwin Punzalan" />
+ <meta name="Date-Revision-yyyymmdd" content="20120427" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
@@ -29,52 +20,32 @@
</head>
<body class="composite">
<div id="banner">
- <a href="http://maven.apache.org/" id="bannerLeft">
-
- <img src="http://maven.apache.org/images/apache-maven-project-2.png" alt="" />
-
- </a>
- <a href="http://maven.apache.org/" id="bannerRight">
-
- <img src="http://maven.apache.org/images/maven-logo-2.gif" alt="" />
-
- </a>
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
-
-
-
-
-
-
-
- <div class="xleft">
-
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
-
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven</a>
- >
-
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- >
-
- <a href="../../../../../../people.apache.org/www/maven.apache.org/plugins/maven-compiler-plugin">Maven Compiler Plugin</a>
- </div>
- <div class="xright">
-
-
-
-
-
-
-
- Last Published: 2010-09-04
- | Version: 2.3.2
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Maven Compiler plugin</a>
+ >
+ Setting the -source and -target of the Java Compiler
+ </div>
+ <div class="xright">
+ Last Published: 2012-04-27
+ | Version: 2.4
</div>
<div class="clear">
<hr/>
@@ -82,181 +53,109 @@
</div>
<div id="leftColumn">
<div id="navcolumn">
-
-
-
-
-
-
-
-
- <h5>Overview</h5>
- <ul>
-
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
-
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
-
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
-
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
</ul>
- <h5>Examples</h5>
- <ul>
-
- <li class="none">
- <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
- </li>
-
- <li class="none">
- <strong>Compile Using -source and -target javac Options</strong>
- </li>
-
- <li class="none">
- <a href="../examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
- </li>
-
- <li class="none">
- <a href="../examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
- </li>
-
- <li class="none">
- <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
- </li>
+ <h5>Examples</h5>
+ <ul>
+ <li class="none">
+ <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a>
+ </li>
+ <li class="none">
+ <strong>Compile Using -source and -target javac Options</strong>
+ </li>
+ <li class="none">
+ <a href="../examples/compile-with-memory-enhancements.html">Compile Using Memory Allocation Enhancements</a>
+ </li>
+ <li class="none">
+ <a href="../examples/pass-compiler-arguments.html">Pass Compiler Arguments</a>
+ </li>
+ <li class="none">
+ <a href="../non-javac-compilers.html">Non-javac compilerIds</a>
+ </li>
</ul>
- <h5>Project Documentation</h5>
- <ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
</ul>
- <h5>Maven Projects</h5>
- <ul>
-
- <li class="none">
- <a href="http://maven.apache.org/ant-tasks/index.html" class="externalLink">Ant Tasks</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/doxia/index.html" class="externalLink">Doxia</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/jxr/index.html" class="externalLink">JXR</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/maven-1.x/index.html" class="externalLink">Maven 1.x</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/index.html" class="externalLink">Maven 2</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/mercury/index.html" class="externalLink">Mercury</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/plugins/index.html" class="externalLink">Plugins</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/scm/index.html" class="externalLink">SCM</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/shared/index.html" class="externalLink">Shared Components</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/surefire/index.html" class="externalLink">Surefire</a>
- </li>
-
- <li class="none">
- <a href="http://maven.apache.org/wagon/index.html" class="externalLink">Wagon</a>
- </li>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
</ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
- </a>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2>Setting the <tt>-source</tt> and <tt>-target</tt> of the Java Compiler</h2>
-<p>Sometimes when you may need to compile a certain project to a different version than what you are currently using. The <tt>javac</tt> can accept such command using <tt>-source</tt> and <tt>-target</tt>. The Compiler Plugin can also be configured to provide these options during compilation.</p>
-<p>For example, if you want to enable assertions (-source 1.4) and also want the compiled classes to be compatible with JVM 1.4 (-target 1.4), you can then put:</p>
-<div class="source"><pre><project>
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
ces/apt-format.html --><div class="section"><h2>Setting the <tt>-source</tt> and <tt>-target</tt> of the Java Compiler<a name="Setting_the_-source_and_-target_of_the_Java_Compiler"></a></h2><p>Sometimes when you may need to compile a certain project to a different version than what you are currently using. The <tt>javac</tt> can accept such command using <tt>-source</tt> and <tt>-target</tt>. The Compiler Plugin can also be configured to provide these options during compilation.</p><p>For example, if you want to enable assertions (-source 1.4) and also want the compiled classes to be compatible with JVM 1.4 (-target 1.4), you can then put:</p><div class="source"><pre><project>
[...]
<build>
[...]
@@ -264,7 +163,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
+ <version>2.4</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
@@ -274,31 +173,20 @@
[...]
</build>
[...]
-</project>
-</pre>
-</div>
-<p><b>Note:</b> Merely setting the <tt>target</tt> option does not guarantee that your code actually runs on a JRE with the specified version. The pitfall is unintended usage of APIs that only exist in later JREs which would make your code fail at runtime with a linkage error. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the <a href="http://mojo.codehaus.org/animal-sniffer-maven-plugin/" class="externalLink">Animal Sniffer Maven Plugin</a> to verify your code doesn't use unintended APIs.</p>
-</div>
-
+</project></pre></div><p><b>Note:</b> Merely setting the <tt>target</tt> option does not guarantee that your code actually runs on a JRE with the specified version. The pitfall is unintended usage of APIs that only exist in later JREs which would make your code fail at runtime with a linkage error. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the <a class="externalLink" href="http://mojo.codehaus.org/animal-sniffer-maven-plugin/">Animal Sniffer Maven Plugin</a> to verify your code doesn't use unintended APIs.</p></div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
- <div class="xright">©
- 2001-2010
-
- The Apache Software Foundation
-
-
-
-
-
+ <div class="xright">
+ © 2001-2012
+ The Apache Software Foundation
-
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a></div>
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
<div class="clear">
<hr/>
</div>