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 sv...@apache.org on 2023/03/31 16:05:32 UTC
svn commit: r1908871 [9/14] - in /maven/website/content: ./ apache-resource-bundles/ archives/maven-2.x/ background/ css/ developers/ developers/conventions/ developers/release/ developers/website/ docs/ docs/2.0.1/ docs/2.0.10/ docs/2.0.11/ docs/2.0.2...
Modified: maven/website/content/guides/mini/guide-multiple-modules.html
==============================================================================
--- maven/website/content/guides/mini/guide-multiple-modules.html (original)
+++ maven/website/content/guides/mini/guide-multiple-modules.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-multiple-modules.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -14,18 +14,18 @@
<meta name="author" content="Karl Heinz Marbaise" />
<meta name="date" content="2015-03-13" />
<title>Maven – Guide to Working with Multiple Modules</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -47,8 +47,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Working with Multiple Modules <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-multiple-modules.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
Modified: maven/website/content/guides/mini/guide-multiple-repositories.html
==============================================================================
--- maven/website/content/guides/mini/guide-multiple-repositories.html (original)
+++ maven/website/content/guides/mini/guide-multiple-repositories.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-multiple-repositories.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2005-10-12" />
<title>Maven – Guide to using Multiple Repositories</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to using Multiple Repositories <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-multiple-repositories.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -156,8 +156,7 @@
<section>
<h1>Setting up Multiple Repositories</h1>
<p>There are two different ways that you can specify the use of multiple repositories. The first way is to specify in a POM which repositories you want to use. That is supported both inside and outside of build profiles:</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<project>
...
<repositories>
@@ -177,8 +176,7 @@
</pre></div>
<p><b>NOTE:</b> You will also get the standard set of repositories as defined in the <a href="../introduction/introduction-to-the-pom.html#Super_POM">Super POM</a>.</p>
<p>The other way you can specify multiple repositories is by creating a profile in the <code>${user.home}/.m2/settings.xml</code> or <code>${maven.home}/conf/settings.xml</code> file like the following:</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<settings>
...
<profiles>
Modified: maven/website/content/guides/mini/guide-naming-conventions.html
==============================================================================
--- maven/website/content/guides/mini/guide-naming-conventions.html (original)
+++ maven/website/content/guides/mini/guide-naming-conventions.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-naming-conventions.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Carlos Sanchez" />
<meta name="date" content="2005-11-01" />
<title>Maven – Guide to Naming Conventions</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Naming Conventions <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-naming-conventions.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
Modified: maven/website/content/guides/mini/guide-new-committers.html
==============================================================================
--- maven/website/content/guides/mini/guide-new-committers.html (original)
+++ maven/website/content/guides/mini/guide-new-committers.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-new-committers.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2005-11-20" />
<title>Maven – Guide for new committers</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide for new committers <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-new-committers.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
Modified: maven/website/content/guides/mini/guide-proxies.html
==============================================================================
--- maven/website/content/guides/mini/guide-proxies.html (original)
+++ maven/website/content/guides/mini/guide-proxies.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-proxies.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2005-10-12" />
<title>Maven – Guide to using proxies</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to using proxies <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-proxies.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -157,8 +157,7 @@
<h1>Configuring a proxy</h1>
<p>You can configure a proxy to use for some or all of your HTTP requests with Maven. The username and password are only required if your proxy requires basic authentication (note that later releases may support storing your passwords in a secured keystore - in the mean time, please ensure your settings.xml file (usually ${user.home}/.m2/settings.xml) is secured with permissions appropriate for your operating system).</p>
<p>The <code>nonProxyHosts</code> setting accepts wild cards, and each host not to proxy is separated by the | character. This matches the JDK configuration equivalent.</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<settings>
.
.
Modified: maven/website/content/guides/mini/guide-releasing.html
==============================================================================
--- maven/website/content/guides/mini/guide-releasing.html (original)
+++ maven/website/content/guides/mini/guide-releasing.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-releasing.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -17,18 +17,18 @@
<meta name="date" content="2006-10-07
2015-07-31" />
<title>Maven – Guide to using the release plugin</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -50,8 +50,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to using the release plugin <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-releasing.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -186,8 +186,7 @@
<li><b>tagbase</b>
<p>The new location to record a tagged release. A valid SCM URL format appropriate to the SCM provider without the "SCM:Provider:" prefix.</p></li></ul>
<p>The previous goal parameters can be supplied while executing maven on the commandline, (as shown in the previous example) or they can be defined and maintained within the project's <i>pom.xml</i> file. The location of the current development trunk is defined within the <i>pom.xml</i> file in the following form:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>app</artifactId>
@@ -220,8 +219,7 @@
...
</project> </pre></div>
<p>To define the tagBase parameter within the <i>pom.xml</i> file a tagBase element must be defined within a <i>plugins/plugin/configuration</i> element. The following example shows how this would look within the <i>pom.xml</i> file.</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>app</artifactId>
@@ -292,8 +290,7 @@ checkpoint.check-in-development-version=
<p>The <i>release.properties</i> file is created while preparing the release. After performing the release the file remains within the project root directory until the maven user deletes it. The <i>release.properties</i> file can be given to any developer within the team and by simply excuting the <code>release:perform</code> goal can create and deploy a new instance of the project artifact time and again.</p>
<p>During the execution of the <code>release:perform</code> goal the entire maven build lifecycle is executed on the project. The tagged project source code is extracted, compiled, tested, documented and deployed. An instance of the release artifact is deployed to the machine's local repository. An another instance of the release can be deployed to a remote repository by configuring the <i>distributionManagement</i> element within the <i>pom.xml</i> file.</p>
<p>The following is an example of how a distributionManagement element can be configured within a project <i>pom.xml</i> file.</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>app</artifactId>
Modified: maven/website/content/guides/mini/guide-relocation.html
==============================================================================
--- maven/website/content/guides/mini/guide-relocation.html (original)
+++ maven/website/content/guides/mini/guide-relocation.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-relocation.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Dennis Lundberg" />
<meta name="date" content="2006-07-08" />
<title>Maven – Guide to relocation</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to relocation <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-relocation.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -168,8 +168,7 @@
<li>Create a minimal Maven 2 POM file for every old release of <code>foo</code> in your Maven 2 repository. The POM files only need to include <code>groupId</code>, <code>artifactId</code>, <code>version</code> and the relocation section.
<p><b>Note:</b> Before you replace your old POM files in <code>/bar/foo/</code> with these minimal POM files, make sure you have made backups!</p>
<p>The minimal POM file might look like this for version 1.0 of <code>foo</code>:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<modelVersion>4.0.0</modelVersion>
<groupId>bar</groupId>
<artifactId>foo</artifactId>
Modified: maven/website/content/guides/mini/guide-repository-ssl.html
==============================================================================
--- maven/website/content/guides/mini/guide-repository-ssl.html (original)
+++ maven/website/content/guides/mini/guide-repository-ssl.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-repository-ssl.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Arnaud Bailly" />
<meta name="date" content="2005-11-11" />
<title>Maven – Remote repository access through authenticated HTTPS</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Remote repository access through authenticated HTTPS <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-repository-ssl.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
Modified: maven/website/content/guides/mini/guide-reproducible-builds.html
==============================================================================
--- maven/website/content/guides/mini/guide-reproducible-builds.html (original)
+++ maven/website/content/guides/mini/guide-reproducible-builds.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-reproducible-builds.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Hervé Boutemy" />
<meta name="date" content="2019-11-03" />
<title>Maven – Guide to Configuring for Reproducible Builds</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Configuring for Reproducible Builds <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-reproducible-builds.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -166,8 +166,7 @@
<div class="verbatim">
<pre>mvn artifact:check-buildplan</pre></div></li>
<li>Enable Reproducible Builds mode for plugins, by adding <a class="externalLink" href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318#Reproducible/VerifiableBuilds-OutputArchiveEntriesTimestamp"><code>project.build.outputTimestamp</code> property</a> to the project's <code>pom.xml</code>:
-<div class="verbatim source">
-<pre> <properties>
+<div class="verbatim source"><pre class="prettyprint linenums"> <properties>
<project.build.outputTimestamp>2023-01-01T00:00:00Z</project.build.outputTimestamp>
</properties></pre></div></li></ol>
<p>You have the basics configured. The output should be mostly reproducible now.</p></section><section>
@@ -206,7 +205,7 @@
<ul>
<li>Q. Which additional plugins need to be updated for Reproducible Builds?
<p>A. Here is a simplified list:</p>
-<table class="bodyTable bodyTableBorder">
+<table class="table table-bordered table-striped">
<tr class="a">
<td style="text-align: left;"><b>plugin</b></td>
<td style="text-align: left;"><b>minimum version</b></td>
Modified: maven/website/content/guides/mini/guide-resolver-transport.html
==============================================================================
--- maven/website/content/guides/mini/guide-resolver-transport.html (original)
+++ maven/website/content/guides/mini/guide-resolver-transport.html Fri Mar 31 16:05:29 2023
@@ -3,26 +3,26 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/markdown/guides/mini/guide-resolver-transport.md at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M6" />
<title>Maven – Guide for Resolver Transport</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -44,8 +44,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide for Resolver Transport <a href="https://github.com/apache/maven-site/tree/master/content/markdown/guides/mini/guide-resolver-transport.md"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
Modified: maven/website/content/guides/mini/guide-site.html
==============================================================================
--- maven/website/content/guides/mini/guide-site.html (original)
+++ maven/website/content/guides/mini/guide-site.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-site.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -14,18 +14,18 @@
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2015-07-18" />
<title>Maven – Guide to creating a site</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -47,8 +47,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to creating a site <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-site.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -185,8 +185,7 @@
<h2>Deploying the Site</h2><section>
<h3>Classical Website deployment</h3>
<p>To be able to deploy the site with a classical network protocol (ftp, scp, webdav), you must first declare a location to distribute to in your <code>pom.xml</code>, similar to the repository for deployment:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
...
<distributionManagement>
<site>
@@ -205,8 +204,7 @@
<h3>GitHub Pages, Apache svnpubsub/gitpubsub Deployment</h3>
<p>When site publication is done with a SCM commit, like with <a class="externalLink" href="https://pages.github.com/">GitHub Pages</a> or <a class="externalLink" href="https://infra.apache.org/project-site.html#tools">Apache svnpubsub/gitpubsub</a>, deploying the site will be done with <a href="/plugins/maven-scm-publish-plugin/">Maven SCM Publish Plugin</a>. </p>
<p>For example with a project hosted on GitHub and using GitHub Pages for its site publication:</p>
-<div class="verbatim source">
-<pre> <plugin>
+<div class="verbatim source"><pre class="prettyprint linenums"> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>3.1.0</version>
@@ -221,8 +219,7 @@
<li>publishing the staged site to the SCM: <code>mvn scm-publish:publish-scm</code></li></ol></section></section><section>
<h2>Creating a Site Descriptor</h2>
<p>The <code>site.xml</code> file is used to describe the structure of the site. A sample is given below:</p>
-<div class="verbatim source">
-<pre><?xml version="1.0" encoding="ISO-8859-1"?>
+<div class="verbatim source"><pre class="prettyprint linenums"><?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 https://maven.apache.org/xsd/decoration-1.8.0.xsd"
name="Maven">
@@ -284,8 +281,7 @@
<li>License</li></ul>
<p>To find out more please refer to the <a href="../../plugins/maven-project-info-reports-plugin/">Project Info Reports Plugin</a>.</p>
<p>To add these reports to your site, you must add the Project Info Reports plugin to a special <code><reporting></code> section in the POM. The following example shows how to configure the standard project information reports that display information from the POM in a friendly format:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
...
<reporting>
<plugins>
@@ -304,8 +300,7 @@
<h2>Internationalization</h2>
<p>Internationalization in Maven is very simple, as long as the reports you are using have that particular locale defined. For an overview of supported languages and instructions on how to add further languages, please see the related article <a href="../../plugins/maven-site-plugin/i18n.html"> Internationalization</a> from the Maven Site Plugin.</p>
<p>To enable multiple locales, add a configuration similar to the following to your POM:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
...
<build>
<plugins>
Modified: maven/website/content/guides/mini/guide-snippet-macro.html
==============================================================================
--- maven/website/content/guides/mini/guide-snippet-macro.html (original)
+++ maven/website/content/guides/mini/guide-snippet-macro.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-snippet-macro.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Wendy Smoak" />
<meta name="date" content="2014-08-20" />
<title>Maven – Guide to the Snippet Macro</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to the Snippet Macro <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-snippet-macro.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -151,16 +151,14 @@
<p>See the Doxia <a href="/doxia/macros/index.html#Snippet_Macro">Macros Guide</a> for more information and examples.</p><section>
<h2>Snippets in Sources</h2><section>
<h3>Java</h3>
-<div class="verbatim source">
-<pre> // START SNIPPET: snip-id
+<div class="verbatim source"><pre class="prettyprint linenums"> // START SNIPPET: snip-id
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
// END SNIPPET: snip-id</pre></div></section><section>
<h3>XML</h3>
-<div class="verbatim source">
-<pre> <!-- START SNIPPET: snip-id -->
+<div class="verbatim source"><pre class="prettyprint linenums"> <!-- START SNIPPET: snip-id -->
<navigation-rule>
<from-view-id>/logon.jsp</from-view-id>
<navigation-case>
@@ -170,8 +168,7 @@
</navigation-rule>
<!-- END SNIPPET: snip-id --></pre></div></section><section>
<h3>JSP</h3>
-<div class="verbatim source">
-<pre> <%-- START SNIPPET: snip-id --%>
+<div class="verbatim source"><pre class="prettyprint linenums"> <%-- START SNIPPET: snip-id --%>
<ul>
<li><a href="newPerson!input.action">Create</a> a new person</li>
<li><a href="listPeople.action">List</a> all people</li>
@@ -179,13 +176,11 @@
<%-- END SNIPPET: snip-id --%></pre></div></section></section><section>
<h2>Snippets in Documentation</h2><section>
<h3>APT</h3>
-<div class="verbatim source">
-<pre> %{snippet|id=snip-id|url=http://svn.example.com/path/to/Sample.java}
+<div class="verbatim source"><pre class="prettyprint linenums"> %{snippet|id=snip-id|url=http://svn.example.com/path/to/Sample.java}
%{snippet|id=snip-id|url=file:///path/to/Sample.java}</pre></div>
<p>As of doxia-core version 1.0-alpha-9, a 'file' parameter is also available. If a full path is not specified, the location is assumed to be relative to ${basedir}.</p>
-<div class="verbatim source">
-<pre> ~~ Since doxia-core 1.0-alpha-9
+<div class="verbatim source"><pre class="prettyprint linenums"> ~~ Since doxia-core 1.0-alpha-9
%{snippet|id=abc|file=src/main/webapp/index.jsp}</pre></div>
<ul>
<li>Macros in apt <b>must not</b> be indented.</li>
Modified: maven/website/content/guides/mini/guide-using-ant.html
==============================================================================
--- maven/website/content/guides/mini/guide-using-ant.html (original)
+++ maven/website/content/guides/mini/guide-using-ant.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-using-ant.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2005-10-12" />
<title>Maven – Guide to using Ant with Maven</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to using Ant with Maven <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-using-ant.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -157,8 +157,7 @@
<section>
<h1>Guide to using Ant with Maven</h1>
<p>The example above illustrates how to bind an ant script to a lifecycle phase. You can add a script to each lifecycle phase, by duplicating the <i>execution/</i> section and specifying a new phase.</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>my-test-app</artifactId>
@@ -194,8 +193,7 @@
</project>
</pre></div>
<p>So a concrete example would be something like the following:</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>my-test-app</artifactId>
Modified: maven/website/content/guides/mini/guide-using-extensions.html
==============================================================================
--- maven/website/content/guides/mini/guide-using-extensions.html (original)
+++ maven/website/content/guides/mini/guide-using-extensions.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-using-extensions.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -14,18 +14,18 @@
<meta name="author" content="Konrad Windszus" />
<meta name="date" content="2022-11-16" />
<title>Maven – Guide to using Extensions</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -47,8 +47,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to using Extensions <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-using-extensions.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -171,8 +171,7 @@
<ul>
<li>Registered via <a href="../../pom.html#Plugins"><code>project->build->plugins->plugin</code></a> with element <code>extensions</code> being set to <code>true</code>. This is useful for regular plug-ins carrying some extensions.
<p>Example:</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<project>
...
<build>
@@ -192,8 +191,7 @@
</pre></div></li>
<li>Registered as build extension in <a href="../../pom.html#Extensions"><code>project->build->extensions->extension</code></a>
<p>Example:</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<project>
...
<build>
Modified: maven/website/content/guides/mini/guide-using-modello.html
==============================================================================
--- maven/website/content/guides/mini/guide-using-modello.html (original)
+++ maven/website/content/guides/mini/guide-using-modello.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-using-modello.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -14,18 +14,18 @@
<meta name="author" content="Hervé Boutemy" />
<meta name="date" content="2009-03-01" />
<title>Maven – Guide to using Modello</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -47,8 +47,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to using Modello <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-using-modello.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -165,8 +165,7 @@
<li>Model documentation</li>
<li>XSD</li></ul>
<p>A typical modello model looks like the following:</p>
-<div class="verbatim source">
-<pre><model xmlns="https://codehaus-plexus.github.io/MODELLO/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<div class="verbatim source"><pre class="prettyprint linenums"><model xmlns="https://codehaus-plexus.github.io/MODELLO/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://codehaus-plexus.github.io/MODELLO/1.8.0 https://codehaus-plexus.github.io/modello/xsd/modello-1.8.0.xsd"
xml.namespace="https://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/archetype-descriptor-${version}.xsd">
@@ -391,8 +390,7 @@
</model>
</pre></div>
<p>To utilize Modello, you would configure the <code>modello-maven-plugin</code> something like the following where you want to generate the Java sources for the model, the xpp3 serialization code and the xpp3 deserialization code (see <a class="externalLink" href="https://codehaus-plexus.github.io/modello/modello-plugins/modello-plugin-xpp3/">modello-plugin-xpp3</a> for more details):</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
<project>
...
<build>
Modified: maven/website/content/guides/mini/guide-using-one-source-directory.html
==============================================================================
--- maven/website/content/guides/mini/guide-using-one-source-directory.html (original)
+++ maven/website/content/guides/mini/guide-using-one-source-directory.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-using-one-source-directory.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Brett Porter" />
<meta name="date" content="2005-12-05" />
<title>Maven – Guide to Using Maven when You Can't Use the Conventions</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Using Maven when You Can't Use the Conventions <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-using-one-source-directory.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -160,8 +160,7 @@
+- module/
+- Module.java</pre></div>
<p>First, you set up your <code>pom.xml</code> at the top level not to produce anything, but to include the other modules we plan to create:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<artifactId>my-parent</artifactId>
<packaging>pom</packaging>
...
@@ -171,8 +170,7 @@
</modules>
</project></pre></div>
<p>Next, the modules themselves are created. Here is the <code>core/pom.xml</code> file you should create. The one in the <code>module</code> subdirectory will be similar.</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>my-groupId</groupId>
Modified: maven/website/content/guides/mini/guide-using-toolchains.html
==============================================================================
--- maven/website/content/guides/mini/guide-using-toolchains.html (original)
+++ maven/website/content/guides/mini/guide-using-toolchains.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-using-toolchains.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -15,18 +15,18 @@
<meta name="author" content="Karl Heinz Marbaise" />
<meta name="date" content="2016-03-08" />
<title>Maven – Guide to Using Toolchains</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -48,8 +48,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Using Toolchains <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-using-toolchains.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -164,7 +164,7 @@
<h3>Prerequisites</h3>
<p>Toolchains will only work in Maven 2.0.9 and higher versions. For more details about its design and implementation, please see <a class="externalLink" href="http://cwiki.apache.org/confluence/display/MAVENOLD/Toolchains">Toolchains</a>.</p>
<p>Below are some plugins which are toolchain-aware, with the toolchain-type used:</p>
-<table class="bodyTable bodyTableBorder">
+<table class="table table-bordered table-striped">
<tr class="a">
<th>Toolchain type</th>
<th><b>Plugin</b></th>
@@ -232,8 +232,7 @@
<li>the <code><a href="/ref/current/maven-core/toolchains.html">toolchains.xml</a></code> file on the building machine.</li></ol>
<p>The <code>maven-toolchains-plugin</code> is the one that sets the toolchain to be used by the toolchain-aware plugins in your project.</p>
<p>For example, you want to use a different JDK version to build your project than the version used to run Maven, you can configure the version you want to use via this plugin as shown in the <code>pom.xml</code> below:</p>
-<div class="verbatim source">
-<pre><plugins>
+<div class="verbatim source"><pre class="prettyprint linenums"><plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -265,8 +264,7 @@
<p>As you can see in the example above, a JDK toolchain with <code><version></code> "1.5" and <code><vendor></code> "sun" is to be used. Now how does the plugin know where this JDK is installed? This is where the <code>toolchains.xml</code> file comes in.</p>
<p>The <code>toolchains.xml</code> file (see below) is the configuration file where you set the installation paths of your toolchains. This file should be put in your <code>${user.home}/.m2</code> directory. When the <code>maven-toolchains-plugin</code> executes, it looks for the <code>toolchains.xml</code> file, reads it and looks for a toolchain matching the toolchains requirements configured in the plugin. In our example, that would be a JDK toolchain with <code><version></code> "1.5" and <code><vendor></code> "sun". Once a match is found, the plugin then stores the toolchain to be used in the MavenSession. As you can see in our <code>toolchains.xml</code> below, there is indeed a JDK toolchain with <code><version></code> "1.5" and <code><vendor></code> "sun" configured. So when the <code>maven-compiler-plugin</code> we've configured in our <code>pom.xml</code> above executes, it will see that a JDK toolchain is set
in the MavenSession and will thereby use that toolchain (that would be the JDK installed at <code>/path/to/jdk/1.5</code> for our example) to compile the sources.</p>
<p>Starting with <a href="/docs/3.3.1/release-notes.html">Maven 3.3.1</a> you can put the <code>toolchains.xml</code> file wherever you like by using the <code>--global-toolchains file</code> option but it is recommended to locate it into <code>${user.home}/.m2/</code>. </p>
-<div class="verbatim source">
-<pre><?xml version="1.0" encoding="UTF-8"?>
+<div class="verbatim source"><pre class="prettyprint linenums"><?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK toolchains -->
<toolchain>
Modified: maven/website/content/guides/mini/guide-wagon-providers.html
==============================================================================
--- maven/website/content/guides/mini/guide-wagon-providers.html (original)
+++ maven/website/content/guides/mini/guide-wagon-providers.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/guide-wagon-providers.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="John Casey" />
<meta name="date" content="2009-07-13" />
<title>Maven – Guide to Selecting Alternative Wagon Providers</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Selecting Alternative Wagon Providers <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/guide-wagon-providers.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -166,8 +166,7 @@
<p>This instructs Maven to use the HttpClient-based Wagon implementation for connections to HTTP repositories.</p></section><section>
<h2><code>settings.xml</code> Configuration</h2>
<p>To specify which Wagon provider to use for a particular server, modify your <code>settings.xml</code> file to add the <code><wagonProvider></code> configuration to your <code><server></code> entry, like the following:</p>
-<div class="verbatim source">
-<pre><settings>
+<div class="verbatim source"><pre class="prettyprint linenums"><settings>
[...]
<servers>
<server>
@@ -179,8 +178,7 @@
</server></pre></div></section><section>
<h2>Available Wagon Providers</h2>
<p>Maven 2.2.1 provides two providers for HTTP/HTTPS Wagons: <code>lightweight</code> and <code>httpclient</code>. If you add a new HTTP Wagon implementation via build extension, you'll need to make sure the extension binds its Wagon components to role-hints of the form <code><protocol>-<provider></code> in order to allow users to specify your alternative Wagon provider. For instance, the HttpClient HTTP Wagon component definition looks like this:</p>
-<div class="verbatim source">
-<pre><component>
+<div class="verbatim source"><pre class="prettyprint linenums"><component>
<role>org.apache.maven.wagon.Wagon</role>
<role-hint>http-httpclient</role-hint>
<implementation>org.apache.maven.wagon.providers.http.HttpWagon</implementation>
Modified: maven/website/content/guides/mini/index.html
==============================================================================
--- maven/website/content/guides/mini/index.html (original)
+++ maven/website/content/guides/mini/index.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/mini/index.apt.vm at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -13,18 +13,18 @@
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2005-10-12" />
<title>Maven – Maven Mini Guides</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -46,8 +46,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Maven Mini Guides <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/mini/index.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-12-11</li>
<li class="pull-right"><span class="divider">|</span>
Modified: maven/website/content/guides/plugin/guide-java-plugin-development.html
==============================================================================
--- maven/website/content/guides/plugin/guide-java-plugin-development.html (original)
+++ maven/website/content/guides/plugin/guide-java-plugin-development.html Fri Mar 31 16:05:29 2023
@@ -3,9 +3,9 @@
<!--
| Generated by Apache Maven Doxia Site Renderer 2.0.0-M6 from content/apt/guides/plugin/guide-java-plugin-development.apt at 2023-03-31
- | Rendered using Apache Maven Fluido Skin 1.11.1
+ | Rendered using Apache Maven Fluido Skin 2.0.0-M5
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -15,18 +15,18 @@
<meta name="author" content="Olivier Lamy" />
<meta name="date" content="2013-01-02" />
<title>Maven – Guide to Developing Java Plugins</title>
- <link rel="stylesheet" href="../../css/apache-maven-fluido-1.11.1.min.css" />
+ <link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M5.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
- <script src="../../js/apache-maven-fluido-1.11.1.min.js"></script>
+ <script src="../../js/apache-maven-fluido-2.0.0-M5.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- _paq.push(['disableCookies']);
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
-
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'/matomo.php']);
@@ -48,8 +48,8 @@
<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><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li>
+ <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li>
<li class="active ">Guide to Developing Java Plugins <a href="https://github.com/apache/maven-site/tree/master/content/apt/guides/plugin/guide-java-plugin-development.apt"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2022-12-11</li>
<li class="pull-right"><span class="divider">|</span>
@@ -171,8 +171,7 @@
<p>When processing the source tree to find mojos, <a href="/plugin-tools/"> <code>plugin-tools</code></a> looks for classes with either <code>@Mojo</code> Java 5 annotation or "<code>goal</code>" javadoc annotation. Any class with this annotation are included in the plugin configuration file.</p><section>
<h4>A Simple Mojo</h4>
<p>Listed below is a simple mojo class which has no parameters. This is about as simple as a mojo can be. After the listing is a description of the various parts of the source.</p>
-<div class="verbatim source">
-<pre>package sample.plugin;
+<div class="verbatim source"><pre class="prettyprint linenums">package sample.plugin;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
@@ -201,7 +200,7 @@ public class GreetingMojo extends Abstra
<p>All Mojo annotations are described by the <a href="../../developers/mojo-api-specification.html#The_Descriptor_and_Annotations">Mojo API Specification</a>.</p></section></section><section>
<h3>Project Definition</h3>
<p>Once the mojos have been written for the plugin, it is time to build the plugin. To do this properly, the project's descriptor needs to have a number of settings set properly:</p>
-<table class="bodyTable bodyTableBorder">
+<table class="table table-bordered table-striped">
<tr class="a">
<td style="text-align: left;"><code>groupId</code></td>
<td style="text-align: left;">This is the group ID for the plugin, and should match the common prefix to the packages used by the mojos</td></tr>
@@ -218,8 +217,7 @@ public class GreetingMojo extends Abstra
<td style="text-align: left;"><code>dependencies</code></td>
<td style="text-align: left;">A dependency must be declared to the Maven Plugin Tools API to resolve "<code>AbstractMojo</code>" and related classes</td></tr></table>
<p>Listed below is an illustration of the sample mojo project's pom with the parameters set as described in the above table:</p>
-<div class="verbatim source">
-<pre><project>
+<div class="verbatim source"><pre class="prettyprint linenums"><project>
<modelVersion>4.0.0</modelVersion>
<groupId>sample.plugin</groupId>
@@ -248,7 +246,7 @@ public class GreetingMojo extends Abstra
</project></pre></div></section><section>
<h3>Building a Plugin</h3>
<p>There are few plugins goals bound to the standard build lifecycle defined with the <code>maven-plugin</code> packaging:</p>
-<table class="bodyTable bodyTableBorder">
+<table class="table table-bordered table-striped">
<tr class="a">
<td style="text-align: left;"><code>compile</code></td>
<td style="text-align: left;">Compiles the Java code for the plugin</td></tr>
@@ -270,8 +268,7 @@ public class GreetingMojo extends Abstra
<p>For more details, you can look at <a href="/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_maven-plugin_packaging"> detailed bindings for <code>maven-plugin</code> packaging</a>.</p></section><section>
<h3>Executing Your First Mojo</h3>
<p>The most direct means of executing your new plugin is to specify the plugin goal directly on the command line. To do this, you need to configure the <code>hello-maven-plugin</code> plugin in you project:</p>
-<div class="verbatim source">
-<pre>...
+<div class="verbatim source"><pre class="prettyprint linenums">...
<build>
<pluginManagement>
<plugins>
@@ -295,15 +292,13 @@ public class GreetingMojo extends Abstra
<li>If you need to run the latest version of a plugin installed in your local repository, you can omit its version number. So just use "<code>mvn sample.plugin:hello-maven-plugin:sayhi</code>" to run your plugin.</li>
<li>You can assign a shortened prefix to your plugin, such as <code>mvn hello:sayhi</code>. This is done automatically if you follow the convention of using <code>${prefix}-maven-plugin</code> (or <code>maven-${prefix}-plugin</code> if the plugin is part of the Apache Maven project). You may also assign one through additional configuration - for more information see <a href="../introduction/introduction-to-plugin-prefix-mapping.html"> Introduction to Plugin Prefix Mapping</a>.</li>
<li>Finally, you can also add your plugin's groupId to the list of groupIds searched by default. To do this, you need to add the following to your <code>${user.home}/.m2/settings.xml</code> file:
-<div class="verbatim source">
-<pre><pluginGroups>
+<div class="verbatim source"><pre class="prettyprint linenums"><pluginGroups>
<pluginGroup>sample.plugin</pluginGroup>
</pluginGroups></pre></div></li></ul>
<p>At this point, you can run the mojo with "<code>mvn hello:sayhi</code>".</p></section><section>
<h4>Attaching the Mojo to the Build Lifecycle</h4>
<p>You can also configure your plugin to attach specific goals to a particular phase of the build lifecycle. Here is an example:</p>
-<div class="verbatim source">
-<pre> <build>
+<div class="verbatim source"><pre class="prettyprint linenums"> <build>
<pluginManagement>
<plugins>
<plugin>
@@ -344,8 +339,7 @@ public class GreetingMojo extends Abstra
<li>It provides a means to easily extract the value of elements from the POM without the need to navigate the objects.</li></ul><section>
<h3>Defining Parameters Within a Mojo</h3>
<p>Defining a parameter is as simple as creating an instance variable in the mojo and adding the proper annotations. Listed below is an example of a parameter for the simple mojo:</p>
-<div class="verbatim source">
-<pre> /**
+<div class="verbatim source"><pre class="prettyprint linenums"> /**
* The greeting to display.
*/
@Parameter( property = "sayhi.greeting", defaultValue = "Hello World!" )
@@ -353,8 +347,7 @@ public class GreetingMojo extends Abstra
<p>The portion before the annotations is the description of the parameter. The <code>parameter</code> annotation identifies the variable as a mojo parameter. The <code>defaultValue</code> parameter of the annotation defines the default value for the variable. This value can include expressions which reference the project, such as "<code>${project.version}</code>" (more can be found in the <a href="/ref/current/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html">"Parameter Expressions" document</a>). The <code>property</code> parameter can be used to allow configuration of the mojo parameter from the command line by referencing a system property that the user sets via the <code>-D</code> option.</p></section><section>
<h3>Configuring Parameters in a Project</h3>
<p>Configuring the parameter values for a plugin is done in a Maven project within the <code>pom.xml</code> file as part of defining the plugin in the project. An example of configuring a plugin:</p>
-<div class="verbatim source">
-<pre><plugin>
+<div class="verbatim source"><pre class="prettyprint linenums"><plugin>
<groupId>sample.plugin</groupId>
<artifactId>hello-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
@@ -366,8 +359,7 @@ public class GreetingMojo extends Abstra
<p><b>Note</b>: More details can be found in the <a href="../mini/guide-configuring-plugins.html">Guide to Configuring Plugins</a>.</p></section></section><section>
<h2>Using Setters</h2>
<p>You are not restricted to using private field mapping which is good if you are trying to make you Mojos resuable outside the context of Maven. Using the example above we could name our private fields using the underscore convention and provide setters that the configuration mapping mechanism can use. So our Mojo would look like the following:</p>
-<div class="verbatim source">
-<pre>
+<div class="verbatim source"><pre class="prettyprint linenums">
public class MyQueryMojo
extends AbstractMojo
{