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 mi...@apache.org on 2022/01/09 12:24:48 UTC
svn commit: r1896865 [21/49] - 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/compile-using-different-jdk.html
==============================================================================
--- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/compile-using-different-jdk.html (original)
+++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/compile-using-different-jdk.html Sun Jan 9 12:24:47 2022
@@ -1,180 +1,184 @@
-<!DOCTYPE html>
-<!--
- | Generated by Apache Maven Doxia Site Renderer 1.8.1 from src/site/apt/examples/compile-using-different-jdk.apt.vm at 2019-04-28
- | Rendered using Apache Maven Fluido Skin 1.7
--->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta charset="UTF-8" />
- <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="20190428" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Maven Compiler Plugin – Compiling Sources Using A Different JDK</title>
- <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.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" 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 ">Compiling Sources Using A Different JDK <a href="https://github.com/apache/maven-compiler-plugin/tree/maven-compiler-plugin-3.8.1/src/site/apt/examples/compile-using-different-jdk.apt.vm"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2019-04-28</li>
- <li id="projectVersion" class="pull-right">Version: 3.8.1</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 class="active"><a href="#"><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><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">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
- <hr />
- <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">
-<h2><a name="Compiling_Sources_Using_A_Different_JDK"></a>Compiling Sources Using A Different JDK</h2>
-<div class="section">
-<h3><a name="Using_Maven_Toolchains"></a>Using Maven Toolchains</h3>
-<p>The preferable way to use a different JDK is to use the toolchains mechanism. During the build of a project, Maven, without toolchains, will use the JDK to perform various steps, like compiling the Java sources, generate the Javadoc, run unit tests or sign JARs. Each of those plugins need a tool of the JDK to operate: <tt>javac</tt>, <tt>javadoc</tt>, <tt>jarsigner</tt>, etc. A toolchains is a way to specify the path to the JDK to use for all of those plugins in a centralized manner, independant from the one running Maven itself.</p>
-<p>To set this up, refer to the <a href="/guides/mini/guide-using-toolchains.html">Guide to Using Toolchains</a>, which makes use of the <a href="/plugins/maven-toolchains-plugin/">Maven Toolchains Plugin</a>.</p>
-<p>With the maven-toolchains-plugin you configure 1 default JDK toolchain for all related maven-plugins. Since maven-compiler-plugin 3.6.0 when using with Maven 3.3.1+ it is also possible to give the plugin its own toolchain, which can be useful in case of different JDK calls per execution block (e.g. the test sources require a different compiler compared to the main sources). </p></div>
-<div class="section">
-<h3><a name="Configuring_the_Compiler_Plugin"></a>Configuring the Compiler Plugin</h3>
-<p>Outside of a toolchains, it is still possible to tell the Compiler Plugin the specific JDK to use during compilation. Note that such configuration will be specific to this plugin, and will not affect others.</p>
-<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 class="prettyprint linenums"><project>
- [...]
- <build>
- [...]
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- <configuration>
- <verbose>true</verbose>
- <fork>true</fork>
- <executable><!-- path-to-javac --></executable>
- <compilerVersion>1.3</compilerVersion>
- </configuration>
- </plugin>
- </plugins>
- [...]
- </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 class="prettyprint linenums"> <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 class="prettyprint linenums"><settings>
- [...]
- <profiles>
- [...]
- <profile>
- <id>compiler</id>
- <properties>
- <JAVA_1_4_HOME>C:\Program Files\Java\j2sdk1.4.2_09</JAVA_1_4_HOME>
- </properties>
- </profile>
- </profiles>
- [...]
- <activeProfiles>
- <activeProfile>compiler</activeProfile>
- </activeProfiles>
-</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>
- </div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>Copyright ©2001–2019
-<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.</p>
- </div>
- </div>
- </footer>
- </body>
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia Site Renderer 1.8.1 from src\site\apt/examples\compile-using-different-jdk.apt.vm at 2022-01-09
+ | Rendered using Apache Maven Fluido Skin 1.7
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <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="20220109" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>Apache Maven Compiler Plugin – Compiling Sources Using A Different JDK</title>
+ <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.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" 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 ">Compiling Sources Using A Different JDK <a href="https://github.com/apache/maven-compiler-plugin/tree/maven-compiler-plugin-3.9.0/src\site\apt/examples\compile-using-different-jdk.apt.vm"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+ <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-01-09</li>
+ <li id="projectVersion" class="pull-right">Version: 3.9.0</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 class="active"><a href="#"><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/set-compiler-release.html" title="Compile Using the --release javac Option (JDK 9+)"><span class="none"></span>Compile Using the --release javac Option (JDK 9+)</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="maven.apache.org/plugins/maven-compiler-plugin/" name="sitesearch" type="hidden"/>
+ <input class="search-query" name="q" id="query" type="text" />
+</form>
+<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
+ <hr />
+ <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">
+<h2><a name="Compiling_Sources_Using_A_Different_JDK"></a>Compiling Sources Using A Different JDK</h2>
+<div class="section">
+<h3><a name="Using_Maven_Toolchains"></a>Using Maven Toolchains</h3>
+<p>The preferable way to use a different JDK is to use the toolchains mechanism. During the build of a project, Maven, without toolchains, will use the JDK to perform various steps, like compiling the Java sources, generate the Javadoc, run unit tests or sign JARs. Each of those plugins need a tool of the JDK to operate: <tt>javac</tt>, <tt>javadoc</tt>, <tt>jarsigner</tt>, etc. A toolchain is a way to specify the path to the JDK to use for all of those plugins in a centralized manner, independent from the one running Maven itself.</p>
+<p>To set this up, refer to the <a href="/guides/mini/guide-using-toolchains.html">Guide to Using Toolchains</a>, which makes use of the <a href="/plugins/maven-toolchains-plugin/">Maven Toolchains Plugin</a>.</p>
+<p>With the maven-toolchains-plugin you configure 1 default JDK toolchain for all related maven-plugins. Since maven-compiler-plugin 3.6.0 when using with Maven 3.3.1+ it is also possible to give the plugin its own toolchain, which can be useful in case of different JDK calls per execution block (e.g. the test sources require a different compiler compared to the main sources). </p></div>
+<div class="section">
+<h3><a name="Configuring_the_Compiler_Plugin"></a>Configuring the Compiler Plugin</h3>
+<p>Outside of a toolchain, it is still possible to tell the Compiler Plugin the specific JDK to use during compilation. Note that such configuration will be specific to this plugin, and will not affect others.</p>
+<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 class="prettyprint linenums"><project>
+ [...]
+ <build>
+ [...]
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.9.0</version>
+ <configuration>
+ <verbose>true</verbose>
+ <fork>true</fork>
+ <executable><!-- path-to-javac --></executable>
+ <compilerVersion>1.3</compilerVersion>
+ </configuration>
+ </plugin>
+ </plugins>
+ [...]
+ </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 class="prettyprint linenums"> <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 class="prettyprint linenums"><settings>
+ [...]
+ <profiles>
+ [...]
+ <profile>
+ <id>compiler</id>
+ <properties>
+ <JAVA_1_4_HOME>C:\Program Files\Java\j2sdk1.4.2_09</JAVA_1_4_HOME>
+ </properties>
+ </profile>
+ </profiles>
+ [...]
+ <activeProfiles>
+ <activeProfile>compiler</activeProfile>
+ </activeProfiles>
+</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>
+ </div>
+ <hr/>
+ <footer>
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <p>Copyright ©2001–2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+All rights reserved.</p>
+ </div>
+ </div>
+ </footer>
+ </body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/compile-with-memory-enhancements.html
==============================================================================
--- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/compile-with-memory-enhancements.html (original)
+++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/compile-with-memory-enhancements.html Sun Jan 9 12:24:47 2022
@@ -1,151 +1,153 @@
-<!DOCTYPE html>
-<!--
- | Generated by Apache Maven Doxia Site Renderer 1.8.1 from src/site/apt/examples/compile-with-memory-enhancements.apt.vm at 2019-04-28
- | Rendered using Apache Maven Fluido Skin 1.7
--->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta charset="UTF-8" />
- <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="20190428" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Maven Compiler Plugin – Compile Using Memory Allocation Enhancements</title>
- <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.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" 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 ">Compile Using Memory Allocation Enhancements <a href="https://github.com/apache/maven-compiler-plugin/tree/maven-compiler-plugin-3.8.1/src/site/apt/examples/compile-with-memory-enhancements.apt.vm"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2019-04-28</li>
- <li id="projectVersion" class="pull-right">Version: 3.8.1</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 class="active"><a href="#"><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">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
- <hr />
- <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">
-<h2><a name="Compile_Using_Memory_Allocation_Enhancements"></a>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 class="prettyprint linenums"><project>
- [...]
- <build>
- [...]
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- <configuration>
- <fork>true</fork>
- <meminitial>128m</meminitial>
- <maxmem>512m</maxmem>
- </configuration>
- </plugin>
- </plugins>
- [...]
- </build>
- [...]
-</project></pre></div></div>
- </div>
- </div>
- </div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>Copyright ©2001–2019
-<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.</p>
- </div>
- </div>
- </footer>
- </body>
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia Site Renderer 1.8.1 from src\site\apt/examples\compile-with-memory-enhancements.apt.vm at 2022-01-09
+ | Rendered using Apache Maven Fluido Skin 1.7
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <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="20220109" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>Apache Maven Compiler Plugin – Compile Using Memory Allocation Enhancements</title>
+ <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.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" 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 ">Compile Using Memory Allocation Enhancements <a href="https://github.com/apache/maven-compiler-plugin/tree/maven-compiler-plugin-3.9.0/src\site\apt/examples\compile-with-memory-enhancements.apt.vm"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+ <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-01-09</li>
+ <li id="projectVersion" class="pull-right">Version: 3.9.0</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/set-compiler-release.html" title="Compile Using the --release javac Option (JDK 9+)"><span class="none"></span>Compile Using the --release javac Option (JDK 9+)</a></li>
+ <li class="active"><a href="#"><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="maven.apache.org/plugins/maven-compiler-plugin/" name="sitesearch" type="hidden"/>
+ <input class="search-query" name="q" id="query" type="text" />
+</form>
+<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
+ <hr />
+ <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">
+<h2><a name="Compile_Using_Memory_Allocation_Enhancements"></a>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 class="prettyprint linenums"><project>
+ [...]
+ <build>
+ [...]
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.9.0</version>
+ <configuration>
+ <fork>true</fork>
+ <meminitial>128m</meminitial>
+ <maxmem>512m</maxmem>
+ </configuration>
+ </plugin>
+ </plugins>
+ [...]
+ </build>
+ [...]
+</project>
+</pre></div></div>
+ </div>
+ </div>
+ </div>
+ <hr/>
+ <footer>
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <p>Copyright ©2001–2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+All rights reserved.</p>
+ </div>
+ </div>
+ </footer>
+ </body>
</html>
\ No newline at end of file
Modified: maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/jpms_args.html
==============================================================================
--- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/jpms_args.html (original)
+++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/examples/jpms_args.html Sun Jan 9 12:24:47 2022
@@ -1,142 +1,144 @@
-<!DOCTYPE html>
-<!--
- | Generated by Apache Maven Doxia Site Renderer 1.8.1 from src/site/apt/examples/jpms_args.apt.vm at 2019-04-28
- | Rendered using Apache Maven Fluido Skin 1.7
--->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="author" content="Robert Scholte" />
- <meta name="Date-Creation-yyyymmdd" content="20170822" />
- <meta name="Date-Revision-yyyymmdd" content="20190428" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Maven Compiler Plugin – jpms.args</title>
- <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.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" 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 ">jpms.args <a href="https://github.com/apache/maven-compiler-plugin/tree/maven-compiler-plugin-3.8.1/src/site/apt/examples/jpms_args.apt.vm"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
- <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2019-04-28</li>
- <li id="projectVersion" class="pull-right">Version: 3.8.1</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><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">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
- <hr />
- <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">
-<h2><a name="JPMS.ARGS"></a>JPMS.ARGS</h2>
-<p>Java 9 comes with a new set of arguments related to the Java Platform Modular System. Besides the module path are other new arguments which can change the behavior of the application. These can be used during both compile time and runtime. This information is not stored in any class, but it can be interesting to know at runtime which extra arguments were used at compile time.</p>
-<p>If any of these arguments is used, the <tt>META-INF/jpms.args</tt> is created. Every argument gets its own line. The following arguments will end up in this file:</p>
-<ul>
-<li><tt>--upgrade-module-path</tt></li>
-<li><tt>--add-exports</tt></li>
-<li><tt>--add-reads</tt></li>
-<li><tt>--add-modules</tt></li>
-<li><tt>--limit-modules</tt></li>
-<li><tt>--patch-module</tt></li></ul>
-<p>The <tt>--patch-module</tt> values are different compared to the original values passed to the compiler. According to the specification it looks like <tt>--patch-module <module>=<file>(<pathsep><file>)*</tt> However, files are system specific. For that reason the module names are used. If the jar itself contains the patchcode, then an <tt>_</tt> (underscore) is used. As separators a <tt>, </tt> (comma + space) is used.</p>
-<div class="source"><pre class="prettyprint linenums"> --patch-module
- <module>=<module>(, <module>)*</pre></div></div>
- </div>
- </div>
- </div>
- <hr/>
- <footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p>Copyright ©2001–2019
-<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.</p>
- </div>
- </div>
- </footer>
- </body>
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia Site Renderer 1.8.1 from src\site\apt/examples\jpms_args.apt.vm at 2022-01-09
+ | Rendered using Apache Maven Fluido Skin 1.7
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="author" content="Robert Scholte" />
+ <meta name="Date-Creation-yyyymmdd" content="20170822" />
+ <meta name="Date-Revision-yyyymmdd" content="20220109" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>Apache Maven Compiler Plugin – jpms.args</title>
+ <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.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" 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 ">jpms.args <a href="https://github.com/apache/maven-compiler-plugin/tree/maven-compiler-plugin-3.9.0/src\site\apt/examples\jpms_args.apt.vm"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+ <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-01-09</li>
+ <li id="projectVersion" class="pull-right">Version: 3.9.0</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/set-compiler-release.html" title="Compile Using the --release javac Option (JDK 9+)"><span class="none"></span>Compile Using the --release javac Option (JDK 9+)</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="maven.apache.org/plugins/maven-compiler-plugin/" name="sitesearch" type="hidden"/>
+ <input class="search-query" name="q" id="query" type="text" />
+</form>
+<script type="text/javascript">asyncJs( 'https://cse.google.com/brand?form=search-form' )</script>
+ <hr />
+ <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">
+<h2><a name="JPMS.ARGS"></a>JPMS.ARGS</h2>
+<p>Java 9 comes with a new set of arguments related to the Java Platform Modular System. Besides the module path are other new arguments which can change the behavior of the application. These can be used during both compile time and runtime. This information is not stored in any class, but it can be interesting to know at runtime which extra arguments were used at compile time.</p>
+<p>If any of these arguments is used, the <tt>META-INF/jpms.args</tt> is created. Every argument gets its own line. The following arguments will end up in this file:</p>
+<ul>
+<li><tt>--upgrade-module-path</tt></li>
+<li><tt>--add-exports</tt></li>
+<li><tt>--add-reads</tt></li>
+<li><tt>--add-modules</tt></li>
+<li><tt>--limit-modules</tt></li>
+<li><tt>--patch-module</tt></li></ul>
+<p>The <tt>--patch-module</tt> values are different compared to the original values passed to the compiler. According to the specification it looks like <tt>--patch-module <module>=<file>(<pathsep><file>)*</tt> However, files are system specific. For that reason the module names are used. If the jar itself contains the patchcode, then an <tt>_</tt> (underscore) is used. As separators a <tt>, </tt> (comma + space) is used.</p>
+<div class="source"><pre class="prettyprint linenums"> --patch-module
+ <module>=<module>(, <module>)*
+</pre></div></div>
+ </div>
+ </div>
+ </div>
+ <hr/>
+ <footer>
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <p>Copyright ©2001–2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a>.
+All rights reserved.</p>
+ </div>
+ </div>
+ </footer>
+ </body>
</html>
\ No newline at end of file