You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by hb...@apache.org on 2018/07/11 23:43:17 UTC
svn commit: r1835688 [10/29] - in
/maven/website/components/plugins-archives/maven-compiler-plugin-LATEST: ./
apidocs/ apidocs/org/apache/maven/plugin/
apidocs/org/apache/maven/plugin/class-use/
apidocs/org/apache/maven/plugin/compiler/ apidocs/org/apa...
Modified: maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/module-info.html
==============================================================================
--- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/module-info.html (original)
+++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/module-info.html Wed Jul 11 23:43:15 2018
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2017-09-01
- | Rendered using Apache Maven Fluido Skin 1.5
+ | Generated by Apache Maven Doxia Site Renderer 1.8 from src/site/apt/examples/module-info.apt.vm at 2018-07-12
+ | Rendered using Apache Maven Fluido Skin 1.7
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -9,350 +9,109 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Robert Scholte" />
<meta name="Date-Creation-yyyymmdd" content="20160927" />
- <meta name="Date-Revision-yyyymmdd" content="20170901" />
+ <meta name="Date-Revision-yyyymmdd" content="20180712" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Maven Compiler Plugin – Older projects with module-info</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" />
+ <link rel="stylesheet" href="../css/apache-maven-fluido-1.7.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
-
-
- <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script>
-
- <!-- Google Analytics -->
+ <script type="text/javascript" src="../js/apache-maven-fluido-1.7.min.js"></script>
+ <!-- Google Analytics -->
<script type="text/javascript">
-
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-140879-1']);
_gaq.push(['_trackPageview']);
-
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
-
</script>
- </head>
- <body class="topBarDisabled">
-
-
-
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <a href="https://www.apache.org/" id="bannerLeft">
- <img src="../../../images/apache-maven-project.png" alt="Apache Maven Compiler Plugin"/>
- </a>
- </div>
- <div class="pull-right"> <a href="../../../" id="bannerRight">
- <img src="../../../images/maven-logo-black-on-white.png" />
- </a>
- </div>
+ </head>
+ <body class="topBarDisabled">
+ <div class="container-fluid">
+ <div id="banner">
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Apache Maven Compiler Plugin"/></a></div>
+ <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt=""/></a></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
-
- <li class="">
- <a href="https://www.apache.org/" class="externalLink" title="Apache">
- Apache</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../../../index.html" title="Maven">
- Maven</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../../index.html" title="Plugins">
- Plugins</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../index.html" title="Apache Maven Compiler Plugin">
- Apache Maven Compiler Plugin</a>
- <span class="divider">/</span>
- </li>
- <li class="active ">Older projects with module-info</li>
-
-
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2017-09-01</li>
- <li id="projectVersion" class="pull-right">
- Version: 3.7.0
- </li>
-
- </ul>
+ <li class=""><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li class=""><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
+ <li class=""><a href="../../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li>
+ <li class=""><a href="../index.html" title="Apache Maven Compiler Plugin">Apache Maven Compiler Plugin</a><span class="divider">/</span></li>
+ <li class="active ">Older projects with module-info</li>
+ <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2018-07-12</li>
+ <li id="projectVersion" class="pull-right">Version: 3.7.1-SNAPSHOT</li>
+ </ul>
</div>
-
-
<div class="row-fluid">
<div id="leftColumn" class="span2">
<div class="well sidebar-nav">
-
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
-
- <li>
-
- <a href="../index.html" title="Introduction">
- <span class="none"></span>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="../plugin-info.html" title="Goals">
- <span class="none"></span>
- Goals</a>
- </li>
-
- <li>
-
- <a href="../usage.html" title="Usage">
- <span class="none"></span>
- Usage</a>
- </li>
-
- <li>
-
- <a href="../faq.html" title="FAQ">
- <span class="none"></span>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/licenses/" class="externalLink" title="License">
- <span class="none"></span>
- License</a>
- </li>
-
- <li>
-
- <a href="../download.html" title="Download">
- <span class="none"></span>
- Download</a>
- </li>
- <li class="nav-header">Examples</li>
-
- <li>
-
- <a href="../examples/compile-using-different-jdk.html" title="Compile Using A Different JDK">
- <span class="none"></span>
- Compile Using A Different JDK</a>
- </li>
-
- <li>
-
- <a href="../examples/set-compiler-source-and-target.html" title="Compile Using -source and -target javac Options">
- <span class="none"></span>
- Compile Using -source and -target javac Options</a>
- </li>
-
- <li>
-
- <a href="../examples/compile-with-memory-enhancements.html" title="Compile Using Memory Allocation Enhancements">
- <span class="none"></span>
- Compile Using Memory Allocation Enhancements</a>
- </li>
-
- <li>
-
- <a href="../examples/pass-compiler-arguments.html" title="Pass Compiler Arguments">
- <span class="none"></span>
- Pass Compiler Arguments</a>
- </li>
-
- <li>
-
- <a href="../non-javac-compilers.html" title="Non-javac compilerIds">
- <span class="none"></span>
- Non-javac compilerIds</a>
- </li>
-
- <li class="active">
-
- <a href="#"><span class="none"></span>Older projects with module-info</a>
- </li>
- <li class="nav-header">Project Documentation</li>
-
- <li>
-
- <a href="../project-info.html" title="Project Information">
- <span class="icon-chevron-right"></span>
- Project Information</a>
- </li>
-
- <li>
-
- <a href="../project-reports.html" title="Project Reports">
- <span class="icon-chevron-right"></span>
- Project Reports</a>
- </li>
- <li class="nav-header">Maven Projects</li>
-
- <li>
-
- <a href="../../../archetype/index.html" title="Archetype">
- <span class="none"></span>
- Archetype</a>
- </li>
-
- <li>
-
- <a href="../../../doxia/index.html" title="Doxia">
- <span class="none"></span>
- Doxia</a>
- </li>
-
- <li>
-
- <a href="../../../jxr/index.html" title="JXR">
- <span class="none"></span>
- JXR</a>
- </li>
-
- <li>
-
- <a href="../../../ref/current" title="Maven">
- <span class="none"></span>
- Maven</a>
- </li>
-
- <li>
-
- <a href="../../../pom/index.html" title="Parent POMs">
- <span class="none"></span>
- Parent POMs</a>
- </li>
-
- <li>
-
- <a href="../../index.html" title="Plugins">
- <span class="none"></span>
- Plugins</a>
- </li>
-
- <li>
-
- <a href="../../../plugin-testing/index.html" title="Plugin Testing">
- <span class="none"></span>
- Plugin Testing</a>
- </li>
-
- <li>
-
- <a href="../../../plugin-tools/index.html" title="Plugin Tools">
- <span class="none"></span>
- Plugin Tools</a>
- </li>
-
- <li>
-
- <a href="../../../apache-resource-bundles/index.html" title="Resource Bundles">
- <span class="none"></span>
- Resource Bundles</a>
- </li>
-
- <li>
-
- <a href="../../../scm/index.html" title="SCM">
- <span class="none"></span>
- SCM</a>
- </li>
-
- <li>
-
- <a href="../../../shared/index.html" title="Shared Components">
- <span class="none"></span>
- Shared Components</a>
- </li>
-
- <li>
-
- <a href="../../../skins/index.html" title="Skins">
- <span class="none"></span>
- Skins</a>
- </li>
-
- <li>
-
- <a href="../../../surefire/index.html" title="Surefire">
- <span class="none"></span>
- Surefire</a>
- </li>
-
- <li>
-
- <a href="../../../wagon/index.html" title="Wagon">
- <span class="none"></span>
- Wagon</a>
- </li>
- <li class="nav-header">ASF</li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works">
- <span class="none"></span>
- How Apache Works</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation">
- <span class="none"></span>
- Foundation</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache">
- <span class="none"></span>
- Sponsoring Apache</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">
- <span class="none"></span>
- Thanks</a>
- </li>
- </ul>
-
- <form id="search-form" action="https://www.google.com/search" method="get" >
-
+ <ul class="nav nav-list">
+ <li class="nav-header">Overview</li>
+ <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="../plugin-info.html" title="Goals"><span class="none"></span>Goals</a></li>
+ <li><a href="../usage.html" title="Usage"><span class="none"></span>Usage</a></li>
+ <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="http://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a></li>
+ <li><a href="../download.html" title="Download"><span class="none"></span>Download</a></li>
+ <li class="nav-header">Examples</li>
+ <li><a href="../examples/compile-using-different-jdk.html" title="Compile Using A Different JDK"><span class="none"></span>Compile Using A Different JDK</a></li>
+ <li><a href="../examples/set-compiler-source-and-target.html" title="Compile Using -source and -target javac Options"><span class="none"></span>Compile Using -source and -target javac Options</a></li>
+ <li><a href="../examples/compile-with-memory-enhancements.html" title="Compile Using Memory Allocation Enhancements"><span class="none"></span>Compile Using Memory Allocation Enhancements</a></li>
+ <li><a href="../examples/pass-compiler-arguments.html" title="Pass Compiler Arguments"><span class="none"></span>Pass Compiler Arguments</a></li>
+ <li><a href="../non-javac-compilers.html" title="Non-javac compilerIds"><span class="none"></span>Non-javac compilerIds</a></li>
+ <li class="active"><a href="#"><span class="none"></span>Older projects with module-info</a></li>
+ <li><a href="../multirelease.html" title="MultiRelease"><span class="none"></span>MultiRelease</a></li>
+ <li class="nav-header">Project Documentation</li>
+ <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
+ <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
+ <li class="nav-header">Maven Projects</li>
+ <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
+ <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
+ <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
+ <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
+ <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
+ <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
+ <li><a href="../../index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
+ <li><a href="../../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
+ <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
+ <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
+ <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
+ <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
+ <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
+ <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
+ <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
+ <li class="nav-header">ASF</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
+ <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
+</ul>
+<form id="search-form" action="https://www.google.com/search" method="get" >
<input value="$sitesearchValue" name="sitesearch" type="hidden"/>
<input class="search-query" name="q" id="query" type="text" />
</form>
-<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script>
-
+<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
<hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-compiler-plugin/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
- </a>
- </div>
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div id="twitter">
+ <a href="https://twitter.com/ASFMavenProject" class="twitter-follow-button" data-show-count="false" data-align="left" data-size="medium" data-show-screen-name="true" data-lang="en">Follow ASFMavenProject</a>
+ <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
+ </div>
</div>
</div>
-
-
<div id="bodyColumn" class="span10" >
-
- <div class="section">
+<div class="section">
<h2><a name="Older_projects_with_module-info"></a>Older projects with module-info</h2>
<p>For projects that want to be compatible with older versions of Java (i.e 1.8 or below), but also want to provide a <tt>module-info.java</tt> for Java 9 projects must be aware that they need to call <tt>javac</tt> twice: the <tt>module-info.java</tt> must be compiled with <tt>release=9</tt>, while the rest of the sources must be compiled with a lower version of <tt>source</tt>/<tt>target</tt>.</p>
<p>The preferred way to do this is by having 2 execution blocks are described below. JDK 9 only supports compilations for Java 6 and above, so projects wanting to be compatible with Java 5 or below need to use two different JDKs. With <a href="/guides/mini/guide-using-toolchains.html">toolchains</a> it is quite easy to achieve this. Be aware that you will need at least Maven 3.3.1 to specify a custom jdkToolchain in your plugin configuration. You could add a jdkToolchain to do base-compile execution-block as well referring to JDK 5. </p>
@@ -364,7 +123,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.7.0</version>
+ <version>3.7.1-SNAPSHOT</version>
<executions>
<execution>
<id>default-compile</id>
@@ -404,8 +163,7 @@
[...]
</build>
[...]
-</project>
-</pre></div>
+</project></pre></div>
<p>In case you want the project to be Java 6 compatible, the easiest to do this is to use Java 9 for both execution blocks. You can use the maven-toolchain-plugin to specify the shared JDK (supported since Maven 2.0.9) or a custom jdkToolchain (supported since Maven 3.3.1) and refer to the JDK 9 installation on your system. Or simply use Java 9 as the runtime for Maven by setting <tt>JAVA_HOME=/path/to/jdk-9</tt>. </p>
<div class="source"><pre class="prettyprint linenums"><project>
[...]
@@ -415,7 +173,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.7.0</version>
+ <version>3.7.1-SNAPSHOT</version>
<executions>
<execution>
<id>default-compile</id>
@@ -450,25 +208,19 @@
[...]
</build>
[...]
-</project>
-</pre></div></div>
- </div>
- </div>
- </div>
-
+</project></pre></div></div>
+ </div>
+ </div>
+ </div>
<hr/>
-
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2001–2017
- <a href="https://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
- </p>
- </div>
-
-
- </div>
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <p>Copyright ©2001–2018
+<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+All rights reserved.</p>
+ </div>
+ </div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/pass-compiler-arguments.html
==============================================================================
--- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/pass-compiler-arguments.html (original)
+++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/pass-compiler-arguments.html Wed Jul 11 23:43:15 2018
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2017-09-01
- | Rendered using Apache Maven Fluido Skin 1.5
+ | Generated by Apache Maven Doxia Site Renderer 1.8 from src/site/apt/examples/pass-compiler-arguments.apt.vm at 2018-07-12
+ | Rendered using Apache Maven Fluido Skin 1.7
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -9,350 +9,109 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Edwin Punzalan" />
<meta name="Date-Creation-yyyymmdd" content="20060705" />
- <meta name="Date-Revision-yyyymmdd" content="20170901" />
+ <meta name="Date-Revision-yyyymmdd" content="20180712" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Maven Compiler Plugin – Pass Compiler Arguments</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" />
+ <link rel="stylesheet" href="../css/apache-maven-fluido-1.7.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
-
-
- <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script>
-
- <!-- Google Analytics -->
+ <script type="text/javascript" src="../js/apache-maven-fluido-1.7.min.js"></script>
+ <!-- Google Analytics -->
<script type="text/javascript">
-
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-140879-1']);
_gaq.push(['_trackPageview']);
-
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
-
</script>
- </head>
- <body class="topBarDisabled">
-
-
-
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <a href="https://www.apache.org/" id="bannerLeft">
- <img src="../../../images/apache-maven-project.png" alt="Apache Maven Compiler Plugin"/>
- </a>
- </div>
- <div class="pull-right"> <a href="../../../" id="bannerRight">
- <img src="../../../images/maven-logo-black-on-white.png" />
- </a>
- </div>
+ </head>
+ <body class="topBarDisabled">
+ <div class="container-fluid">
+ <div id="banner">
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Apache Maven Compiler Plugin"/></a></div>
+ <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt=""/></a></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
-
- <li class="">
- <a href="https://www.apache.org/" class="externalLink" title="Apache">
- Apache</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../../../index.html" title="Maven">
- Maven</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../../index.html" title="Plugins">
- Plugins</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../index.html" title="Apache Maven Compiler Plugin">
- Apache Maven Compiler Plugin</a>
- <span class="divider">/</span>
- </li>
- <li class="active ">Pass Compiler Arguments</li>
-
-
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2017-09-01</li>
- <li id="projectVersion" class="pull-right">
- Version: 3.7.0
- </li>
-
- </ul>
+ <li class=""><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li class=""><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
+ <li class=""><a href="../../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li>
+ <li class=""><a href="../index.html" title="Apache Maven Compiler Plugin">Apache Maven Compiler Plugin</a><span class="divider">/</span></li>
+ <li class="active ">Pass Compiler Arguments</li>
+ <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2018-07-12</li>
+ <li id="projectVersion" class="pull-right">Version: 3.7.1-SNAPSHOT</li>
+ </ul>
</div>
-
-
<div class="row-fluid">
<div id="leftColumn" class="span2">
<div class="well sidebar-nav">
-
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
-
- <li>
-
- <a href="../index.html" title="Introduction">
- <span class="none"></span>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="../plugin-info.html" title="Goals">
- <span class="none"></span>
- Goals</a>
- </li>
-
- <li>
-
- <a href="../usage.html" title="Usage">
- <span class="none"></span>
- Usage</a>
- </li>
-
- <li>
-
- <a href="../faq.html" title="FAQ">
- <span class="none"></span>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/licenses/" class="externalLink" title="License">
- <span class="none"></span>
- License</a>
- </li>
-
- <li>
-
- <a href="../download.html" title="Download">
- <span class="none"></span>
- Download</a>
- </li>
- <li class="nav-header">Examples</li>
-
- <li>
-
- <a href="../examples/compile-using-different-jdk.html" title="Compile Using A Different JDK">
- <span class="none"></span>
- Compile Using A Different JDK</a>
- </li>
-
- <li>
-
- <a href="../examples/set-compiler-source-and-target.html" title="Compile Using -source and -target javac Options">
- <span class="none"></span>
- Compile Using -source and -target javac Options</a>
- </li>
-
- <li>
-
- <a href="../examples/compile-with-memory-enhancements.html" title="Compile Using Memory Allocation Enhancements">
- <span class="none"></span>
- Compile Using Memory Allocation Enhancements</a>
- </li>
-
- <li class="active">
-
- <a href="#"><span class="none"></span>Pass Compiler Arguments</a>
- </li>
-
- <li>
-
- <a href="../non-javac-compilers.html" title="Non-javac compilerIds">
- <span class="none"></span>
- Non-javac compilerIds</a>
- </li>
-
- <li>
-
- <a href="../examples/module-info.html" title="Older projects with module-info">
- <span class="none"></span>
- Older projects with module-info</a>
- </li>
- <li class="nav-header">Project Documentation</li>
-
- <li>
-
- <a href="../project-info.html" title="Project Information">
- <span class="icon-chevron-right"></span>
- Project Information</a>
- </li>
-
- <li>
-
- <a href="../project-reports.html" title="Project Reports">
- <span class="icon-chevron-right"></span>
- Project Reports</a>
- </li>
- <li class="nav-header">Maven Projects</li>
-
- <li>
-
- <a href="../../../archetype/index.html" title="Archetype">
- <span class="none"></span>
- Archetype</a>
- </li>
-
- <li>
-
- <a href="../../../doxia/index.html" title="Doxia">
- <span class="none"></span>
- Doxia</a>
- </li>
-
- <li>
-
- <a href="../../../jxr/index.html" title="JXR">
- <span class="none"></span>
- JXR</a>
- </li>
-
- <li>
-
- <a href="../../../ref/current" title="Maven">
- <span class="none"></span>
- Maven</a>
- </li>
-
- <li>
-
- <a href="../../../pom/index.html" title="Parent POMs">
- <span class="none"></span>
- Parent POMs</a>
- </li>
-
- <li>
-
- <a href="../../index.html" title="Plugins">
- <span class="none"></span>
- Plugins</a>
- </li>
-
- <li>
-
- <a href="../../../plugin-testing/index.html" title="Plugin Testing">
- <span class="none"></span>
- Plugin Testing</a>
- </li>
-
- <li>
-
- <a href="../../../plugin-tools/index.html" title="Plugin Tools">
- <span class="none"></span>
- Plugin Tools</a>
- </li>
-
- <li>
-
- <a href="../../../apache-resource-bundles/index.html" title="Resource Bundles">
- <span class="none"></span>
- Resource Bundles</a>
- </li>
-
- <li>
-
- <a href="../../../scm/index.html" title="SCM">
- <span class="none"></span>
- SCM</a>
- </li>
-
- <li>
-
- <a href="../../../shared/index.html" title="Shared Components">
- <span class="none"></span>
- Shared Components</a>
- </li>
-
- <li>
-
- <a href="../../../skins/index.html" title="Skins">
- <span class="none"></span>
- Skins</a>
- </li>
-
- <li>
-
- <a href="../../../surefire/index.html" title="Surefire">
- <span class="none"></span>
- Surefire</a>
- </li>
-
- <li>
-
- <a href="../../../wagon/index.html" title="Wagon">
- <span class="none"></span>
- Wagon</a>
- </li>
- <li class="nav-header">ASF</li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works">
- <span class="none"></span>
- How Apache Works</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation">
- <span class="none"></span>
- Foundation</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache">
- <span class="none"></span>
- Sponsoring Apache</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">
- <span class="none"></span>
- Thanks</a>
- </li>
- </ul>
-
- <form id="search-form" action="https://www.google.com/search" method="get" >
-
+ <ul class="nav nav-list">
+ <li class="nav-header">Overview</li>
+ <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="../plugin-info.html" title="Goals"><span class="none"></span>Goals</a></li>
+ <li><a href="../usage.html" title="Usage"><span class="none"></span>Usage</a></li>
+ <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="http://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a></li>
+ <li><a href="../download.html" title="Download"><span class="none"></span>Download</a></li>
+ <li class="nav-header">Examples</li>
+ <li><a href="../examples/compile-using-different-jdk.html" title="Compile Using A Different JDK"><span class="none"></span>Compile Using A Different JDK</a></li>
+ <li><a href="../examples/set-compiler-source-and-target.html" title="Compile Using -source and -target javac Options"><span class="none"></span>Compile Using -source and -target javac Options</a></li>
+ <li><a href="../examples/compile-with-memory-enhancements.html" title="Compile Using Memory Allocation Enhancements"><span class="none"></span>Compile Using Memory Allocation Enhancements</a></li>
+ <li class="active"><a href="#"><span class="none"></span>Pass Compiler Arguments</a></li>
+ <li><a href="../non-javac-compilers.html" title="Non-javac compilerIds"><span class="none"></span>Non-javac compilerIds</a></li>
+ <li><a href="../examples/module-info.html" title="Older projects with module-info"><span class="none"></span>Older projects with module-info</a></li>
+ <li><a href="../multirelease.html" title="MultiRelease"><span class="none"></span>MultiRelease</a></li>
+ <li class="nav-header">Project Documentation</li>
+ <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
+ <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
+ <li class="nav-header">Maven Projects</li>
+ <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
+ <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
+ <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
+ <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
+ <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
+ <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
+ <li><a href="../../index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
+ <li><a href="../../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
+ <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
+ <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
+ <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
+ <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
+ <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
+ <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
+ <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
+ <li class="nav-header">ASF</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
+ <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
+</ul>
+<form id="search-form" action="https://www.google.com/search" method="get" >
<input value="$sitesearchValue" name="sitesearch" type="hidden"/>
<input class="search-query" name="q" id="query" type="text" />
</form>
-<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script>
-
+<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
<hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-compiler-plugin/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
- </a>
- </div>
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div id="twitter">
+ <a href="https://twitter.com/ASFMavenProject" class="twitter-follow-button" data-show-count="false" data-align="left" data-size="medium" data-show-screen-name="true" data-lang="en">Follow ASFMavenProject</a>
+ <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
+ </div>
</div>
</div>
-
-
<div id="bodyColumn" class="span10" >
-
- <div class="section">
+<div class="section">
<h2><a name="Pass_Compiler_Arguments"></a>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, use the Compiler Plugin's <tt>compilerArgs</tt> parameter The following example passes compiler arguments to the <tt>javac</tt> compiler:</p>
<div class="source"><pre class="prettyprint linenums"><project>
@@ -363,7 +122,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.7.0</version>
+ <version>3.7.1-SNAPSHOT</version>
<configuration>
<compilerArgs>
<arg>-verbose</arg>
@@ -375,25 +134,19 @@
[...]
</build>
[...]
-</project>
-</pre></div></div>
- </div>
- </div>
- </div>
-
+</project></pre></div></div>
+ </div>
+ </div>
+ </div>
<hr/>
-
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2001–2017
- <a href="https://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
- </p>
- </div>
-
-
- </div>
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <p>Copyright ©2001–2018
+<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+All rights reserved.</p>
+ </div>
+ </div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/set-compiler-source-and-target.html
==============================================================================
--- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/set-compiler-source-and-target.html (original)
+++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/set-compiler-source-and-target.html Wed Jul 11 23:43:15 2018
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2017-09-01
- | Rendered using Apache Maven Fluido Skin 1.5
+ | Generated by Apache Maven Doxia Site Renderer 1.8 from src/site/apt/examples/set-compiler-source-and-target.apt.vm at 2018-07-12
+ | Rendered using Apache Maven Fluido Skin 1.7
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -9,350 +9,109 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Edwin Punzalan" />
<meta name="Date-Creation-yyyymmdd" content="20060705" />
- <meta name="Date-Revision-yyyymmdd" content="20170901" />
+ <meta name="Date-Revision-yyyymmdd" content="20180712" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Maven Compiler Plugin – Setting the -source and -target of the Java Compiler</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.5.min.css" />
+ <link rel="stylesheet" href="../css/apache-maven-fluido-1.7.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
-
-
- <script type="text/javascript" src="../js/apache-maven-fluido-1.5.min.js"></script>
-
- <!-- Google Analytics -->
+ <script type="text/javascript" src="../js/apache-maven-fluido-1.7.min.js"></script>
+ <!-- Google Analytics -->
<script type="text/javascript">
-
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-140879-1']);
_gaq.push(['_trackPageview']);
-
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
-
</script>
- </head>
- <body class="topBarDisabled">
-
-
-
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <a href="https://www.apache.org/" id="bannerLeft">
- <img src="../../../images/apache-maven-project.png" alt="Apache Maven Compiler Plugin"/>
- </a>
- </div>
- <div class="pull-right"> <a href="../../../" id="bannerRight">
- <img src="../../../images/maven-logo-black-on-white.png" />
- </a>
- </div>
+ </head>
+ <body class="topBarDisabled">
+ <div class="container-fluid">
+ <div id="banner">
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../../images/apache-maven-project.png" alt="Apache Maven Compiler Plugin"/></a></div>
+ <div class="pull-right"><a href="../../../" id="bannerRight"><img src="../../../images/maven-logo-black-on-white.png" alt=""/></a></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
-
- <li class="">
- <a href="https://www.apache.org/" class="externalLink" title="Apache">
- Apache</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../../../index.html" title="Maven">
- Maven</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../../index.html" title="Plugins">
- Plugins</a>
- <span class="divider">/</span>
- </li>
- <li class="">
- <a href="../index.html" title="Apache Maven Compiler Plugin">
- Apache Maven Compiler Plugin</a>
- <span class="divider">/</span>
- </li>
- <li class="active ">Setting the -source and -target of the Java Compiler</li>
-
-
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2017-09-01</li>
- <li id="projectVersion" class="pull-right">
- Version: 3.7.0
- </li>
-
- </ul>
+ <li class=""><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li class=""><a href="../../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
+ <li class=""><a href="../../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li>
+ <li class=""><a href="../index.html" title="Apache Maven Compiler Plugin">Apache Maven Compiler Plugin</a><span class="divider">/</span></li>
+ <li class="active ">Setting the -source and -target of the Java Compiler</li>
+ <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2018-07-12</li>
+ <li id="projectVersion" class="pull-right">Version: 3.7.1-SNAPSHOT</li>
+ </ul>
</div>
-
-
<div class="row-fluid">
<div id="leftColumn" class="span2">
<div class="well sidebar-nav">
-
- <ul class="nav nav-list">
- <li class="nav-header">Overview</li>
-
- <li>
-
- <a href="../index.html" title="Introduction">
- <span class="none"></span>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="../plugin-info.html" title="Goals">
- <span class="none"></span>
- Goals</a>
- </li>
-
- <li>
-
- <a href="../usage.html" title="Usage">
- <span class="none"></span>
- Usage</a>
- </li>
-
- <li>
-
- <a href="../faq.html" title="FAQ">
- <span class="none"></span>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/licenses/" class="externalLink" title="License">
- <span class="none"></span>
- License</a>
- </li>
-
- <li>
-
- <a href="../download.html" title="Download">
- <span class="none"></span>
- Download</a>
- </li>
- <li class="nav-header">Examples</li>
-
- <li>
-
- <a href="../examples/compile-using-different-jdk.html" title="Compile Using A Different JDK">
- <span class="none"></span>
- Compile Using A Different JDK</a>
- </li>
-
- <li class="active">
-
- <a href="#"><span class="none"></span>Compile Using -source and -target javac Options</a>
- </li>
-
- <li>
-
- <a href="../examples/compile-with-memory-enhancements.html" title="Compile Using Memory Allocation Enhancements">
- <span class="none"></span>
- Compile Using Memory Allocation Enhancements</a>
- </li>
-
- <li>
-
- <a href="../examples/pass-compiler-arguments.html" title="Pass Compiler Arguments">
- <span class="none"></span>
- Pass Compiler Arguments</a>
- </li>
-
- <li>
-
- <a href="../non-javac-compilers.html" title="Non-javac compilerIds">
- <span class="none"></span>
- Non-javac compilerIds</a>
- </li>
-
- <li>
-
- <a href="../examples/module-info.html" title="Older projects with module-info">
- <span class="none"></span>
- Older projects with module-info</a>
- </li>
- <li class="nav-header">Project Documentation</li>
-
- <li>
-
- <a href="../project-info.html" title="Project Information">
- <span class="icon-chevron-right"></span>
- Project Information</a>
- </li>
-
- <li>
-
- <a href="../project-reports.html" title="Project Reports">
- <span class="icon-chevron-right"></span>
- Project Reports</a>
- </li>
- <li class="nav-header">Maven Projects</li>
-
- <li>
-
- <a href="../../../archetype/index.html" title="Archetype">
- <span class="none"></span>
- Archetype</a>
- </li>
-
- <li>
-
- <a href="../../../doxia/index.html" title="Doxia">
- <span class="none"></span>
- Doxia</a>
- </li>
-
- <li>
-
- <a href="../../../jxr/index.html" title="JXR">
- <span class="none"></span>
- JXR</a>
- </li>
-
- <li>
-
- <a href="../../../ref/current" title="Maven">
- <span class="none"></span>
- Maven</a>
- </li>
-
- <li>
-
- <a href="../../../pom/index.html" title="Parent POMs">
- <span class="none"></span>
- Parent POMs</a>
- </li>
-
- <li>
-
- <a href="../../index.html" title="Plugins">
- <span class="none"></span>
- Plugins</a>
- </li>
-
- <li>
-
- <a href="../../../plugin-testing/index.html" title="Plugin Testing">
- <span class="none"></span>
- Plugin Testing</a>
- </li>
-
- <li>
-
- <a href="../../../plugin-tools/index.html" title="Plugin Tools">
- <span class="none"></span>
- Plugin Tools</a>
- </li>
-
- <li>
-
- <a href="../../../apache-resource-bundles/index.html" title="Resource Bundles">
- <span class="none"></span>
- Resource Bundles</a>
- </li>
-
- <li>
-
- <a href="../../../scm/index.html" title="SCM">
- <span class="none"></span>
- SCM</a>
- </li>
-
- <li>
-
- <a href="../../../shared/index.html" title="Shared Components">
- <span class="none"></span>
- Shared Components</a>
- </li>
-
- <li>
-
- <a href="../../../skins/index.html" title="Skins">
- <span class="none"></span>
- Skins</a>
- </li>
-
- <li>
-
- <a href="../../../surefire/index.html" title="Surefire">
- <span class="none"></span>
- Surefire</a>
- </li>
-
- <li>
-
- <a href="../../../wagon/index.html" title="Wagon">
- <span class="none"></span>
- Wagon</a>
- </li>
- <li class="nav-header">ASF</li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works">
- <span class="none"></span>
- How Apache Works</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation">
- <span class="none"></span>
- Foundation</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache">
- <span class="none"></span>
- Sponsoring Apache</a>
- </li>
-
- <li>
-
- <a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">
- <span class="none"></span>
- Thanks</a>
- </li>
- </ul>
-
- <form id="search-form" action="https://www.google.com/search" method="get" >
-
+ <ul class="nav nav-list">
+ <li class="nav-header">Overview</li>
+ <li><a href="../index.html" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="../plugin-info.html" title="Goals"><span class="none"></span>Goals</a></li>
+ <li><a href="../usage.html" title="Usage"><span class="none"></span>Usage</a></li>
+ <li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="http://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a></li>
+ <li><a href="../download.html" title="Download"><span class="none"></span>Download</a></li>
+ <li class="nav-header">Examples</li>
+ <li><a href="../examples/compile-using-different-jdk.html" title="Compile Using A Different JDK"><span class="none"></span>Compile Using A Different JDK</a></li>
+ <li class="active"><a href="#"><span class="none"></span>Compile Using -source and -target javac Options</a></li>
+ <li><a href="../examples/compile-with-memory-enhancements.html" title="Compile Using Memory Allocation Enhancements"><span class="none"></span>Compile Using Memory Allocation Enhancements</a></li>
+ <li><a href="../examples/pass-compiler-arguments.html" title="Pass Compiler Arguments"><span class="none"></span>Pass Compiler Arguments</a></li>
+ <li><a href="../non-javac-compilers.html" title="Non-javac compilerIds"><span class="none"></span>Non-javac compilerIds</a></li>
+ <li><a href="../examples/module-info.html" title="Older projects with module-info"><span class="none"></span>Older projects with module-info</a></li>
+ <li><a href="../multirelease.html" title="MultiRelease"><span class="none"></span>MultiRelease</a></li>
+ <li class="nav-header">Project Documentation</li>
+ <li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
+ <li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
+ <li class="nav-header">Maven Projects</li>
+ <li><a href="../../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li>
+ <li><a href="../../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li>
+ <li><a href="../../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li>
+ <li><a href="../../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li>
+ <li><a href="../../../ref/current" title="Maven"><span class="none"></span>Maven</a></li>
+ <li><a href="../../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li>
+ <li><a href="../../index.html" title="Plugins"><span class="none"></span>Plugins</a></li>
+ <li><a href="../../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li>
+ <li><a href="../../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li>
+ <li><a href="../../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li>
+ <li><a href="../../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li>
+ <li><a href="../../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li>
+ <li><a href="../../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li>
+ <li><a href="../../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li>
+ <li><a href="../../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li>
+ <li class="nav-header">ASF</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li>
+ <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache"><span class="none"></span>Sponsoring Apache</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
+</ul>
+<form id="search-form" action="https://www.google.com/search" method="get" >
<input value="$sitesearchValue" name="sitesearch" type="hidden"/>
<input class="search-query" name="q" id="query" type="text" />
</form>
-<script type="text/javascript" src="https://cse.google.com/brand?form=search-form"></script>
-
+<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
<hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="https://maven.apache.org/plugins/maven-compiler-plugin/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
- </a>
- </div>
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div id="twitter">
+ <a href="https://twitter.com/ASFMavenProject" class="twitter-follow-button" data-show-count="false" data-align="left" data-size="medium" data-show-screen-name="true" data-lang="en">Follow ASFMavenProject</a>
+ <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
+ </div>
</div>
</div>
-
-
<div id="bodyColumn" class="span10" >
-
- <div class="section">
+<div class="section">
<h2><a name="Setting_the_-source_and_-target_of_the_Java_Compiler"></a>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 use the Java 8 language features (<tt>-source 1.8</tt>) and also want the compiled classes to be compatible with JVM 1.8 (<tt>-target 1.8</tt>), you can either add the two following properties, which are the default property names for the plugin parameters:</p>
@@ -363,8 +122,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
[...]
-</project>
-</pre></div>
+</project></pre></div>
<p>or configure the plugin directly:</p>
<div class="source"><pre class="prettyprint linenums"><project>
[...]
@@ -374,7 +132,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.7.0</version>
+ <version>3.7.1-SNAPSHOT</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
@@ -384,26 +142,20 @@
[...]
</build>
[...]
-</project>
-</pre></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://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/">Animal Sniffer Maven Plugin</a> to verify your code doesn't use unintended APIs. In the same way, setting the <tt>source</tt> option does not guarantee that your code actually compiles on a JDK with the specified version. To compile your code with a specific JDK version, different than the one used to launch Maven, refer to the <a href="../examples/compile-using-different-jdk.html">Compile Using A Different JDK</a> example.</p></div>
- </div>
- </div>
- </div>
-
+ </div>
+ </div>
+ </div>
<hr/>
-
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2001–2017
- <a href="https://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
- </p>
- </div>
-
-
- </div>
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <p>Copyright ©2001–2018
+<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+All rights reserved.</p>
+ </div>
+ </div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file