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/02/08 20:32:15 UTC
svn commit: r1907529 [10/22] - in /maven/website/content: ./ apache-resource-bundles/ archives/maven-2.x/ background/ developers/ developers/conventions/ developers/release/ developers/website/ docs/ docs/2.0.1/ docs/2.0.10/ docs/2.0.11/ docs/2.0.2/ do...
Modified: maven/website/content/guides/getting-started/windows-prerequisites.html
==============================================================================
--- maven/website/content/guides/getting-started/windows-prerequisites.html (original)
+++ maven/website/content/guides/getting-started/windows-prerequisites.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/getting-started/windows-prerequisites.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/getting-started/windows-prerequisites.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="Benson Margulies" />
<meta name="date" content="2012-07-01" />
<title>Maven – Maven on Windows</title>
@@ -124,19 +124,19 @@
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Maven_on_Windows"></a>Maven on Windows</h1>
+<h1>Maven on Windows</h1>
<p>Maven is a command-line tool for building Java (and other) programs. The Maven project provides a simple ZIP file containing a precompiled version of Maven for your convenience. There is no installer. It's up to you to set up your prerequisites and environment to run Maven on Windows.</p><section>
-<h2><a name="Prerequisites"></a>Prerequisites</h2>
+<h2>Prerequisites</h2>
<p>Maven is written in Java (and primarily used to build Java programs). Thus, the major prerequisite is the Java SDK. You need to install the Java SDK (e.g. from <a class="externalLink" href="https://www.oracle.com/technetwork/java/javase/downloads/index.html">Oracle's download site</a>).</p>
<p>Once Java is installed, you must ensure that the commands from the Java SDK are in your PATH environment variable. Running, for example,</p>
<div>
<pre>java -version</pre></div>
<p>must show the right version number.</p></section><section>
-<h2><a name="Maven_Unpacked"></a>Maven Unpacked</h2>
+<h2>Maven Unpacked</h2>
<p>You need to unpack the Maven distribution. Don't unpack it in the middle of your source code; pick some location and unpack it there. Let's assume that the path is <code>${maven.home}</code>.</p></section><section>
-<h2><a name="Maven_in_PATH"></a>Maven in PATH</h2>
+<h2>Maven in PATH</h2>
<p>You run Maven by invoking a command-line tool: <code>mvn.cmd</code> from the <code>bin</code> directory of the Maven. To do this conveniently, <code>${maven.home}\bin</code> must be in your PATH, just like the Java SDK commands. You can add directories to your <code>PATH</code> in the control panel; the details vary by Windows version.</p></section><section>
-<h2><a name="Firewalls_and_Anti-virus"></a>Firewalls and Anti-virus</h2>
+<h2>Firewalls and Anti-virus</h2>
<p>Firewall and Anti-virus sometimes prevent Java from running properly, or Windows Firewall (and various other Firewalls) actively prevent Java.exe from reaching out to the Internet to "download stuff" which is a key part of Maven. You may need to configure the Firewall or Anti-virus to add exceptions to allow such actions.</p></section></section>
</main>
</div>
Modified: maven/website/content/guides/index.html
==============================================================================
--- maven/website/content/guides/index.html (original)
+++ maven/website/content/guides/index.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/index.apt.vm at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/index.apt.vm at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="Jason van Zyl
Eric Redmond" />
<meta name="date" content="2009-08-01" />
@@ -125,12 +125,12 @@ Eric Redmond" />
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Documentation"></a>Documentation</h1><section>
-<h2><a name="Getting_Started_with_Maven"></a>Getting Started with Maven</h2>
+<h1>Documentation</h1><section>
+<h2>Getting Started with Maven</h2>
<ul>
<li><a href="./getting-started/maven-in-five-minutes.html">Getting Started in 5 Minutes</a></li>
<li><a href="./getting-started/index.html">Getting Started in 30 Minutes</a></li></ul></section><section>
-<h2><a name="Introductions"></a>Introductions</h2>
+<h2>Introductions</h2>
<ul>
<li><a href="./introduction/introduction-to-the-lifecycle.html">The Build Lifecycle</a></li>
<li><a href="./introduction/introduction-to-the-pom.html">The POM</a></li>
@@ -140,25 +140,25 @@ Eric Redmond" />
<li><a href="./introduction/introduction-to-dependency-mechanism.html">The Dependency Mechanism</a>
<ul>
<li><a href="./introduction/introduction-to-optional-and-excludes-dependencies.html"> Optional Dependencies and Dependency Exclusions</a></li></ul></li></ul><section>
-<h3><a name="Plugins"></a>Plugins</h3>
+<h3>Plugins</h3>
<ul>
<li><a href="./introduction/introduction-to-plugins.html">Plugin Development</a></li>
<li><a href="./mini/guide-configuring-plugins.html">Configuring Plug-ins</a></li>
<li><a href="./introduction/introduction-to-plugin-prefix-mapping.html">Plugin Prefix Resolution</a></li>
<li><a href="./plugin/guide-java-plugin-development.html">Developing Java Plugins</a></li></ul></section><section>
-<h3><a name="Site"></a>Site</h3>
+<h3>Site</h3>
<ul>
<li><a href="./mini/guide-site.html">Creating a Site</a></li>
<li><a href="/doxia/references/apt-format.html">The APT Format</a></li>
<li><a href="./mini/guide-snippet-macro.html">Snippet Macro</a></li></ul></section><section>
-<h3><a name="Archetypes"></a>Archetypes</h3>
+<h3>Archetypes</h3>
<ul>
<li><a href="./introduction/introduction-to-archetypes.html">What is an Archetype</a></li>
<li><a href="./mini/guide-creating-archetypes.html">Creating Archetypes</a></li></ul></section><section>
-<h3><a name="Upgrading"></a>Upgrading</h3>
+<h3>Upgrading</h3>
<ul>
<li><a href="./mini/guide-relocation.html">Relocation of Artifacts</a></li></ul></section><section>
-<h3><a name="Repositories"></a><a href="/introduction/introduction-to-repositories.html">Repositories</a></h3>
+<h3><a href="/introduction/introduction-to-repositories.html">Repositories</a></h3>
<ul>
<li><a href="./mini/guide-3rd-party-jars-local.html">Installing 3rd party JARs to Local Repository</a></li>
<li><a href="./mini/guide-3rd-party-jars-remote.html">Deploying 3rd party JARs to Remote Repository</a></li>
@@ -171,7 +171,7 @@ Eric Redmond" />
<li><a href="./mini/guide-repository-ssl.html">Authenticated HTTPS</a></li>
<li><a href="./mini/guide-repository-ssl.html">Remote repository access through authenticated HTTPS</a></li>
<li><a href="./mini/guide-relocation.html">Relocation</a></li></ul></section></section><section>
-<h2><a name="Guides"></a>Guides</h2>
+<h2>Guides</h2>
<ul>
<li><a href="./mini/guide-reproducible-builds.html">Configuring for Reproducible Builds</a></li>
<li><a href="./mini/guide-assemblies.html">Creating Assemblies</a></li>
@@ -188,33 +188,33 @@ Eric Redmond" />
<li><a href="./mini/guide-building-for-different-environments.html">Building For Different Environments with Maven 2</a></li>
<li><a href="./mini/guide-using-toolchains.html">Using Toolchains</a></li>
<li><a href="/examples/injecting-properties-via-settings.html">Injecting POM Properties via settings.xml</a></li></ul><section>
-<h3><a name="Maven_Tools_and_IDE_Integration"></a>Maven Tools and IDE Integration</h3>
+<h3>Maven Tools and IDE Integration</h3>
<ul>
<li><a href="./mini/guide-bash-m2-completion.html">Maven Auto-Completion Using BASH</a></li></ul></section></section><section>
-<h2><a name="Development_Guides"></a>Development Guides</h2>
+<h2>Development Guides</h2>
<ul>
<li><a href="./development/guide-building-maven.html">Building Maven from Scratch</a></li>
<li><a href="./development/guide-maven-development.html">Developing Maven</a></li>
<li><a href="./development/guide-plugin-documentation.html">The Plugin Documentation Standard</a></li>
<li><a href="./development/guide-documentation-style.html">Maven Documentation Style</a></li></ul></section><section>
-<h2><a name="The_Maven_Community"></a>The Maven Community</h2>
+<h2>The Maven Community</h2>
<ul>
<li><a href="../community.html">The Maven Community</a></li>
<li><a href="./development/guide-helping.html">Helping with Maven</a></li>
<li><a href="./mini/guide-new-committers.html">Guide for New Committers</a></li>
<li><a href="./development/guide-testing-development-plugins.html">Testing Development Versions of Plugins</a></li>
<li><a href="../articles.html">3rd Party Resources</a></li></ul><section>
-<h3><a name="Conventions"></a>Conventions</h3>
+<h3>Conventions</h3>
<ul>
<li><a href="../maven-conventions.html">Maven Conventions</a></li>
<li><a href="./mini/guide-naming-conventions.html">Naming Conventions</a></li>
<li><a href="./mini/guide-using-one-source-directory.html">When You Can't Use the Conventions</a></li></ul></section><section>
-<h3><a name="The_Central_Repository"></a>The Central Repository</h3>
+<h3>The Central Repository</h3>
<ul>
<li><a href="/repository/">Introduction to the Central Repository</a></li>
<li><a href="/repository/guide-central-repository-upload.html">Uploading Artifacts to the Central Repository</a></li>
<li><a href="/repository/central-metadata.html">Improving the Repository</a></li></ul></section></section><section>
-<h2><a name="References"></a>References</h2>
+<h2>References</h2>
<ul>
<li><a href="../pom.html">POM Overview</a> (<a href="../ref/current/maven-model/maven.html">Technical Project Descriptor</a>)</li>
<li><a href="../settings.html">Settings Overview</a> (<a href="../ref/current/maven-settings/settings.html">Technical Settings Descriptor</a>)</li>
@@ -222,7 +222,7 @@ Eric Redmond" />
<li><a href="../developers/mojo-api-specification.html">Mojo API</a></li>
<li><a href="../glossary.html">Glossary</a></li>
<li><a href="./MavenQuickReferenceCard.pdf">Maven Quick Reference Card - PDF</a></li></ul></section><section>
-<h2><a name="Javadoc_API"></a>Javadoc API</h2>
+<h2>Javadoc API</h2>
<p>Here is some useful Javadoc API links to the current version of Maven:</p>
<ul>
<li><a href="/ref/current/maven-artifact/apidocs/">Maven Artifact</a></li>
Modified: maven/website/content/guides/introduction/introduction-to-archetypes.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-archetypes.html (original)
+++ maven/website/content/guides/introduction/introduction-to-archetypes.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-archetypes.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-archetypes.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="Jason van Zyl" />
<meta name="date" content="2009-08-26" />
<title>Maven – Introduction to Archetypes</title>
@@ -141,57 +141,57 @@
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction_to_Archetypes"></a>Introduction to Archetypes</h1></section><section>
-<h1><a name="What_is_Archetype.3F"></a>What is Archetype?</h1>
+<h1>Introduction to Archetypes</h1></section><section>
+<h1>What is Archetype?</h1>
<p>In short, Archetype is a Maven project templating toolkit. An archetype is defined as <i>an original pattern or model from which all other things of the same kind are made</i>. The name fits as we are trying to provide a system that provides a consistent means of generating Maven projects. Archetype will help authors create Maven project templates for users, and provides users with the means to generate parameterized versions of those project templates.</p>
<p>Using archetypes provides a great way to enable developers quickly in a way consistent with best practices employed by your project or organization. Within the Maven project, we use archetypes to try and get our users up and running as quickly as possible by providing a sample project that demonstrates many of the features of Maven, while introducing new users to the best practices employed by Maven. In a matter of seconds, a new user can have a working Maven project to use as a jumping board for investigating more of the features in Maven. We have also tried to make the Archetype mechanism additive, and by that we mean allowing portions of a project to be captured in an archetype so that pieces or aspects of a project can be added to existing projects. A good example of this is the Maven site archetype. If, for example, you have used the quick start archetype to generate a working project, you can then quickly create a site for that project by using the site archetype within tha
t existing project. You can do anything like this with archetypes.</p>
<p>You may want to standardize J2EE development within your organization, so you may want to provide archetypes for EJBs, or WARs, or for your web services. Once these archetypes are created and deployed in your organization's repository, they are available for use by all developers within your organization.</p><section>
-<h2><a name="Using_an_Archetype"></a>Using an Archetype</h2>
+<h2>Using an Archetype</h2>
<p>To create a new project based on an Archetype, you need to call <code>mvn archetype:generate</code> goal, like the following:</p>
<div>
<pre>mvn archetype:generate</pre></div>
<p>Please refer to <a href="/archetype/maven-archetype-plugin/usage.html">Archetype Plugin page</a>.</p></section><section>
-<h2><a name="Provided_Archetypes"></a>Provided Archetypes</h2>
+<h2>Provided Archetypes</h2>
<p>Maven provides several Archetype artifacts:</p>
-<table border="1" class="table table-striped">
+<table class="bodyTable bodyTableBorder">
<tr class="a">
-<th align="left">Archetype ArtifactIds</th>
-<th align="left">Description</th></tr>
+<th>Archetype ArtifactIds</th>
+<th>Description</th></tr>
<tr class="b">
-<td align="left">maven-archetype-archetype</td>
-<td align="left">An archetype to generate a sample archetype project.</td></tr>
+<td style="text-align: left;">maven-archetype-archetype</td>
+<td style="text-align: left;">An archetype to generate a sample archetype project.</td></tr>
<tr class="a">
-<td align="left">maven-archetype-j2ee-simple</td>
-<td align="left">An archetype to generate a simplifed sample J2EE application.</td></tr>
+<td style="text-align: left;">maven-archetype-j2ee-simple</td>
+<td style="text-align: left;">An archetype to generate a simplifed sample J2EE application.</td></tr>
<tr class="b">
-<td align="left">maven-archetype-mojo</td>
-<td align="left">An archetype to generate a sample a sample Maven plugin.</td></tr>
+<td style="text-align: left;">maven-archetype-mojo</td>
+<td style="text-align: left;">An archetype to generate a sample a sample Maven plugin.</td></tr>
<tr class="a">
-<td align="left">maven-archetype-plugin</td>
-<td align="left">An archetype to generate a sample Maven plugin.</td></tr>
+<td style="text-align: left;">maven-archetype-plugin</td>
+<td style="text-align: left;">An archetype to generate a sample Maven plugin.</td></tr>
<tr class="b">
-<td align="left">maven-archetype-plugin-site</td>
-<td align="left">An archetype to generate a sample Maven plugin site.</td></tr>
+<td style="text-align: left;">maven-archetype-plugin-site</td>
+<td style="text-align: left;">An archetype to generate a sample Maven plugin site.</td></tr>
<tr class="a">
-<td align="left">maven-archetype-portlet</td>
-<td align="left">An archetype to generate a sample JSR-268 Portlet.</td></tr>
+<td style="text-align: left;">maven-archetype-portlet</td>
+<td style="text-align: left;">An archetype to generate a sample JSR-268 Portlet.</td></tr>
<tr class="b">
-<td align="left">maven-archetype-quickstart</td>
-<td align="left">An archetype to generate a sample Maven project.</td></tr>
+<td style="text-align: left;">maven-archetype-quickstart</td>
+<td style="text-align: left;">An archetype to generate a sample Maven project.</td></tr>
<tr class="a">
-<td align="left">maven-archetype-simple</td>
-<td align="left">An archetype to generate a simple Maven project.</td></tr>
+<td style="text-align: left;">maven-archetype-simple</td>
+<td style="text-align: left;">An archetype to generate a simple Maven project.</td></tr>
<tr class="b">
-<td align="left">maven-archetype-site</td>
-<td align="left">An archetype to generate a sample Maven site which demonstrates some of the supported document types like APT, XDoc, and FML and demonstrates how to i18n your site.</td></tr>
+<td style="text-align: left;">maven-archetype-site</td>
+<td style="text-align: left;">An archetype to generate a sample Maven site which demonstrates some of the supported document types like APT, XDoc, and FML and demonstrates how to i18n your site.</td></tr>
<tr class="a">
-<td align="left">maven-archetype-site-simple</td>
-<td align="left">An archetype to generate a sample Maven site.</td></tr>
+<td style="text-align: left;">maven-archetype-site-simple</td>
+<td style="text-align: left;">An archetype to generate a sample Maven site.</td></tr>
<tr class="b">
-<td align="left">maven-archetype-webapp</td>
-<td align="left">An archetype to generate a sample Maven Webapp project.</td></tr></table>
+<td style="text-align: left;">maven-archetype-webapp</td>
+<td style="text-align: left;">An archetype to generate a sample Maven Webapp project.</td></tr></table>
<p>For more information on these archetypes, please refer to the <a href="/archetypes/index.html">Maven Archetype Bundles page</a>.</p></section><section>
-<h2><a name="What_makes_up_an_Archetype.3F"></a>What makes up an Archetype?</h2>
+<h2>What makes up an Archetype?</h2>
<p>Archetypes are packaged up in a JAR and they consist of the archetype metadata which describes the contents of archetype, and a set of <a class="externalLink" href="http://velocity.apache.org/">Velocity</a> templates which make up the prototype project. If you would like to know how to make your own archetypes, please refer to our <a href="../mini/guide-creating-archetypes.html">Guide to creating archetypes</a>.</p></section></section>
</main>
</div>
Modified: maven/website/content/guides/introduction/introduction-to-dependency-mechanism.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-dependency-mechanism.html (original)
+++ maven/website/content/guides/introduction/introduction-to-dependency-mechanism.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-dependency-mechanism.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-dependency-mechanism.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="Brett Porter
Trygve Laugstol
Karl Heinz Marbaise" />
@@ -152,7 +152,7 @@ Karl Heinz Marbaise" />
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction_to_the_Dependency_Mechanism"></a>Introduction to the Dependency Mechanism</h1>
+<h1>Introduction to the Dependency Mechanism</h1>
<p>Dependency management is a core feature of Maven. Managing dependencies for a single project is easy. Managing dependencies for multi-module projects and applications that consist of hundreds of modules is possible. Maven helps a great deal in defining, creating, and maintaining reproducible builds with well-defined classpaths and library versions.</p>
<p>Learn more about:</p>
<ul>
@@ -165,7 +165,7 @@ Karl Heinz Marbaise" />
<li><a href="#Importing_Dependencies">Importing Dependencies</a></li>
<li><a href="#bill-of-materials-bom-poms">Bill of Materials (BOM) POMs</a></li></ul></li>
<li><a href="#System_Dependencies">System Dependencies</a></li></ul><section>
-<h2><a name="Transitive_Dependencies">Transitive Dependencies</a></h2>
+<h2><a id="Transitive_Dependencies">Transitive Dependencies</a></h2>
<p>Maven avoids the need to discover and specify the libraries that your own dependencies require by including transitive dependencies automatically.</p>
<p>This feature is facilitated by reading the project files of your dependencies from the remote repositories specified. In general, all dependencies of those projects are used in your project, as are any that the project inherits from its parents, or from its dependencies, and so on.</p>
<p>There is no limit to the number of levels that dependencies can be gathered from. A problem arises only if a cyclic dependency is discovered.</p>
@@ -199,7 +199,7 @@ Karl Heinz Marbaise" />
<p>For example, assume that your project A specifies a dependency on another project B, and project B specifies a dependency on project C. If you are directly using components in project C, and you don't specify project C in your project A, it may cause build failure when project B suddenly updates/removes its dependency on project C.</p>
<p>Another reason to directly specify dependencies is that it provides better documentation for your project: one can learn more information by just reading the POM file in your project, or by executing <b>mvn dependency:tree</b>.</p>
<p>Maven also provides <a href="/plugins/maven-dependency-plugin/analyze-mojo.html">dependency:analyze</a> plugin goal for analyzing the dependencies: it helps making this best practice more achievable.</p></section><section>
-<h2><a name="Dependency_Scope">Dependency Scope</a></h2>
+<h2><a id="Dependency_Scope">Dependency Scope</a></h2>
<p>Dependency scope is used to limit the transitivity of a dependency and to determine when a dependency is included in a classpath.</p>
<p>There are 6 scopes:</p>
<ul>
@@ -210,39 +210,39 @@ Karl Heinz Marbaise" />
<li><b>system</b><br />This scope is similar to <code>provided</code> except that you have to provide the JAR which contains it explicitly. The artifact is always available and is not looked up in a repository.</li>
<li><b>import</b><br />This scope is only supported on a dependency of type <code>pom</code> in the <code><dependencyManagement></code> section. It indicates the dependency is to be replaced with the effective list of dependencies in the specified POM's <code><dependencyManagement></code> section. Since they are replaced, dependencies with a scope of <code>import</code> do not actually participate in limiting the transitivity of a dependency.</li></ul>
<p>Each of the scopes (except for <code>import</code>) affects transitive dependencies in different ways, as is demonstrated in the table below. If a dependency is set to the scope in the left column, a transitive dependency of that dependency with the scope across the top row results in a dependency in the main project with the scope listed at the intersection. If no scope is listed, it means the dependency is omitted.</p>
-<table border="1" class="table table-striped">
+<table class="bodyTable bodyTableBorder">
<tr class="a">
-<td align="left"></td>
-<td align="left">compile</td>
-<td align="left">provided</td>
-<td align="left">runtime</td>
-<td align="left">test</td></tr>
+<td style="text-align: left;"></td>
+<td style="text-align: left;">compile</td>
+<td style="text-align: left;">provided</td>
+<td style="text-align: left;">runtime</td>
+<td style="text-align: left;">test</td></tr>
<tr class="b">
-<td align="left">compile</td>
-<td align="left">compile(*)</td>
-<td align="left">-</td>
-<td align="left">runtime</td>
-<td align="left">-</td></tr>
+<td style="text-align: left;">compile</td>
+<td style="text-align: left;">compile(*)</td>
+<td style="text-align: left;">-</td>
+<td style="text-align: left;">runtime</td>
+<td style="text-align: left;">-</td></tr>
<tr class="a">
-<td align="left">provided</td>
-<td align="left">provided</td>
-<td align="left">-</td>
-<td align="left">provided</td>
-<td align="left">-</td></tr>
+<td style="text-align: left;">provided</td>
+<td style="text-align: left;">provided</td>
+<td style="text-align: left;">-</td>
+<td style="text-align: left;">provided</td>
+<td style="text-align: left;">-</td></tr>
<tr class="b">
-<td align="left">runtime</td>
-<td align="left">runtime</td>
-<td align="left">-</td>
-<td align="left">runtime</td>
-<td align="left">-</td></tr>
+<td style="text-align: left;">runtime</td>
+<td style="text-align: left;">runtime</td>
+<td style="text-align: left;">-</td>
+<td style="text-align: left;">runtime</td>
+<td style="text-align: left;">-</td></tr>
<tr class="a">
-<td align="left">test</td>
-<td align="left">test</td>
-<td align="left">-</td>
-<td align="left">test</td>
-<td align="left">-</td></tr></table>
+<td style="text-align: left;">test</td>
+<td style="text-align: left;">test</td>
+<td style="text-align: left;">-</td>
+<td style="text-align: left;">test</td>
+<td style="text-align: left;">-</td></tr></table>
<p><b>(*) Note:</b> it is intended that this should be runtime scope instead, so that all compile dependencies must be explicitly listed. However, if a library you depend on extends a class from another library, both must be available at compile time. For this reason, compile time dependencies remain as compile scope even when they are transitive.</p></section><section>
-<h2><a name="Dependency_Management">Dependency Management</a></h2>
+<h2><a id="Dependency_Management">Dependency Management</a></h2>
<p>The dependency management section is a mechanism for centralizing dependency information. When you have a set of projects that inherit from a common parent, it's possible to put all information about the dependency in the common POM and have simpler references to the artifacts in the child POMs. The mechanism is best illustrated through some examples. Given these two POMs which extend the same parent:</p>
<p>Project A:</p>
<div class="source"><pre class="prettyprint linenums">
@@ -455,7 +455,7 @@ Karl Heinz Marbaise" />
<li>b is defined in B's parent's dependency management section and since dependency management takes precedence over dependency mediation for transitive dependencies, version 1.0 will be selected should it be referenced in a or c's POM. b will also have compile scope.</li>
<li>Finally, since d is specified in B's dependency management section, should d be a dependency (or transitive dependency) of a or c, version 1.0 will be chosen - again because dependency management takes precedence over dependency mediation and also because the current POM's declaration takes precedence over its parent's declaration.</li></ul>
<p>The reference information about the dependency management tags is available from the <a href="../../ref/current/maven-model/maven.html#class_DependencyManagement">project descriptor reference</a>.</p><section>
-<h3><a name="Importing_Dependencies">Importing Dependencies</a></h3>
+<h3><a id="Importing_Dependencies">Importing Dependencies</a></h3>
<p>The examples in the previous section describe how to specify managed dependencies through inheritance. However, in larger projects it may be impossible to accomplish this since a project can only inherit from a single parent. To accommodate this, projects can import managed dependencies from other projects. This is accomplished by declaring a POM artifact as a dependency with a scope of "import".</p>
<p>Project B:</p>
<div class="source"><pre class="prettyprint linenums">
@@ -586,7 +586,7 @@ Karl Heinz Marbaise" />
</pre></div>
<p>In the example above Z imports the managed dependencies from both X and Y. However, both X and Y contain dependency a. Here, version 1.1 of a would be used since X is declared first and a is not declared in Z's dependencyManagement.</p>
<p>This process is recursive. For example, if X imports another POM, Q, when Z is processed it will simply appear that all of Q's managed dependencies are defined in X.</p></section><section>
-<h3><a name="Bill_of_Materials_.28BOM.29_POMs"></a><a name="Bill_of_Materials_BOM_POMs">Bill of Materials (BOM) POMs</a></h3>
+<h3><a id="Bill_of_Materials_BOM_POMs">Bill of Materials (BOM) POMs</a></h3>
<p>Imports are most effective when used for defining a "library" of related artifacts that are generally part of a multiproject build. It is fairly common for one project to use one or more artifacts from these libraries. However, it has sometimes been difficult to keep the versions in the project using the artifacts in synch with the versions distributed in the library. The pattern below illustrates how a "bill of materials" (BOM) can be created for use by other projects.</p>
<p>The root of the project is the BOM POM. It defines the versions of all the artifacts that will be created in the library. Other projects that wish to use the library should import this POM into the dependencyManagement section of their POM.</p>
<div class="source"><pre class="prettyprint linenums">
@@ -739,7 +739,7 @@ Karl Heinz Marbaise" />
<li>Do not attempt to import a POM that is defined in a submodule of the current POM. Attempting to do that will result in the build failing since it won't be able to locate the POM.</li>
<li>Never declare the POM importing a POM as the parent (or grandparent, etc) of the target POM. There is no way to resolve the circularity and an exception will be thrown.</li>
<li>When referring to artifacts whose POMs have transitive dependencies, the project needs to specify versions of those artifacts as managed dependencies. Not doing so results in a build failure since the artifact may not have a version specified. (This should be considered a best practice in any case as it keeps the versions of artifacts from changing from one build to the next).</li></ul></section></section><section>
-<h2><a name="System_Dependencies">System Dependencies</a></h2>
+<h2><a id="System_Dependencies">System Dependencies</a></h2>
<p><code>Important note: This is deprecated.</code></p>
<p>Dependencies with the scope <i>system</i> are always available and are not looked up in repository. They are usually used to tell Maven about dependencies which are provided by the JDK or the VM. Thus, system dependencies are especially useful for resolving dependencies on artifacts which are now provided by the JDK, but were available as separate downloads earlier. Typical examples are the JDBC standard extensions or the Java Authentication and Authorization Service (JAAS).</p>
<p>A simple example would be:</p>
Modified: maven/website/content/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-optional-and-excludes-dependencies.html (original)
+++ maven/website/content/guides/introduction/introduction-to-optional-and-excludes-dependencies.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-optional-and-excludes-dependencies.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-optional-and-excludes-dependencies.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="Allan Ramirez" />
<meta name="date" content="2006-01-23" />
<title>Maven – Optional Dependencies and Dependency Exclusions</title>
@@ -149,14 +149,14 @@
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction"></a>Introduction</h1>
+<h1>Introduction</h1>
<p>This section discusses optional dependencies and dependency exclusions. This will help users to understand what they are and when and how to use them. It also explains why exclusions are made on a per dependency basis instead of at the POM level.</p><section>
-<h2><a name="Optional_Dependencies"></a>Optional Dependencies</h2>
+<h2>Optional Dependencies</h2>
<p>Optional dependencies are used when it's not possible (for whatever reason) to split a project into sub-modules. The idea is that some of the dependencies are only used for certain features in the project and will not be needed if that feature isn't used. Ideally, such a feature would be split into a sub-module that depends on the core functionality project. This new subproject would have only non-optional dependencies, since you'd need them all if you decided to use the subproject's functionality. </p>
<p>However, since the project cannot be split up (again, for whatever reason), these dependencies are declared optional. If a user wants to use functionality related to an optional dependency, they have to redeclare that optional dependency in their own project. This is not the clearest way to handle this situation, but both optional dependencies and dependency exclusions are stop-gap solutions.</p><section>
-<h3><a name="Why_use_optional_dependencies.3F"></a>Why use optional dependencies?</h3>
+<h3>Why use optional dependencies?</h3>
<p>Optional dependencies save space and memory. They prevent problematic jars that violate a license agreement or cause classpath issues from being bundled into a WAR, EAR, fat jar, or the like. </p></section><section>
-<h3><a name="How_do_I_use_the_optional_tag.3F"></a>How do I use the optional tag?</h3>
+<h3>How do I use the optional tag?</h3>
<p>A dependency is declared optional by setting the <code><optional></code> element to true in its dependency declaration:</p>
<div class="source"><pre class="prettyprint linenums">
<project>
@@ -173,7 +173,7 @@
</dependencies>
</project>
</pre></div></section><section>
-<h3><a name="How_do_optional_dependencies_work.3F"></a>How do optional dependencies work?</h3>
+<h3>How do optional dependencies work?</h3>
<div>
<pre>
Project-A -> Project-B
@@ -184,11 +184,11 @@ Project-A -> Project-B
Project-X -> Project-A
</pre></div>
<p>When another project (Project-X) declares Project-A as a dependency in its POM, the optional nature of the dependency takes effect. Project-B is not included in the classpath of Project-X. You need to declare it directly in the POM of Project X for B to be included in X's classpath.</p></section><section>
-<h3><a name="Example"></a>Example</h3>
+<h3>Example</h3>
<p>Suppose there is a project named <i>X2</i> that has similar functionality to <i>Hibernate</i>. It supports many databases such as MySQL, PostgreSQL, and several versions of Oracle. Each supported database requires an additional dependency on a driver jar. All of these dependencies are needed at compile time to build X2. However your project only uses one specific database and doesn't need drivers for the others. X2 can declare these dependencies as optional, so that when your project declares X2 as a direct dependency in its POM, all the drivers supported by the X2 are not automatically included in your project's classpath. Your project will have to include an explicit dependency on the specific driver for the one database it does use.</p></section></section><section>
-<h2><a name="Dependency_Exclusions"></a>Dependency Exclusions</h2>
+<h2>Dependency Exclusions</h2>
<p>Since Maven resolves dependencies transitively, it is possible for unwanted dependencies to be included in your project's classpath. For example, a certain older jar may have security issues or be incompatible with the Java version you're using. To address this, Maven allows you to exclude specific dependencies. Exclusions are set on a specific dependency in your POM, and are targeted at a specific groupId and artifactId. When you build your project, that artifact will not be added to your project's classpath <i>by way of the dependency in which the exclusion was declared</i>.</p><section>
-<h3><a name="How_to_use_dependency_exclusions"></a>How to use dependency exclusions</h3>
+<h3>How to use dependency exclusions</h3>
<p>Add an <code><exclusions></code> element in the <code><dependency></code> element by which the problematic jar is included.</p>
<div class="source"><pre class="prettyprint linenums">
<project>
@@ -209,7 +209,7 @@ Project-X -> Project-A
</dependencies>
</project>
</pre></div></section><section>
-<h3><a name="How_dependency_exclusion_works_and_when_to_use_it_.28_as_a_last_resort.21_.29"></a>How dependency exclusion works and when to use it <b>( as a last resort! )</b></h3>
+<h3>How dependency exclusion works and when to use it <b>( as a last resort! )</b></h3>
<div>
<pre>
Project-A
@@ -302,7 +302,7 @@ Project-A
</dependencies>
</project>
</pre></div></section><section>
-<h3><a name="Why_exclusions_are_made_on_a_per-dependency_basis.2C_rather_than_at_the_POM_level"></a>Why exclusions are made on a per-dependency basis, rather than at the POM level</h3>
+<h3>Why exclusions are made on a per-dependency basis, rather than at the POM level</h3>
<p>This is mainly to be sure the dependency graph is predictable, and to keep inheritance effects from excluding a dependency that should not be excluded. If you get to the method of last resort and have to put in an exclusion, you should be absolutely certain which of your dependencies is bringing in that unwanted transitive dependency.</p>
<p>If you truly want to ensure that a particular dependency appears nowhere in your classpath, regardless of path, the <a href="/enforcer/enforcer-rules/bannedDependencies.html">banned dependencies rule</a> can be configured to fail the build if a problematic dependency is found. When the build fails, you'll need to add specific exclusions on each path the enforcer finds. </p></section></section></section>
</main>
Modified: maven/website/content/guides/introduction/introduction-to-plugin-prefix-mapping.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-plugin-prefix-mapping.html (original)
+++ maven/website/content/guides/introduction/introduction-to-plugin-prefix-mapping.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-plugin-prefix-mapping.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-plugin-prefix-mapping.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="John Casey" />
<meta name="date" content="2009-08-01" />
<title>Maven – Introduction to Plugin Prefix Resolution</title>
@@ -142,11 +142,11 @@
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction_to_Plugin_Prefix_Resolution"></a>Introduction to Plugin Prefix Resolution</h1>
+<h1>Introduction to Plugin Prefix Resolution</h1>
<p>When you execute Maven using a standard lifecycle phase, resolving the plugins that participate in that lifecycle is a relatively simple process. However, when you directly invoke a mojo from the command line, as in the case of <b>clean</b>, Maven must have some way of reliably resolving the <b>clean</b> plugin prefix to the <b>maven-clean-plugin</b>. This provides brevity for command-line invocations, while preserving the descriptiveness of the plugin's real artifactId.</p>
<p>To complicate matters even more, not all plugins should be forced to have the same groupId in the repository. Since groupIds are presumed to be controlled by one project, and multiple projects may release plugins for Maven, it follows that plugin-prefix mappings must also accommodate multiple plugin groupIds.</p>
<p>To address these concerns, Maven provides a new piece of repository-level metadata (not associated with any single artifact) for plugin groups, along with a plugin mapping manager to organize multiple plugin groups and provide search functionality.</p><section>
-<h2><a name="Specifying_a_Plugin.27s_Prefix"></a>Specifying a Plugin's Prefix</h2>
+<h2>Specifying a Plugin's Prefix</h2>
<p>In order to give users a convenient prefix with which to reference your plugin a prefix must be associated with your plugin when it is built. By default, Maven will make a guess at the plugin-prefix to be used, by removing any instances of "maven" or "plugin" surrounded by hyphens in the plugin's artifact ID. The conventional artifact ID formats to use are:</p>
<ul>
<li><code>maven-${prefix}-plugin</code> - for official plugins maintained by the Apache Maven team itself (you <b>must not</b> use this naming pattern for your plugin, see <a href="../plugin/guide-java-plugin-development.html#Plugin_Naming_Convention_and_Apache_Maven_Trademark">this note for more informations</a>)</li>
@@ -172,14 +172,14 @@
<p>The above configuration will allow users to refer to your plugin by the prefix <b>somePrefix</b>, as in the following example:</p>
<div>
<pre>mvn somePrefix:goal</pre></div></section><section>
-<h2><a name="Mapping_Prefixes_to_Plugins"></a>Mapping Prefixes to Plugins</h2>
+<h2>Mapping Prefixes to Plugins</h2>
<p>For each groupId configured for searching, Maven will:</p>
<ol style="list-style-type: decimal">
<li>Download <code>maven-metadata.xml</code> from each remote repository into the local repository, and name it <code>maven-metadata-${repoId}.xml</code> within the path of ${groupId}.</li>
<li>Load these metadata files, along with <code>maven-metadata-local.xml</code> (if it exists), within the path of ${groupId}. Merge them.</li>
<li>Lookup the plugin prefix in the merged metadata. If it's mapped, it should refer to a concrete groupId-artifactId pair. Otherwise, go on to #1 for the next groupId in the user's plugin-groups.</li></ol>
<p>These metadata files consist of the <b>groupId</b> it represents (for clarity when the file is opened outside the context of the directory), and a group of <b>plugin</b> elements. Each <b>plugin</b> in this list contains a <b>prefix</b> element denoting the plugin's command-line prefix, and an <b>artifactId</b> element, which provides the other side of the prefix mapping and provides enough information to lookup and use the plugin. When a plugin is installed or deployed, the appropriate metadata file is located - and if the prefix mapping is missing - modified to include the plugin-prefix mapping.</p></section><section>
-<h2><a name="Configuring_Maven_to_Search_for_Plugins"></a>Configuring Maven to Search for Plugins</h2>
+<h2>Configuring Maven to Search for Plugins</h2>
<p>By default, Maven will search the groupId <b>org.apache.maven.plugins</b> for prefix-to-artifactId mappings for the plugins it needs to perform a given build. However, as previously mentioned, the user may have a need for third-party plugins. Since the Maven project is assumed to have control over the default plugin groupId, this means configuring Maven to search other groupId locations for plugin-prefix mappings.</p>
<p>As it turns out, this is simple. In the Maven settings file (per-user: <code>${user.home}/.m2/settings.xml</code>; global: <code>${maven.home}/conf/settings.xml</code>), you can provide a custom <b>pluginGroups</b> section, listing the plugin groupIds you want to search (each groupId goes in its own <b>pluginGroup</b> sub-element). For example, if my project uses a Modello model file, I might have the following in my settings:</p>
<div class="source"><pre class="prettyprint linenums"><pluginGroups>
@@ -194,8 +194,8 @@
<li>org.codehaus.mojo</li></ul>
<p><b>NOTE:</b> When specifying plugin groups to be used in searching for a prefix mapping, order is critical! By specifying a pluginGroup of <code>com.myco.plugins</code> with a prefix of <code>clean</code>, I can override the usage of the <code>maven-clean-plugin</code> when <code>clean:clean</code> is invoked.</p>
<p><b>NOTE2:</b> For more information on <code>settings.xml</code>, see [<a href="#a1">1</a>].</p></section><section>
-<h2><a name="Resources"></a>Resources</h2>
-<p><a name="a1">1</a> <a href="../mini/guide-configuring-maven.html">Guide to Configuring Maven</a></p></section></section>
+<h2>Resources</h2>
+<p><a id="a1">1</a> <a href="../mini/guide-configuring-maven.html">Guide to Configuring Maven</a></p></section></section>
</main>
</div>
</div>
Modified: maven/website/content/guides/introduction/introduction-to-plugins.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-plugins.html (original)
+++ maven/website/content/guides/introduction/introduction-to-plugins.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-plugins.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-plugins.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="John Casey" />
<meta name="date" content="2005-06-24" />
<title>Maven – Introduction to Maven Plugin Development</title>
@@ -137,18 +137,18 @@
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction_to_Maven_Plugin_Development"></a>Introduction to Maven Plugin Development</h1>
+<h1>Introduction to Maven Plugin Development</h1>
<p>Maven consists of a core engine which provides basic project-processing capabilities and build-process management, and a host of plugins which are used to execute the actual build tasks.</p><section>
-<h2><a name="What_is_a_Plugin.3F"></a>What is a Plugin?</h2>
+<h2>What is a Plugin?</h2>
<p>"Maven" is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on. Almost any action that you can think of performing on a project is implemented as a Maven plugin.</p>
<p>Plugins are the central feature of Maven that allow for the reuse of common build logic across multiple projects. They do this by executing an "action" (i.e. creating a WAR file or compiling unit tests) in the context of a project's description - the Project Object Model (POM). Plugin behavior can be customized through a set of unique parameters which are exposed by a description of each plugin goal (or Mojo).</p>
<p>One of the simplest plugins in Maven is the Clean Plugin. The <a href="../../plugins/maven-clean-plugin/">Maven Clean plugin</a> (maven-clean-plugin) is responsible for removing the target directory of a Maven project. When you run "mvn clean", Maven executes the "clean" goal as defined in the Clean plug-in, and the target directory is removed. The Clean plugin <a href="../../plugins/maven-clean-plugin/clean-mojo.html">defines a parameter</a> which can be used to customize plugin behavior, this parameter is called outputDirectory and it defaults to ${project.build.directory}.</p></section><section>
-<h2><a name="What_is_a_Mojo_.28And_Why_the_H---_is_it_Named_.27Mojo.27.29.3F"></a>What is a Mojo (<i>And Why the H--- is it Named 'Mojo'</i>)?</h2>
+<h2>What is a Mojo (<i>And Why the H--- is it Named 'Mojo'</i>)?</h2>
<p>A Mojo is really just a <b>goal</b> in Maven, and plug-ins consist of any number of goals (Mojos). Mojos can be defined as annotated Java classes or Beanshell script. A Mojo specifies metadata about a goal: a goal name, which phase of the lifecycle it fits into, and the parameters it is expecting.</p>
<p>MOJO is a play on POJO (Plain-old-Java-object), substituting "Maven" for "Plain". Mojo is also an interesting word (see <a class="externalLink" href="http://www.answers.com/mojo&r=67">definition</a>). From <a class="externalLink" href="http://www.wikipedia.org">Wikipedia</a>, a "mojo" is defined as: "...a small bag worn by a person under the clothes (also known as a mojo hand). Such bags were thought to have supernatural powers, such as protecting from evil, bringing good luck, etc."</p></section><section>
-<h2><a name="What_is_the_Build_Lifecycle.3F_.28Overview.29"></a>What is the Build Lifecycle? (Overview)</h2>
+<h2>What is the Build Lifecycle? (Overview)</h2>
<p>The build lifecycle is a series of common <b>stage</b>s through which all project builds naturally progress. Plugin goals are bound to specific stages in the lifecycle.</p></section></section><section>
-<h1><a name="Resources"></a>Resources</h1>
+<h1>Resources</h1>
<ol style="list-style-type: decimal">
<li><a href="/plugin-developers/index.html">Plugin Development Center</a></li>
<li><a href="../mini/guide-configuring-plugins.html">Configuring plugins</a></li></ol></section>
Modified: maven/website/content/guides/introduction/introduction-to-profiles.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-profiles.html (original)
+++ maven/website/content/guides/introduction/introduction-to-profiles.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-profiles.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-profiles.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="John Casey/Allan Ramirez" />
<meta name="date" content="2008-01-01" />
<title>Maven – Introduction to build profiles</title>
@@ -146,7 +146,7 @@
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction_to_Build_Profiles"></a>Introduction to Build Profiles</h1>
+<h1>Introduction to Build Profiles</h1>
<ul>
<li><a href="#What_are_the_different_types_of_profile.3F_Where_is_each_defined.3F">What are the different types of profile? Where is each defined?</a></li>
<li><a href="#How_can_a_profile_be_triggered.3F_How_does_this_vary_according_to_the_type_of_profile_being_used.3F">How can a profile be triggered? How does this vary according to the type of profile being used?</a>
@@ -176,7 +176,7 @@
<p>Apache Maven goes to great lengths to ensure that builds are portable. Among other things, this means allowing build configuration inside the POM, avoiding <b>all</b> filesystem references (in inheritance, dependencies, and other places), and leaning much more heavily on the local repository to store the metadata needed to make this possible.</p>
<p>However, sometimes portability is not entirely possible. Under certain conditions, plugins may need to be configured with local filesystem paths. Under other circumstances, a slightly different dependency set will be required, and the project's artifact name may need to be adjusted slightly. And at still other times, you may even need to include a whole plugin in the build lifecycle depending on the detected build environment.</p>
<p>To address these circumstances, Maven supports build profiles. Profiles are specified using a subset of the elements available in the POM itself (plus one extra section), and are triggered in any of a variety of ways. They modify the POM at build time, and are meant to be used in complementary sets to give equivalent-but-different parameters for a set of target environments (providing, for example, the path of the appserver root in the development, testing, and production environments). As such, profiles can easily lead to differing build results from different members of your team. However, used properly, profiles can be used while still preserving project portability. This will also minimize the use of <code>-f</code> option of maven which allows user to create another POM with different parameters or configuration to build which makes it more maintainable since it is running with one POM only.</p><section>
-<h2><a name="What_are_the_different_types_of_profile.3F_Where_is_each_defined.3F"></a>What are the different types of profile? Where is each defined?</h2>
+<h2>What are the different types of profile? Where is each defined?</h2>
<ul>
<li>Per Project
<p>- Defined in the POM itself <code>(pom.xml)</code>.</p></li>
@@ -186,7 +186,7 @@
<p>- Defined in the <a href="/ref/current/maven-settings/settings.html"> global Maven-settings</a> <code>(${maven.home}/conf/settings.xml)</code>.</p></li>
<li>Profile descriptor
<p>- a descriptor located in <a href="/ref/2.2.1/maven-profile/profiles.html">project basedir <code>(profiles.xml)</code></a> (no longer supported in Maven 3.0 and above; see <a class="externalLink" href="https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-profiles.xml"> Maven 3 compatibility notes</a>)</p></li></ul></section><section>
-<h2><a name="How_can_a_profile_be_triggered.3F_How_does_this_vary_according_to_the_type_of_profile_being_used.3F"></a>How can a profile be triggered? How does this vary according to the type of profile being used?</h2>
+<h2>How can a profile be triggered? How does this vary according to the type of profile being used?</h2>
<p>A profile can be activated in several ways:</p>
<ul>
<li>Explicitly</li>
@@ -195,8 +195,8 @@
<li>Based on system properties</li>
<li>Based on presence of files</li></ul>
<p>Refer to the sections below for details.</p><section>
-<h3><a name="Details_on_profile_activation"></a>Details on profile activation</h3><section>
-<h4><a name="Explicit_profile_activation"></a>Explicit profile activation</h4>
+<h3>Details on profile activation</h3><section>
+<h4>Explicit profile activation</h4>
<p>Profiles can be explicitly specified using the <code>-P</code> command line flag.</p>
<p>This flag is followed by a comma-delimited list of profile IDs to use. The profile(s) specified in the option are activated in addition to any profiles which are activated by their activation configuration or the <code><activeProfiles></code> section in <code>settings.xml</code>. From Maven 4 onward, Maven will refuse to activate or deactivate a profile that cannot be resolved. To prevent this, prefix the profile identifier with an <code>?</code>, marking it as optional:</p>
<div>
@@ -210,9 +210,9 @@
...
</settings></pre></div>
<p>Profiles listed in the <code><activeProfiles></code> tag would be activated by default every time a project use it.</p></section><section>
-<h4><a name="Implicit_profile_activation"></a>Implicit profile activation</h4>
+<h4>Implicit profile activation</h4>
<p>Profiles can be automatically triggered based on the detected state of the build environment. These triggers are specified via an <code><activation></code> section in the profile itself. Currently, this detection is limited to JDK version matching, operating system matching or the presence/the value of a system property. Here are some examples.</p><section>
-<h5><a name="JDK"></a>JDK</h5>
+<h5>JDK</h5>
<p>The following configuration will trigger the profile when the JDK's version <i>starts with</i> "1.4" (eg. "1.4.0_08", "1.4.2_07", "1.4"), in particular it <i>won't be active</i> for <b>newer</b> versions like "1.8" or "11":</p>
<div class="source"><pre class="prettyprint linenums"><profiles>
<profile>
@@ -232,7 +232,7 @@
</profile>
</profiles></pre></div>
<p><i>Note:</i> an upper bound such as <code>,1.5]</code> is likely not to include most releases of 1.5, since they will have an additional "patch" release such as <code>_05</code> that is not taken into consideration in the above range.</p></section><section>
-<h5><a name="OS"></a>OS</h5>
+<h5>OS</h5>
<p>This next one will activate based on the detected operating system. See the <a href="/enforcer/enforcer-rules/requireOS.html">Maven Enforcer Plugin</a> for more details about OS values.</p>
<div class="source"><pre class="prettyprint linenums"><profiles>
<profile>
@@ -247,7 +247,7 @@
...
</profile>
</profiles></pre></div></section><section>
-<h5><a name="Property"></a>Property</h5>
+<h5>Property</h5>
<p>The profile below will be activated when the system property "debug" is specified with any value:</p>
<div class="source"><pre class="prettyprint linenums"><profiles>
<profile>
@@ -315,7 +315,7 @@ mvn groupId:artifactId:goal -Ddebug=fals
...
</profile>
</profiles></pre></div></section><section>
-<h5><a name="Files"></a>Files</h5>
+<h5>Files</h5>
<p>This example will trigger the profile when the generated file <code>target/generated-sources/axistools/wsdl2java/org/apache/maven</code> is missing.</p>
<div class="source"><pre class="prettyprint linenums"><profiles>
<profile>
@@ -339,7 +339,7 @@ mvn groupId:artifactId:goal -Ddebug=fals
</profile>
</profiles></pre></div>
<p>This profile will automatically be active for all builds unless another profile in the same POM is activated using one of the previously described methods. All profiles that are active by default are automatically deactivated when a profile in the POM is activated on the command line or through its activation config.</p></section></section></section><section>
-<h3><a name="Deactivating_a_profile"></a>Deactivating a profile</h3>
+<h3>Deactivating a profile</h3>
<p>Starting with Maven 2.0.10, one or more profiles can be deactivated using the command line by prefixing their identifier with either the character '!' or '-' as shown below:</p>
<div>
<pre>mvn groupId:artifactId:goal -P !profile-1,!profile-2,!?profile-3</pre></div>
@@ -347,13 +347,13 @@ mvn groupId:artifactId:goal -Ddebug=fals
<div>
<pre>mvn groupId:artifactId:goal -P -profile-1,-profile-2,-?profile-3</pre></div>
<p>This can be used to deactivate profiles marked as activeByDefault or profiles that would otherwise be activated through their activation config.</p></section></section><section>
-<h2><a name="Which_areas_of_a_POM_can_be_customized_by_each_type_of_profile.3F_Why.3F"></a>Which areas of a POM can be customized by each type of profile? Why?</h2>
+<h2>Which areas of a POM can be customized by each type of profile? Why?</h2>
<p>Now that we've talked about where to specify profiles, and how to activate them, it will be useful to talk about <i>what</i> you can specify in a profile. As with the other aspects of profile configuration, this answer is not straightforward.</p>
<p>Depending on where you choose to configure your profile, you will have access to varying POM configuration options.</p><section>
-<h3><a name="Profiles_in_external_files"></a>Profiles in external files</h3>
+<h3>Profiles in external files</h3>
<p>Profiles specified in external files (i.e in <code>settings.xml</code> or <code>profiles.xml</code>) are not portable in the strictest sense. Anything that seems to stand a high chance of changing the result of the build is restricted to the inline profiles in the POM. Things like repository lists could simply be a proprietary repository of approved artifacts, and won't change the outcome of the build. Therefore, you will only be able to modify the <code><repositories></code> and <code><pluginRepositories></code> sections, plus an extra <code><properties></code> section.</p>
<p>The <code><properties></code> section allows you to specify free-form key-value pairs which will be included in the interpolation process for the POM. This allows you to specify a plugin configuration in the form of <code>${profile.provided.path}</code>.</p></section><section>
-<h3><a name="Profiles_in_POMs"></a>Profiles in POMs</h3>
+<h3>Profiles in POMs</h3>
<p>On the other hand, if your profiles can be reasonably specified <i>inside</i> the POM, you have many more options. The trade-off, of course, is that you can only modify <i>that</i> project and its sub-modules. Since these profiles are specified inline, and therefore have a better chance of preserving portability, it's reasonable to say you can add more information to them without the risk of that information being unavailable to other users.</p>
<p>Profiles specified in the POM can modify <a href="/ref/current/maven-model/maven.html">the following POM elements</a>:</p>
<ul>
@@ -377,10 +377,10 @@ mvn groupId:artifactId:goal -Ddebug=fals
<li><code><filters></code></li>
<li><code><pluginManagement></code></li>
<li><code><plugins></code></li></ul></li></ul></section><section>
-<h3><a name="POM_elements_outside_.3Cprofiles.3E"></a>POM elements outside <profiles></h3>
+<h3>POM elements outside <profiles></h3>
<p>We don't allow modification of some POM elements outside of POM-profiles because these runtime modifications will not be distributed when the POM is deployed to the repository system, making that person's build of that project completely unique from others. While you can do this to some extent with the options given for external profiles, the danger is limited. Another reason is that this POM info is sometimes being reused from the parent POM.</p>
<p>External files such as <code>settings.xml</code> and <code>profiles.xml</code> also does not support elements outside the POM-profiles. Let us take this scenario for elaboration. When the effective POM get deployed to a remote repository, any person can pickup its info out of the repository and use it to build a Maven project directly. Now, imagine that if we can set profiles in dependencies, which is very important to a build, or in any other elements outside POM-profiles in <code>settings.xml</code> then most probably we cannot expect someone else to use that POM from the repository and be able to build it. And we have to also think about how to share the <code>settings.xml</code> with others. Note that too many files to configure is very confusing and very hard to maintain. Bottom line is that since this is build data, it should be in the POM. One of the goals in Maven 2 is to consolidate all the information needed to run a build into a single file, or file hierarchy which is
the POM.</p></section></section><section>
-<h2><a name="Profile_Order"></a>Profile Order</h2>
+<h2>Profile Order</h2>
<p>All profile elements in a POM from active profiles overwrite the global elements with the same name of the POM or extend those in case of collections. In case multiple profiles are active in the same POM or external file, the ones which are defined <b>later</b> take precedence over the ones defined <b>earlier</b> (independent of their profile id and activation order).</p>
<p>Example:</p>
<div class="source"><pre class="prettyprint linenums"><project>
@@ -422,10 +422,10 @@ mvn groupId:artifactId:goal -Ddebug=fals
...
</project></pre></div>
<p>This leads to the repository list: <code>profile-2-repo, profile-1-repo, global-repo</code>.</p></section><section>
-<h2><a name="Profile_Pitfalls"></a>Profile Pitfalls</h2>
+<h2>Profile Pitfalls</h2>
<p>We've already mentioned the fact that adding profiles to your build has the potential to break portability for your project. We've even gone so far as to highlight circumstances where profiles are likely to break project portability. However, it's worth reiterating those points as part of a more coherent discussion about some pitfalls to avoid when using profiles.</p>
<p>There are two main problem areas to keep in mind when using profiles. First are external properties, usually used in plugin configurations. These pose the risk of breaking portability in your project. The other, more subtle area is the incomplete specification of a natural set of profiles.</p><section>
-<h3><a name="External_Properties"></a>External Properties</h3>
+<h3>External Properties</h3>
<p>External property definition concerns any property value defined outside the <code>pom.xml</code> but not defined in a corresponding profile inside it. The most obvious usage of properties in the POM is in plugin configuration. While it is certainly possible to break project portability without properties, these critters can have subtle effects that cause builds to fail. For example, specifying appserver paths in a profile that is specified in the <code>settings.xml</code> may cause your integration test plugin to fail when another user on the team attempts to build without a similar <code>settings.xml</code>. Consider the following <code>pom.xml</code> snippet for a web application project:</p>
<div class="source"><pre class="prettyprint linenums"><project>
...
@@ -465,7 +465,7 @@ mvn groupId:artifactId:goal -Ddebug=fals
<p><i>However</i>, when your colleague attempts to build to <b>integration-test</b>, his build fails spectacularly, complaining that it cannot resolve the plugin configuration parameter <code><appserverHome></code>, or worse, that the value of that parameter - literally <code>${appserver.home}</code> - is invalid (if it warns you at all).</p>
<p>Congratulations, your project is now non-portable. Inlining this profile in your <code>pom.xml</code> can help alleviate this, with the obvious drawback that each project hierarchy (allowing for the effects of inheritance) now have to specify this information. Since Maven provides good support for project inheritance, it's possible to stick this sort of configuration in the <code><pluginManagement></code> section of a team-level POM or similar, and simply inherit the paths.</p>
<p>Another, less attractive answer might be standardization of development environments. However, this will tend to compromise the productivity gain that Maven is capable of providing.</p></section><section>
-<h3><a name="Incomplete_Specification_of_a_Natural_Profile_Set"></a>Incomplete Specification of a Natural Profile Set</h3>
+<h3>Incomplete Specification of a Natural Profile Set</h3>
<p>In addition to the above portability-breaker, it's easy to fail to cover all cases with your profiles. When you do this, you're usually leaving one of your target environments high and dry. Let's take the example <code>pom.xml</code> snippet from above one more time:</p>
<div class="source"><pre class="prettyprint linenums"><project>
...
@@ -527,7 +527,7 @@ mvn groupId:artifactId:goal -Ddebug=fals
<pre>mvn -Denv=production integration-test</pre></div>
<p>will not do a successful build. Why? Because, the resulting non-interpolated literal value of <code>${appserver.home}</code> will not be a valid path for deploying and testing your web application. We haven't considered the case for the production environment when writing our profiles. The "production" environment (env=production), along with "test" and possibly even "local" constitute a natural set of target environments for which we may want to build the integration-test lifecycle phase. The incomplete specification of this natural set means we have effectively limited our valid target environments to the development environment. Your teammates - and probably your manager - will not see the humor in this. When you construct profiles to handle cases such as these, be sure to address the entire set of target permutations.</p>
<p>As a quick aside, it's possible for user-specific profiles to act in a similar way. This means that profiles for handling different environments which are keyed to the user can act up when the team adds a new developer. While I suppose this <i>could</i> act as useful training for the newbie, it just wouldn't be nice to throw them to the wolves in this way. Again, be sure to think of the <i>whole</i> set of profiles.</p></section></section><section>
-<h2><a name="How_can_I_tell_which_profiles_are_in_effect_during_a_build.3F"></a>How can I tell which profiles are in effect during a build?</h2>
+<h2>How can I tell which profiles are in effect during a build?</h2>
<p>Determining active profiles will help the user to know what particular profiles has been executed during a build. We can use the <a href="/plugins/maven-help-plugin/">Maven Help Plugin</a> to tell what profiles are in effect during a build.</p>
<div>
<pre> mvn help:active-profiles</pre></div>
@@ -563,7 +563,7 @@ mvn groupId:artifactId:goal -Ddebug=fals
<pre> mvn help:effective-pom -P appserverConfig-dev</pre></div>
<p>This will print the effective POM for this build configuration out to the console. Take note that profiles in the <code>settings.xml</code> takes higher priority than profiles in the POM. So the profile that has been applied here is <code>appserverConfig</code> not <code>appserverConfig-dev</code>.</p>
<p>If you want to redirect the output from the plugin to a file called <code>effective-pom.xml</code>, use the command-line option <code>-Doutput=effective-pom.xml</code>.</p></section><section>
-<h2><a name="Naming_Conventions"></a>Naming Conventions</h2>
+<h2>Naming Conventions</h2>
<p>By now you've noticed that profiles are a natural way of addressing the problem of different build configuration requirements for different target environments. Above, we discussed the concept of a "natural set" of profiles to address this situation, and the importance of considering the whole set of profiles that will be required.</p>
<p>However, the question of how to organize and manage the evolution of that set is non-trivial as well. Just as a good developer strives to write self-documenting code, it's important that your profile id's give a hint to their intended use. One good way to do this is to use the common system property trigger as part of the name for the profile. This might result in names like <b>env-dev</b>, <b>env-test</b>, and <b>env-prod</b> for profiles that are triggered by the system property <b>env</b>. Such a system leaves a highly intuitive hint on how to activate a build targeted at a particular environment. Thus, to activate a build for the test environment, you need to activate <b>env-test</b> by issuing:</p>
<div>
Modified: maven/website/content/guides/introduction/introduction-to-repositories.html
==============================================================================
--- maven/website/content/guides/introduction/introduction-to-repositories.html (original)
+++ maven/website/content/guides/introduction/introduction-to-repositories.html Wed Feb 8 20:32:12 2023
@@ -2,14 +2,14 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M3 from content/apt/guides/introduction/introduction-to-repositories.apt at 2023-02-08
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M4 from content/apt/guides/introduction/introduction-to-repositories.apt at 2023-02-08
| Rendered using Apache Maven Fluido Skin 1.11.1
-->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<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-M3" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M4" />
<meta name="author" content="Jason van Zyl
Brian Fox" />
<meta name="date" content="2008-05-13" />
@@ -154,42 +154,42 @@ Brian Fox" />
</header>
<main id="bodyColumn" class="span10" >
<section>
-<h1><a name="Introduction_to_Repositories"></a>Introduction to Repositories</h1><section>
-<h2><a name="Artifact_Repositories"></a>Artifact Repositories</h2>
+<h1>Introduction to Repositories</h1><section>
+<h2>Artifact Repositories</h2>
<p>A repository in Maven holds build artifacts and dependencies of varying types.</p>
<p>There are exactly two types of repositories: <b>local</b> and <b>remote</b>:</p>
<ol style="list-style-type: decimal">
<li>the <b>local</b> repository is a directory on the computer where Maven runs. It caches remote downloads and contains temporary build artifacts that you have not yet released.</li>
<li><b>remote</b> repositories refer to any other type of repository, accessed by a variety of protocols such as <code>file://</code> and <code>https://</code>. These repositories might be a truly remote repository set up by a third party to provide their artifacts for downloading (for example, <a class="externalLink" href="https://repo.maven.apache.org/maven2/">repo.maven.apache.org</a>). Other "remote" repositories may be internal repositories set up on a file or HTTP server within your company, used to share private artifacts between development teams and for releases.</li></ol>
<p>Local and remote repositories are structured the same way so that scripts can run on either side, or they can be synced for offline use. The layout of the repositories is completely transparent to the Maven user, however.</p></section><section>
-<h2><a name="Using_Repositories"></a>Using Repositories</h2>
+<h2>Using Repositories</h2>
<p>In general, you should not need to do anything with the local repository on a regular basis, except clean it out if you are short on disk space (or erase it completely if you are willing to download everything again).</p>
<p>For the remote repositories, they are used for both downloading and uploading (if you have the permission to do so).</p><section>
-<h3><a name="Downloading_from_a_Remote_Repository"></a>Downloading from a Remote Repository</h3>
+<h3>Downloading from a Remote Repository</h3>
<p>Downloading in Maven is triggered by a project declaring a dependency that is not present in the local repository (or for a <code>SNAPSHOT</code>, when the remote repository contains one that is newer). By default, Maven will download from the <a class="externalLink" href="https://repo.maven.apache.org/maven2/">central</a> repository.</p>
<p>To override this, you need to specify a <code>mirror</code> as shown in <a href="../mini/guide-mirror-settings.html">Using Mirrors for Repositories</a>.</p>
<p>You can set this in your <code>settings.xml</code> file to globally use a certain mirror. However, it is common for a project to <a href="../mini/guide-multiple-repositories.html">customise the repository in its <code>pom.xml</code></a> and that your setting will take precedence. If dependencies are not being found, check that you have not overridden the remote repository.</p>
<p>For more information on dependencies, see <a href="./introduction-to-dependency-mechanism.html">Dependency Mechanism</a>.</p></section><section>
-<h3><a name="Using_Mirrors_for_the_Central_Repository"></a>Using Mirrors for the Central Repository</h3>
+<h3>Using Mirrors for the Central Repository</h3>
<p>There are <a href="/repository/">several official Central repositories</a> geographically distributed. You can make changes to your <code>settings.xml</code> file to use one or more mirrors. Instructions for this can be found in the guide <a href="../mini/guide-mirror-settings.html">Using Mirrors for Repositories</a>.</p></section></section><section>
-<h2><a name="Building_Offline"></a>Building Offline</h2>
+<h2>Building Offline</h2>
<p>If you are temporarily disconnected from the internet and you need to build your projects offline, you can use the offline switch on the CLI:</p>
<div>
<pre> mvn -o package</pre></div>
<p>Many plugins honor the offline setting and do not perform any operations that connect to the internet. Some examples are resolving Javadoc links and link checking the site.</p></section><section>
-<h2><a name="Uploading_to_a_Remote_Repository"></a>Uploading to a Remote Repository</h2>
+<h2>Uploading to a Remote Repository</h2>
<p>While this is possible for any type of remote repository, you must have the permission to do so. To have someone upload to the Central Maven repository, see <a href="../../repository/index.html">Repository Center</a>.</p></section><section>
-<h2><a name="Internal_Repositories"></a>Internal Repositories</h2>
+<h2>Internal Repositories</h2>
<p>When using Maven, particularly in a corporate environment, connecting to the internet to download dependencies is not acceptable for security, speed or bandwidth reasons. For that reason, it is desirable to set up an internal repository to house a copy of artifacts, and to publish private artifacts to.</p>
<p>Such an internal repository can be downloaded using HTTP or the file system (with a <code>file://</code> URL), and uploaded to using SCP, FTP, or a file copy.</p>
<p>As far as Maven is concerned, there is nothing special about this repository: it is another <b>remote repository</b> that contains artifacts to download to a user's local cache, and is a publish destination for artifact releases.</p>
<p>Additionally, you may want to share the repository server with your generated project sites. For more information on creating and deploying sites, see <a href="../mini/guide-site.html">Creating a Site</a>.</p></section><section>
-<h2><a name="Setting_up_the_Internal_Repository"></a>Setting up the Internal Repository</h2>
+<h2>Setting up the Internal Repository</h2>
<p>To set up an internal repository just requires that you have a place to put it, and then copy required artifacts there using the same layout as in a remote repository such as <a class="externalLink" href="https://repo.maven.apache.org/maven2/">repo.maven.apache.org</a>.</p>
<p>It is <i>not</i> recommended that you scrape or <code>rsync://</code> a full copy of central as there is a large amount of data there and doing so will get you banned. You can use a program such as those described on the <a href="../../repository-management.html">Repository Management</a> page to run your internal repository's server, download from the internet as required, and then hold the artifacts in your internal repository for faster downloading later.</p>
<p>The other options available are to manually download and vet releases, then copy them to the internal repository, or to have Maven download them for a user, and manually upload the vetted artifacts to the internal repository which is used for releases. This step is the only one available for artifacts where the license forbids their distribution automatically, such as several J2EE JARs provided by Sun. Refer to the <a href="../mini/guide-coping-with-sun-jars.html">Guide to coping with SUN JARs</a> document for more information.</p>
<p>It should be noted that Maven intends to include enhanced support for such features in the future, including click through licenses on downloading, and verification of signatures.</p></section><section>
-<h2><a name="Using_the_Internal_Repository"></a>Using the Internal Repository</h2>
+<h2>Using the Internal Repository</h2>
<p>Using the internal repository is quite simple. Simply make a change to add a <code>repositories</code> element:</p>
<div class="source"><pre class="prettyprint linenums">
<project>
@@ -204,7 +204,7 @@ Brian Fox" />
</project>
</pre></div>
<p>If your internal repository requires authentication, the <code>id</code> element can be used in your <a href="../../settings.html#Servers">settings</a> file to specify login information.</p></section><section>
-<h2><a name="Deploying_to_the_Internal_Repository"></a>Deploying to the Internal Repository</h2>
+<h2>Deploying to the Internal Repository</h2>
<p>One of the most important reasons to have one or more internal repositories is to be able to publish your own private releases.</p>
<p>To publish to the repository, you will need to have access via one of SCP, SFTP, FTP, WebDAV, or the filesystem. Connectivity is accomplished with the various <a href="/wagon/wagon-providers/index.html">wagons</a>. Some wagons may need to be added as <a href="/ref/current/maven-model/maven.html#class_extension">extension</a> to your build.</p></section></section>
</main>