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 2024/05/11 11:53:26 UTC
svn commit: r1917667 [25/26] - in /maven/website/content: ./ 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/ docs/2.0.3/ docs/2.0.4/ doc...
Modified: maven/website/content/repository/guide-central-repository-upload.html
==============================================================================
--- maven/website/content/repository/guide-central-repository-upload.html (original)
+++ maven/website/content/repository/guide-central-repository-upload.html Sat May 11 11:53:23 2024
@@ -2,18 +2,18 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/apt/repository/guide-central-repository-upload.apt at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/apt/repository/guide-central-repository-upload.apt at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
<meta name="author" content="Jason van Zyl" />
<meta name="author" content="Brian Fox" />
<meta name="date" content="2018-12-31" />
- <title>Maven â Guide to uploading artifacts to the Central Repository</title>
+ <title>Maven</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
@@ -40,8 +40,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href=".././" id="bannerRight"><img src="../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href=".././" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -49,7 +51,8 @@
<ul class="breadcrumb">
<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 uploading artifacts to the Central Repository <a href="https://github.com/apache/maven-site/tree/master/content/apt/repository/guide-central-repository-upload.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/apt/repository/guide-central-repository-upload.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="../scm.html" title="Get Sources">Get Sources</a></li>
@@ -144,23 +147,23 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section>
+<section><a id="Guide_to_uploading_artifacts_to_the_Central_Repository"></a>
<h1>Guide to uploading artifacts to the Central Repository</h1>
-<p>In order for users of Maven to utilize artifacts produced by your project, you must deploy them to a remote repository. Many open source projects want to allow users of their projects who build with Maven to have transparent access to their project's artifacts. In order to allow for this, a project should deploy their artifacts to the <a href="/repository/">Central Repository</a>.</p></section><section>
+<p>In order for users of Maven to utilize artifacts produced by your project, you must deploy them to a remote repository. Many open source projects want to allow users of their projects who build with Maven to have transparent access to their project's artifacts. In order to allow for this, a project should deploy their artifacts to the <a href="/repository/">Central Repository</a>.</p></section><section><a id="Requirements"></a>
<h1>Requirements</h1>
-<ol style="list-style-type: decimal">
+<ol style="list-style-type: decimal;">
<li><b>releases</b>: Only <i>releases</i> can be uploaded to the Central Repository, that means files that won't change and that only depend on other files already released and available in the repository,</li>
<li><b>javadoc and sources</b> for IDE lookup,</li>
<li><b>PGP signature</b>,</li>
<li><b>minimum POM information</b>: There are some requirements for the minimal information in the POMs that are in the Central Repository, see <a class="externalLink" href="https://central.sonatype.org/pages/requirements.html#sufficient-metadata">here</a>, </li>
<li><b>coordinates</b>: Picking the appropriate coordinates for your project is important. See the guidelines <a class="externalLink" href="https://central.sonatype.org/pages/choosing-your-coordinates.html">here</a>, particularly on <a class="externalLink" href="https://central.sonatype.org/pages/producers.html#individual-projects-open-source-software-repository-hosting-ossrh">groupId and domain ownership</a>.</li></ol>
-<p>The updated list of requirements can be found <b><a class="externalLink" href="https://central.sonatype.org/pages/requirements.html">here</a></b>.</p><section>
+<p>The updated list of requirements can be found <b><a class="externalLink" href="https://central.sonatype.org/pages/requirements.html">here</a></b>.</p><section><a id="Explanation"></a>
<h2>Explanation</h2>
<p>Some folks have asked <i>"why do we require all this information in the POM for deployed artifacts?"</i>, so here's a small explanation.</p>
<p>The POM being deployed with the artifact is part of the process to make transitive dependencies a reality in Maven. The logic for getting transitive dependencies working is really not that hard, the problem is getting the data. The other applications that are made possible by having all the POMs available for artifacts are vast, so by placing them into the Central Repository as part of the process we open up the doors to new ideas that involve unified access to project POMs.</p>
-<p>We ask for the license because it is possible that your project's license may change in the course of its lifetime, and we are trying to create tools to help sort out licensing issues. For example, knowing all the licenses for a particular graph of artifacts, we could have some strategies that would identify potential licensing problems.</p></section><section>
+<p>We ask for the license because it is possible that your project's license may change in the course of its lifetime, and we are trying to create tools to help sort out licensing issues. For example, knowing all the licenses for a particular graph of artifacts, we could have some strategies that would identify potential licensing problems.</p></section><section><a id="A_basic_sample.3A"></a>
<h2>A basic sample:</h2>
-<div class="verbatim source"><pre class="prettyprint linenums">
+<pre><code>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
@@ -199,10 +202,10 @@
<pluginRepositories></pluginRepositories>
-->
</project>
-</pre></div></section><section>
+</code></pre></section><section><a id="PGP_Signature"></a>
<h2>PGP Signature</h2>
<p>When people download artifacts from the Central Repository, they might want to verify these artifacts' PGP signatures against a public key server. If there are no signatures, then users have no guarantee that they are downloading the original artifact.</p>
-<p>To improve the quality of the Central Repository, we require you to provide PGP signatures for all your artifacts (all files except checksums), and distribute your public key to a key server like <a class="externalLink" href="http://pgp.mit.edu">http://pgp.mit.edu</a>. Read <a class="externalLink" href="http://central.sonatype.org/pages/working-with-pgp-signatures.html">Working with PGP Signatures</a> for more information.</p></section><section>
+<p>To improve the quality of the Central Repository, we require you to provide PGP signatures for all your artifacts (all files except checksums), and distribute your public key to a key server like <a class="externalLink" href="http://pgp.mit.edu">http://pgp.mit.edu</a>. Read <a class="externalLink" href="http://central.sonatype.org/pages/working-with-pgp-signatures.html">Working with PGP Signatures</a> for more information.</p></section><section><a id="FAQ_and_common_mistakes"></a>
<h2>FAQ and common mistakes</h2>
<ul>
<li>I have other <code>repositories</code> or <code>pluginRepositories</code> listed in my POM, is that a problem?
@@ -212,17 +215,17 @@
<li>I have a patched version of the foo project developed at foo.com, what <code>groupId</code> should I use?
<p>When you patch / modify a third party project, that patched version becomes your project and therefore should be distributed under a <code>groupId</code> you control as any project you would have developed, never under <code>com.foo</code>. See above considerations about <code>groupId</code>.</p></li>
<li>My project is hosted at a project hosting service like SourceForge or Github, what should I use as groupId?
-<p>If your project name is <code>foo</code> at SourceForge, you can use <code>net.sf.foo</code>. If your username is <code>bar</code> on Github, you can use <code>com.github.bar</code>. You can also use another reversed domain name you control. The group ID does not have to reflect the project host.</p></li></ul></section></section><section>
-<h1>Publishing your artifacts to the Central Repository</h1><section>
+<p>If your project name is <code>foo</code> at SourceForge, you can use <code>net.sf.foo</code>. If your username is <code>bar</code> on Github, you can use <code>com.github.bar</code>. You can also use another reversed domain name you control. The group ID does not have to reflect the project host.</p></li></ul></section></section><section><a id="Publishing_your_artifacts_to_the_Central_Repository"></a>
+<h1>Publishing your artifacts to the Central Repository</h1><section><a id="Approved_Repository_Hosting"></a>
<h2>Approved Repository Hosting</h2>
<p>Instead of maintaining repository rsync feeds for each projects, we now encourage projects to use an approved repository hosting location.</p>
<p>Currently approved repository hosting locations:</p>
<ul>
<li><a class="externalLink" href="https://repository.apache.org/">Apache Software Foundation</a> (for all Apache projects)</li>
<li>see <a class="externalLink" href="https://central.sonatype.org/publish/large-orgs/">the full list</a></li></ul>
-<p>Automatic publication will be provided for Forges that provide hosting services for OSS projects and other large project repositories that meet certain minimum criteria such as validation of PGP keys and pom contents as defined above. If you are interested in becoming an approved Forge, <a class="externalLink" href="https://central.sonatype.org/publish/large-orgs/">contact us</a>.</p></section><section>
+<p>Automatic publication will be provided for Forges that provide hosting services for OSS projects and other large project repositories that meet certain minimum criteria such as validation of PGP keys and pom contents as defined above. If you are interested in becoming an approved Forge, <a class="externalLink" href="https://central.sonatype.org/publish/large-orgs/">contact us</a>.</p></section><section><a id="Other_Projects"></a>
<h2>Other Projects</h2>
-<p>The easiest way to upload another project is to use the <a class="externalLink" href="https://central.sonatype.org/pages/ossrh-guide.html">Open Source Software Repository Hosting (OSSRH)</a>, which is an approved repository provided by Sonatype for <i>any</i> OSS Project that wants to get its artifacts into the Central Repository.</p></section><section>
+<p>The easiest way to upload another project is to use the <a class="externalLink" href="https://central.sonatype.org/pages/ossrh-guide.html">Open Source Software Repository Hosting (OSSRH)</a>, which is an approved repository provided by Sonatype for <i>any</i> OSS Project that wants to get its artifacts into the Central Repository.</p></section><section><a id="Explanations"></a>
<h2>Explanations</h2>
<p>Having each project maintain its own repository with rsync to the Central Repository was the preferred process until January 2010. However, we are no longer accepting rsync requests on a per project basis.</p>
<p>Over time, we have learned that this process is not scalable. Many of the projects being synced release very infrequently, yet we have to hit hundreds of servers several times a day looking for artifacts that don't change. Additionally, there is no good mechanism currently for validating the incoming data via the rsync, and this leads to bad metadata that affects everyone. </p>
Modified: maven/website/content/repository/index.html
==============================================================================
--- maven/website/content/repository/index.html (original)
+++ maven/website/content/repository/index.html Sat May 11 11:53:23 2024
@@ -2,17 +2,17 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/xdoc/repository/index.xml at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/xdoc/repository/index.xml at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
<meta name="author" content="Brett Porter" />
<meta name="author" content="Hervé Boutemy" />
- <title>Maven â Maven Central Repository</title>
+ <title>Maven</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
@@ -39,8 +39,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href=".././" id="bannerRight"><img src="../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href=".././" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -48,7 +50,8 @@
<ul class="breadcrumb">
<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 Central Repository <a href="https://github.com/apache/maven-site/tree/master/content/xdoc/repository/index.xml"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/xdoc/repository/index.xml"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="../scm.html" title="Get Sources">Get Sources</a></li>
@@ -147,7 +150,7 @@
- <section>
+ <section><a id="Maven_Central_Repository"></a>
<h1>Maven Central Repository</h1>
Modified: maven/website/content/repository/layout.html
==============================================================================
--- maven/website/content/repository/layout.html (original)
+++ maven/website/content/repository/layout.html Sat May 11 11:53:23 2024
@@ -2,15 +2,15 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/markdown/repository/layout.md at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/markdown/repository/layout.md at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
- <title>Maven â Maven2 Repository Layout</title>
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
+ <title>Maven</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
@@ -37,8 +37,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href=".././" id="bannerRight"><img src="../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href=".././" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -46,7 +48,8 @@
<ul class="breadcrumb">
<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 ">Maven2 Repository Layout <a href="https://github.com/apache/maven-site/tree/master/content/markdown/repository/layout.md"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/repository/layout.md"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="../scm.html" title="Get Sources">Get Sources</a></li>
@@ -141,116 +144,7 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section><section>
-<h2>Maven2 Repository Layout</h2><!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-<p>Maven2 repository layout format is the default layout used since Maven 2 (see <a href="https://cwiki.apache.org/confluence/display/MAVENOLD/Repository+Layout+-+Final" class="externalLink">Repository Layout- Final</a> in <a href="https://cwiki.apache.org/confluence/display/MAVENOLD/Maven+2.0+Design+Documents" class="externalLink">Maven 2.0 Design Documents</a>), superceding old Maven 1 layout:</p>
-
-<div class="verbatim">
-<pre><code>Repository root
-|-- archetype-catalog.xml
-`-- ${groupId as directory}/
- |-- maven-metadata.xml
- |-- .${checksums}
- `-- ${artifactId}/
- |-- maven-metadata.xml
- |-- .${checksums}
- `-- ${version}/
- |-- ${artifactId}-${version}.pom
- |-- .asc
- |-- .${checksums}
- |-- ${artifactId}-${version}.${extension}
- |-- .asc
- |-- .${checksums}
- |-- ${artifactId}-${version}-${classifier}.${extension}
- |-- .asc
- `-- .${checksums}
-</code></pre></div>
-<p>where:</p>
-<ul>
-
-<li><code>${groupId as directory}</code> is the groupId with <code>.</code> replaced by <code>/</code>, for example <code>org/apache/maven</code>,</li>
-<li><code>${artifactId}</code> is the artifactId,</li>
-<li><code>${version}</code> is the version, with some additional possibilities on a SNAPSHOT, see SNAPSHOT paragraph,</li>
-<li><code>${extension}</code> is the file extension, for example <code>zip</code> or <code>tar.gz</code>,</li>
-<li><code>${classifier}</code> is the artifact classifier (when available),</li>
-<li><code>${checksums}</code> is a list of checksums algorithms, <code>md5</code> and <code>sha1</code> by default.</li>
-</ul>
-<p><code>maven-metadata.xml</code> file format is defined in <a href="/ref/current/maven-repository-metadata/">Maven Repository Metadata Model</a>.</p>
-<p><code>.asc</code> file is optional (may be required in some repositories, like Central Repository) and is a PGP detached signature file.</p>
-<p>Obviously, <code>${groupId}</code>, <code>${artifactId}</code> and <code>${version}</code> are defined in <code>pom.xml</code>. But what about <code>${classifier}</code> and <code>${extension}</code>, how are they defined?</p>
-<p>Classifier and extension definition is completely different at artifact <em>publication</em> and <em>usage</em> times:</p>
-<ul>
-
-<li>
-<p><strong>At artifact publication time</strong>: Extension and classifier are defined by plugins that create the artifacts and attach them for publication.<br />
-Some plugins provide configuration parameters to be able to override default values.
-For example, <a href="/plugins/maven-jar-plugin/jar-mojo.html">Maven JAR Plugin's <code>jar:jar</code> goal</a> produces by default an artifact with <code>jar</code> extension and empty classifier.
-The <code>classifier</code> goal parameter can be used to define a classifier (there is no parameter to override extension).</p></li>
-<li>
-<p><strong>At artifact usage time</strong>: Extension and classifier are defined by <a href="/ref/current/maven-model/maven.html#class_dependency"><code><dependency></code>'s <code><type></code> and <code><classifier></code></a> definition in <code>pom.xml</code>:</p>
-<ul>
-
-<li><code><type></code> (<code>jar</code> by default) defines the extension and default classifier: <br />
-see <a href="/ref/current/maven-core/artifact-handlers.html">default artifact handlers</a> to see default types and corresponding extension and default classifier. <br /></li>
-<li><code><classifier></code> is optional, to override default classifier defined by the dependency type.</li>
-</ul></li>
-</ul></section><section>
-<h2>SNAPSHOT</h2>
-<p>In case of a SNAPSHOT version, version directory uses base version, i.e. version ending in <code>-SNAPSHOT</code>, for example <code>3.8.4-SNAPSHOT</code>.</p>
-<p>For artifact files, there are 2 options available:</p>
-<ol style="list-style-type: decimal">
-
-<li>unique SNAPSHOT artifacts, using the same base version,</li>
-<li>multiple SNAPSHOT artifacts for one base version, each deployment will have an effective version where <code>SNAPSHOT</code> is replaced with <code>YYYYMMDD.HHMMSS-${counter}</code>.</li>
-</ol></section><section>
-<h2>Protocol</h2>
-<p>Repository can be accessed through many file-oriented protocols, both for read and write: most classical are <code>file://</code>, <code>http://</code> and <code>https://</code> (<code>GET</code> and <code>PUT</code>).
-Older (now generally unused) protocols are FTP(S), SCP, SSH, …</p>
-<p>HTTP/HTTPS protocol have 2 specific characteristics:</p>
-<ol style="list-style-type: decimal">
-
-<li>
-<p>there is no directory listing feature: Maven does not need to list files in a directory, a remote directory does have not provide any directory listing feature,</p></li>
-<li>
-<p><a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html" class="externalLink">HTTP/1.1 Reason-Phrase</a> is used to provide extended message when artifact access is rejected by remote repository.
-This usage of Reason-Phrase is nowadays legacy and is removed in HTTP/2, <a href="https://issues.apache.org/jira/browse/MNG-6795" class="externalLink">MNG-6795</a> is open to create a replacement.</p></li>
-</ol></section><section>
-<h2>Archetype Catalog</h2>
-<p><code>archetype-catalog.xml</code> file at root directory is a <a href="/archetype/archetype-models/archetype-catalog/archetype-catalog.html">catalog of all Maven Archetypes</a> proposed in the repository.</p></section><section>
-<h2>Additional Content</h2><section>
-<h3>Index</h3>
-<p><a href="https://repo.maven.apache.org/maven2/.index/" class="externalLink"><code>.index</code></a> directory at root directory is an <a href="/maven-indexer/indexer-core/">index</a> of the content, done by <a href="/maven-indexer/">Maven Indexer</a>.</p>
-<p>If contains index files in 2 flavours:</p>
-<ul>
-
-<li>full index: <code>nexus-maven-repository-index.gz</code></li>
-<li>incremental index: <code>nexus-maven-repository-index.<n>.gz</code> + <code>nexus-maven-repository-index.properties</code></li>
-</ul></section><section>
-<h3>Metadata</h3>
-<p><a href="https://repo.maven.apache.org/maven2/.meta/" class="externalLink"><code>.meta</code></a> directory at root directory contains a few metadata files:</p>
-<ul>
-
-<li><code>prefixes.txt</code></li>
-<li><code>repository-metadata.xml</code></li>
-</ul></section></section></section>
+<section>
</main>
</div>
</div>
Modified: maven/website/content/resource/branding/actioncards.html
==============================================================================
--- maven/website/content/resource/branding/actioncards.html (original)
+++ maven/website/content/resource/branding/actioncards.html Sat May 11 11:53:23 2024
@@ -2,15 +2,15 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/markdown/resource/branding/actioncards.md at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/markdown/resource/branding/actioncards.md at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
- <title>Maven â Action Cards</title>
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
+ <title>Maven</title>
<link rel="stylesheet" href="../../css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="../../css/site.css" />
<link rel="stylesheet" href="../../css/print.css" media="print" />
@@ -37,8 +37,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../../images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href="../.././" id="bannerRight"><img src="../../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href="../.././" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -46,7 +48,8 @@
<ul class="breadcrumb">
<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 ">Action Cards <a href="https://github.com/apache/maven-site/tree/master/content/markdown/resource/branding/actioncards.md"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/resource/branding/actioncards.md"><img src="../../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="../../scm.html" title="Get Sources">Get Sources</a></li>
@@ -126,7 +129,7 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section>
+<section><a id="Action_Cards"></a>
<h1>Action Cards</h1><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Modified: maven/website/content/run-maven/index.html
==============================================================================
--- maven/website/content/run-maven/index.html (original)
+++ maven/website/content/run-maven/index.html Sat May 11 11:53:23 2024
@@ -2,17 +2,17 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/apt/run-maven/index.apt at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/apt/run-maven/index.apt at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
<meta name="author" content="Brett Porter" />
<meta name="date" content="2006-11-03" />
- <title>Maven â Running Maven</title>
+ <title>Maven</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
@@ -39,8 +39,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="../images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href=".././" id="bannerRight"><img src="../images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href=".././" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -48,7 +50,8 @@
<ul class="breadcrumb">
<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 ">Running Maven <a href="https://github.com/apache/maven-site/tree/master/content/apt/run-maven/index.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/apt/run-maven/index.apt"><img src="../images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="../scm.html" title="Get Sources">Get Sources</a></li>
@@ -143,22 +146,20 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section>
+<section><a id="Building_a_Project_with_Maven"></a>
<h1>Building a Project with Maven</h1>
<p>The vast majority of Maven-built projects can be built with the following command:</p>
-<div class="verbatim">
-<pre>mvn verify</pre></div>
+<pre>mvn verify</pre>
<p>This command tells Maven to build all the modules, and to check if all integration tests succeeded (when any was defined)</p>
<p>That's it! If you look in the <code>target</code> subdirectory, you should find the build output and the final library or application that was being built.</p>
<p><b>Note:</b> Some projects have multiple modules, so the library or application you are looking for may be in a module subdirectory.</p>
-<p>While this will build most projects and Maven encourages this standard convention, builds can be customisable. If this does not suffice, please consult the project's documentation.</p><section>
+<p>While this will build most projects and Maven encourages this standard convention, builds can be customisable. If this does not suffice, please consult the project's documentation.</p><section><a id="More_than_just_the_Build"></a>
<h2>More than just the Build</h2>
-<p>Maven can do more than just build software - it can assist with testing, run web applications and produce reports on projects, as well as any number of other tasks provided by plug-ins.</p></section><section>
+<p>Maven can do more than just build software - it can assist with testing, run web applications and produce reports on projects, as well as any number of other tasks provided by plug-ins.</p></section><section><a id="When_Things_go_Wrong"></a>
<h2>When Things go Wrong</h2>
-<p>The following are some common problems when building with Maven, and how to resolve them.</p><section>
+<p>The following are some common problems when building with Maven, and how to resolve them.</p><section><a id="Missing_Dependencies"></a>
<h3>Missing Dependencies</h3>
<p>A missing dependency presents with an error like the following:</p>
-<div class="verbatim">
<pre>[INFO] Failed to resolve artifact.
Missing:
@@ -182,10 +183,10 @@ for artifact:
org.apache.maven:maven:pom:2.1-SNAPSHOT
from the specified remote repositories:
- central (https://repo.maven.apache.org/maven2)</pre></div>
+ central (https://repo.maven.apache.org/maven2)</pre>
<p>To resolve this issue, it depends on what the dependency is and why it is missing. The most common cause is because it can not be redistributed from the repository and must be manually installed using the instructions given in the message. This is most common with some older JARs from Sun (usually <code>javax.*</code> group IDs), and is further documented in the <a href="../guides/mini/guide-coping-with-sun-jars.html"> Guide to Coping with Sun JARs</a>.</p>
<p>You can check the list of repositories at the end of the error to ensure that the expected ones are listed - it may be that the project requires an alternative repository that has not been declared properly or is not accessible with your Maven configuration.</p>
-<p>In other cases, it may be an incorrectly declared dependency (like the typo in the example above) which the project would need to fix, like a compilation error.</p></section><section>
+<p>In other cases, it may be an incorrectly declared dependency (like the typo in the example above) which the project would need to fix, like a compilation error.</p></section><section><a id="Inconsistent_output"></a>
<h3>Inconsistent output</h3>
<p>Most plugins are optimized to know if they have to execute their task. In some cases, the output can be polluted from a previous build and the end result is not what you expected. In such rare situations, you can call the <code>clean</code> phase which means: remove the output directory. You can also call it as <code>mvn clean verify</code> which means: first clean up the output directory, next build the project and verify the outcome.</p></section></section></section>
</main>
Modified: maven/website/content/run.html
==============================================================================
--- maven/website/content/run.html (original)
+++ maven/website/content/run.html Sat May 11 11:53:23 2024
@@ -2,15 +2,15 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/markdown/run.md at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/markdown/run.md at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
- <title>Maven â Running Apache Maven</title>
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
+ <title>Maven</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
@@ -37,8 +37,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href="./" id="bannerRight"><img src="images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href="./" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -46,7 +48,8 @@
<ul class="breadcrumb">
<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 ">Running Apache Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/run.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/run.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="scm.html" title="Get Sources">Get Sources</a></li>
@@ -133,7 +136,7 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section>
+<section><a id="Running_Apache_Maven"></a>
<h1>Running Apache Maven</h1><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -155,19 +158,16 @@ under the License.
<p>The syntax for running Maven is as follows:</p>
-<div class="verbatim">
<pre><code>mvn [options] [<goal(s)>] [<phase(s)>]
-</code></pre></div>
+</code></pre>
<p>All available options are documented in the built-in help that you can access with</p>
-<div class="verbatim">
<pre><code>mvn -h
-</code></pre></div>
+</code></pre>
<p>The typical invocation for building a Maven project uses a Maven lifecycle phase. E.g.</p>
-<div class="verbatim">
<pre><code>mvn verify
-</code></pre></div>
+</code></pre>
<p>The built-in lifecycles and their most used phases, in order, are:</p>
<ul>
@@ -181,32 +181,27 @@ under the License.
<p>A fresh build of a project generating all packaged outputs and the documentation site
and deploying it to a repository manager could be done with</p>
-<div class="verbatim">
<pre><code>mvn clean deploy site-deploy
-</code></pre></div>
+</code></pre>
<p>Just creating the package and installing it in the local repository for re-use from other projects can be done with</p>
-<div class="verbatim">
<pre><code>mvn install
-</code></pre></div>
+</code></pre>
<p>And if you don't expect to re-use from other projects, use</p>
-<div class="verbatim">
<pre><code>mvn verify
-</code></pre></div>
+</code></pre>
<p>This is the most common build invocation for a Maven project.</p>
<p>When not working with a project, and in some other use cases, you might want to invoke
a specific task implemented by a part of Maven - this is called a <strong>goal</strong> of a plugin.
E.g.:</p>
-<div class="verbatim">
<pre><code>mvn archetype:generate
-</code></pre></div>
+</code></pre>
<p>or</p>
-<div class="verbatim">
<pre><code>mvn checkstyle:check
-</code></pre></div>
+</code></pre>
<p>There are many different <a href="/plugins/">plugins available</a> and they all implement different goals.</p>
<p>Further resources:</p>
<ul>
Modified: maven/website/content/scm.html
==============================================================================
--- maven/website/content/scm.html (original)
+++ maven/website/content/scm.html Sat May 11 11:53:23 2024
@@ -2,16 +2,16 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/xdoc/scm.xml at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/xdoc/scm.xml at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
<meta name="author" content="Benjamin Bentmann" />
- <title>Maven â Source Repository</title>
+ <title>Maven</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
@@ -38,8 +38,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href="./" id="bannerRight"><img src="images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href="./" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -47,7 +49,8 @@
<ul class="breadcrumb">
<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 ">Source Repository <a href="https://github.com/apache/maven-site/tree/master/content/xdoc/scm.xml"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/xdoc/scm.xml"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="scm.html" title="Get Sources">Get Sources</a></li>
@@ -129,7 +132,7 @@
<main id="bodyColumn" class="span10" >
- <section>
+ <section><a id="Source_Repository"></a>
<h1>Source Repository</h1>
<p>
@@ -143,7 +146,7 @@
Instructions for using the Apache Software Foundation Git repositories are at <a href="https://git-wip-us.apache.org/" class="externalLink">https://git-wip-us.apache.org</a>.
</p>
- <section>
+ <section><a id="Full_Maven_Sources"></a>
<h2>Full Maven Sources</h2>
<p>
@@ -168,24 +171,23 @@
</table>
-<ol style="list-style-type: decimal">
+<ol style="list-style-type: decimal;">
<li>Install a git client if needed and the <a href="https://android.googlesource.com/tools/repo" class="externalLink">Google Repo</a> tool
(see <a href="https://source.android.com/setup/build/downloading#installing-repo" class="externalLink">manual install instructions</a>).</li>
<li>Check out a new repo workspace and prepare master branch:
-<div class="verbatim">
<pre>repo init -u https://gitbox.apache.org/repos/asf/maven-sources.git
repo sync
-repo start master --all</pre></div>
+repo start master --all</pre>
</li>
<li>In your IDE, import the projects you're interested in from the repo workspace. Or directly build with command line the component you want.</li>
</ol>
</section>
- <section>
+ <section><a id="Maven_Sources_Overview"></a>
<h2>Maven Sources Overview</h2>
<p>
@@ -223,7 +225,7 @@ repo start master --all</pre></div>
</p>
</section>
- <section>
+ <section><a id="Maven_Site"></a>
<h2>Maven Site</h2>
<p>
@@ -245,7 +247,7 @@ repo start master --all</pre></div>
</section>
- <section>
+ <section><a id="Maven_Core"></a>
<h2>Maven Core</h2>
<p>
@@ -279,7 +281,7 @@ repo start master --all</pre></div>
</section>
- <section>
+ <section><a id="Other_Components"></a>
<h2>Other Components</h2>
<p>
@@ -291,7 +293,7 @@ repo start master --all</pre></div>
There are also many shared components and subsystems with their own source repositories, mainly in Git, some in Subversion.
</p>
- <section><section>
+ <section><a id="Components_in_Git"></a><section><a id="Components_in_Git"></a>
<h4>Components in Git</h4>
<p>
@@ -1278,7 +1280,7 @@ repo start master --all</pre></div>
</table>
- </section><section>
+
<h4>Components in Subversion</h4>
<p>
Modified: maven/website/content/security-plexus-archiver.html
==============================================================================
--- maven/website/content/security-plexus-archiver.html (original)
+++ maven/website/content/security-plexus-archiver.html Sat May 11 11:53:23 2024
@@ -2,15 +2,15 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/markdown/security-plexus-archiver.md at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/markdown/security-plexus-archiver.md at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
- <title>Maven â Zip Slip Vulnerability</title>
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
+ <title>Maven</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
@@ -37,8 +37,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href="./" id="bannerRight"><img src="images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href="./" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -46,7 +48,8 @@
<ul class="breadcrumb">
<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 ">Zip Slip Vulnerability <a href="https://github.com/apache/maven-site/tree/master/content/markdown/security-plexus-archiver.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/security-plexus-archiver.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="scm.html" title="Get Sources">Get Sources</a></li>
@@ -126,7 +129,7 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section>
+<section><a id="Zip_Slip_Vulnerability"></a>
<h1>Zip Slip Vulnerability</h1><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -158,7 +161,7 @@ did not make sufficient checks and it is
packaging plugins.
Affected versions of plexus-archiver are [,3.4]+[3.5], fixed versions are 3.4.1 & 3.6.0,
with issue management <a href="https://github.com/codehaus-plexus/plexus-archiver/pull/87" class="externalLink">plexus-archiver #87</a> and
-Snyk vulnerability report <a href="https://snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-31680" class="externalLink">SNYK-JAVA-ORGCODEHAUSPLEXUS-31680</a></p><section>
+Snyk vulnerability report <a href="https://snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-31680" class="externalLink">SNYK-JAVA-ORGCODEHAUSPLEXUS-31680</a></p><section><a id="What_parts_of_Maven_are_vulnerable.3F"></a>
<h2>What parts of Maven are vulnerable?</h2>
<p>Apache Maven itself is not vulnerable, since Maven doesn't unpack by itself:
unpacking actions are done by plugins.</p>
@@ -311,7 +314,7 @@ which versions contain the fixed and the
<li>maven-repository-plugin</li>
<li>maven-site-plugin</li>
<li>maven-source-plugin</li>
-</ul></section><section>
+</ul></section><section><a id="When_are_you_affected_by_this_vulnerability.3F"></a>
<h2>When are you affected by this vulnerability?</h2>
<p>The vulnerability is like a Trojan Horse, the malicious archive must first enter the system, normally achieved
with a downloaded of a dependency. Once downloaded there's no direct danger, the user must take some specific
Modified: maven/website/content/security.html
==============================================================================
--- maven/website/content/security.html (original)
+++ maven/website/content/security.html Sat May 11 11:53:23 2024
@@ -2,15 +2,15 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/markdown/security.md at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/markdown/security.md at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
- <title>Maven â Maven Security</title>
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
+ <title>Maven</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
@@ -37,8 +37,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href="./" id="bannerRight"><img src="images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href="./" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -46,7 +48,8 @@
<ul class="breadcrumb">
<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 Security <a href="https://github.com/apache/maven-site/tree/master/content/markdown/security.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/security.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="scm.html" title="Get Sources">Get Sources</a></li>
@@ -126,116 +129,7 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section><section>
-<h2>Maven Security</h2><!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
<section>
-<h3>Security Model</h3>
-<p>The purpose of Maven is to perform the actions defined in the supplied
-<code>pom.xml</code>, which commonly includes compiling and running the associated
-code and using plugins and dependencies downloaded from the configured
-repositories.</p>
-<p>As such, the Maven security model assumes you trust the <code>pom.xml</code> and
-the code, dependencies and repositories that are used in your build.
-If you want to use Maven to build untrusted code, it is up to you to
-provide the required isolation.</p></section><section>
-<h3>Security Vulnerabilities</h3>
-<p>Please note that binary patches are not produced for individual
-vulnerabilities. To obtain the binary fix for a particular vulnerability
-you should upgrade to an Apache Maven version where that vulnerability
-has been fixed.</p>
-<p>For more information about reporting vulnerabilities, see the <a href="https://www.apache.org/security/" class="externalLink">Apache
-Security Team</a> page.</p><section>
-<h4>CVE-2021-26291 Apache Maven 3.8.1</h4>
-<p>Severity: Medium</p>
-<p>Vendor: The Apache Software Foundation</p>
-<p>Versions Affected:</p>
-<ul>
-
-<li>Apache Maven 3.6.3 and earlier</li>
-</ul>
-<p>Description: More and more repositories use HTTPS nowadays, but this hasn't always been the case. This means that Maven Central contains POMs with custom repositories that refer to a URL over HTTP.
-This makes downloads via such repository a target for a MITM attack.
-At the same time, developers are probably not aware that for some downloads an insecure URL is being used.
-Because uploaded POMs to Maven Central are immutable, a change for Maven was required.
-To solve this, we extended the mirror configuration with <code><blocked></code> parameter,
-and we added a new <code>external:http:*</code> mirror selector (like existing <code>external:*</code>), meaning “any external URL using HTTP”.<br />
-The decision was made to block such external HTTP repositories by default: this is done by providing a mirror in the <code>conf/settings.xml</code> blocking insecure HTTP external URLs.
-Note: this is a vulnerability in case you're connectioning directly to remote repositories instead of using an artifact repository manager.</p></section><section>
-<h4>Maven Dependency, EAR, Javadoc, WAR and Plugin Plugins</h4>
-<p>Severity: Low</p>
-<p>Vendor: The Apache Software Foundation</p>
-<p>Versions Affected:</p>
-<ul>
-
-<li>Maven Dependency Plugin 3.1.0 and earlier</li>
-<li>Maven EAR Plugin 3.0.0 and earlier</li>
-<li>Maven Javadoc Plugin 2.5 to 3.0.0</li>
-<li>Maven WAR Plugin 2.1-alpha-1 to 3.2.0</li>
-<li>Maven Plugin Plugin 3.0 to 3.5.1</li>
-</ul>
-<p>Description: As part of a broader research, the Snyk Security Research Team discovered
-an arbitrary file write generic vulnerability, that can be achieved using a
-specially crafted zip (or bzip2, gzip, tar, xz, war) archive, that holds
-path traversal filenames. So when the filename gets concatenated to the
-target extraction directory, if the extraction tool used does not make
-sufficient checks, the final path ends up outside of the target directory.
-The affected plugins use plexus-archiver to unpack dependencies to disk
-and have been identified as potential triggers for exposing the vulnerability
-if dependencies are compromised.</p>
-<p>See <a href="./security-plexus-archiver.html">full description</a> for more details.</p>
-<p>Credit: This issue was identified by the Snyk Security Research Team</p></section><section>
-<h4>CVE-2013-0253 Apache Maven 3.0.4</h4>
-<p>Severity: Medium</p>
-<p>Vendor: The Apache Software Foundation</p>
-<p>Versions Affected:</p>
-<ul>
-
-<li>Apache Maven 3.0.4</li>
-<li>Apache Maven Wagon 2.1, 2.2, 2.3</li>
-</ul>
-<p>Description: Apache Maven 3.0.4 (with Apache Maven Wagon 2.1) has
-introduced a non-secure SSL mode by default. This mode disables all SSL
-certificate checking, including: host name verification , date validity,
-and certificate chain. Not validating the certificate introduces the
-possibility of a man-in-the-middle attack.</p>
-<p><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0253" class="externalLink">CVE-2013-0253</a></p>
-<p>All users are recommended to upgrade to <a href="./download.cgi">Apache Maven
-3.0.5</a> and Apache Maven Wagon 2.4.</p>
-<p>Credit: This issue was identified by Graham Leggett</p></section><section>
-<h4>CVE-2012-6153 Apache Maven Wagon :: WebDAV Provider</h4>
-<p>Severity: Medium</p>
-<p>Vendor: The Apache Software Foundation</p>
-<p>Versions Affected:</p>
-<ul>
-
-<li>Apache Maven Wagon WebDAV Provider 2.12 and earlier</li>
-</ul>
-<p>Description: http/conn/ssl/AbstractVerifier.java in Apache Commons HttpClient
-before 4.2.3 does not properly verify that the server hostname matches a
-domain name in the subject's Common Name (CN) or subjectAltName field of the
-X.509 certificate, which allows man-in-the-middle attackers to spoof SSL
-servers via a certificate with a subject that specifies a common name in a
-field that is not the CN field.</p>
-<p><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6153" class="externalLink">CVE-2012-6153</a></p>
-<p>Users of this provider are recommended to upgrade to <a href="./download.cgi">Apache Maven Wagon ::
-WebDAV Provider 3.0.0</a></p></section></section></section></section>
</main>
</div>
</div>
Modified: maven/website/content/settings.html
==============================================================================
--- maven/website/content/settings.html (original)
+++ maven/website/content/settings.html Sat May 11 11:53:23 2024
@@ -2,15 +2,15 @@
<!--
- | Generated by Apache Maven Doxia Site Renderer 2.0.0-M10 from content/markdown/settings.md at 2024-05-11
+ | Generated by Apache Maven Doxia Site Renderer 2.0.0-M18 from content/markdown/settings.md at 2024-05-11
| Rendered using Apache Maven Fluido Skin 2.0.0-M6
-->
<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-M10" />
- <title>Maven â Settings Reference</title>
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 2.0.0-M18" />
+ <title>Maven</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-2.0.0-M6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
@@ -37,8 +37,10 @@
<div class="container-fluid">
<header>
<div id="banner">
- <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><img src="images/apache-maven-project.png" alt="Apache Maven Site" style="" /></a></div>
- <div class="pull-right"><a href="./" id="bannerRight"><img src="images/maven-logo-black-on-white.png" alt="" style="" /></a></div>
+ <div class="pull-left"><a href="https://www.apache.org/" id="bannerLeft"><h1>Apache Maven Site</h1>
+</a></div>
+ <div class="pull-right"><a href="./" id="bannerRight"><h1>$esc.xml( $banner.name )</h1>
+</a></div>
<div class="clear"><hr/></div>
</div>
@@ -46,7 +48,8 @@
<ul class="breadcrumb">
<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 ">Settings Reference <a href="https://github.com/apache/maven-site/tree/master/content/markdown/settings.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
+
+ <li class="active ">Maven <a href="https://github.com/apache/maven-site/tree/master/content/markdown/settings.md"><img src="./images/accessories-text-editor.png" title="Edit" /></a></li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2024-05-11</li>
<li class="pull-right"><span class="divider">|</span>
<a href="scm.html" title="Get Sources">Get Sources</a></li>
@@ -141,503 +144,7 @@
</div>
</header>
<main id="bodyColumn" class="span10" >
-<section><section>
-<h2>Settings Reference</h2><!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-<ul>
-
-<li><a href="#introduction">Introduction</a>
-<ul>
-
-<li><a href="#quick-overview">Quick Overview</a></li>
-</ul></li>
-<li><a href="#settings-details">Settings Details</a>
-<ul>
-
-<li><a href="#simple-values">Simple Values</a></li>
-<li><a href="#plugin-groups">Plugin Groups</a></li>
-<li><a href="#servers">Servers</a>
-<ul>
-
-<li><a href="#password-encryption">Password Encryption</a></li>
-</ul></li>
-<li><a href="#mirrors">Mirrors</a></li>
-<li><a href="#proxies">Proxies</a></li>
-<li><a href="#profiles">Profiles</a>
-<ul>
-
-<li><a href="#activation">Activation</a></li>
-<li><a href="#repositories">Repositories</a></li>
-<li><a href="#plugin-repositories">Plugin Repositories</a></li>
-</ul></li>
-<li><a href="#active-profiles">Active Profiles</a></li>
-</ul></li>
-</ul></section><section>
-<h2>Introduction</h2><section>
-<h3>Quick Overview</h3>
-<p>The <code>settings</code> element in the <code>settings.xml</code> file contains elements used
-to define values which configure Maven execution in various ways, like
-the <code>pom.xml</code>, but should not be bundled to any specific project, or
-distributed to an audience. These include values such as the local
-repository location, alternate remote repository servers, and
-authentication information.</p>
-<p>There are two locations where a <code>settings.xml</code> file may live:</p>
-<ul>
-
-<li>The Maven install: <code>${maven.home}/conf/settings.xml</code></li>
-<li>A user's install: <code>${user.home}/.m2/settings.xml</code></li>
-</ul>
-<p>The former <code>settings.xml</code> are also called global settings, the latter
-<code>settings.xml</code> are referred to as user settings. If both files exists,
-their contents gets merged, with the user-specific <code>settings.xml</code> being
-dominant.</p>
-<p>Tip: If you need to create user-specific settings from scratch, it's
-easiest to copy the global settings from your Maven installation to your
-<code>${user.home}/.m2</code> directory. Maven's default <code>settings.xml</code> is a
-template with comments and examples so you can quickly tweak it to match
-your needs.</p>
-<p>Here is an overview of the top elements under <code>settings</code>:</p>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- <localRepository/>
- <interactiveMode/>
- <offline/>
- <pluginGroups/>
- <servers/>
- <mirrors/>
- <proxies/>
- <profiles/>
- <activeProfiles/>
-</settings>
-</code></pre></div>
-<p>The contents of the <code>settings.xml</code> can be interpolated using the
-following expressions:</p>
-<ol style="list-style-type: decimal">
-
-<li><code>${user.home}</code> and all other system properties <em>(since Maven 3.0)</em></li>
-<li><code>${env.HOME}</code> etc. for environment variables</li>
-</ol>
-<p>Note that properties defined in profiles within the <code>settings.xml</code>
-cannot be used for interpolation.</p></section></section><section>
-<h2>Settings Details</h2><section>
-<h3>Simple Values</h3>
-<p>Half of the top-level <code>settings</code> elements are simple values,
-representing a range of values which describe elements of the build
-system that are active full-time.</p>
-
-<div class="verbatim">
-<pre><code><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- <localRepository>${user.home}/.m2/repository</localRepository>
- <interactiveMode>true</interactiveMode>
- <offline>false</offline>
- ...
-</settings>
-</code></pre></div>
-<ul>
-
-<li><strong>localRepository</strong>: This value is the path of this build system's
-local repository. The default value is
-<code>${user.home}/.m2/repository</code>. This element is especially useful for
-a main build server allowing all logged-in users to build from a
-common local repository.</li>
-<li><strong>interactiveMode</strong>: <code>true</code> if Maven should attempt to interact with
-the user for input, <code>false</code> if not. Defaults to <code>true</code>.</li>
-<li><strong>offline</strong>: <code>true</code> if this build system should operate in offline
-mode, defaults to <code>false</code>. This element is useful for build servers
-which cannot connect to a remote repository, either because of
-network setup or security reasons.</li>
-</ul></section><section>
-<h3>Plugin Groups</h3>
-<p>This element contains a list of <code>pluginGroup</code> elements, each contains a
-groupId. The list is searched when a plugin is used and the groupId is
-not provided in the command line. This list automatically contains
-<code>org.apache.maven.plugins</code> and <code>org.codehaus.mojo</code>.</p>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <pluginGroups>
- <pluginGroup>org.eclipse.jetty</pluginGroup>
- </pluginGroups>
- ...
-</settings>
-</code></pre></div>
-<p>For example, given the above settings the Maven command line may execute
-<code>org.eclipse.jetty:jetty-maven-plugin:run</code> with the truncated command:</p>
-
-<div class="verbatim">
-<pre><code>mvn jetty:run
-</code></pre></div></section><section>
-<h3>Servers</h3>
-<p>The repositories for download and deployment are defined by the
-<a href="./pom.html#Repositories"><code>repositories</code></a> and
-<a href="./pom.html#Distribution_Management"><code>distributionManagement</code></a> elements
-of the POM. However, certain settings such as <code>username</code> and <code>password</code>
-should not be distributed along with the <code>pom.xml</code>. This type of
-information should exist on the build server in the <code>settings.xml</code>.</p>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <servers>
- <server>
- <id>server001</id>
- <username>my_login</username>
- <password>my_password</password>
- <privateKey>${user.home}/.ssh/id_dsa</privateKey>
- <passphrase>some_passphrase</passphrase>
- <filePermissions>664</filePermissions>
- <directoryPermissions>775</directoryPermissions>
- <configuration></configuration>
- </server>
- </servers>
- ...
-</settings>
-</code></pre></div>
-<ul>
-
-<li><strong>id</strong>: This is the ID of the server <em>(not of the user to login as)</em>
-that matches the <code>id</code> element of the repository/mirror that Maven
-tries to connect to.</li>
-<li><strong>username</strong>, <strong>password</strong>: These elements appear as a pair denoting
-the login and password required to authenticate to this server.</li>
-<li><strong>privateKey</strong>, <strong>passphrase</strong>: Like the previous two elements, this
-pair specifies a path to a private key (default is
-<code>${user.home}/.ssh/id_dsa</code>) and a <code>passphrase</code>, if required. The
-<code>passphrase</code> and <code>password</code> elements may be externalized in the
-future, but for now they must be set plain-text in the
-<code>settings.xml</code> file.</li>
-<li><strong>filePermissions</strong>, <strong>directoryPermissions</strong>: When a repository
-file or directory is created on deployment, these are the
-permissions to use. The legal values of each is a three digit number
-corresponding to *nix file permissions, e.g. 664, or 775.</li>
-</ul>
-<p><em>Note:</em> If you use a private key to login to the server, make sure you
-omit the <code><password></code> element. Otherwise, the key will be ignored.</p><section>
-<h4>Password Encryption</h4>
-<p>A new feature - server password and passphrase encryption has been added
-to 2.1.0+. See details <a href="./guides/mini/guide-encryption.html">on this
-page</a></p></section></section><section>
-<h3>Mirrors</h3>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <mirrors>
- <mirror>
- <id>planetmirror.com</id>
- <name>PlanetMirror Australia</name>
- <url>http://downloads.planetmirror.com/pub/maven2</url>
- <mirrorOf>central</mirrorOf>
- </mirror>
- </mirrors>
- ...
-</settings>
-</code></pre></div>
-<ul>
-
-<li><strong>id</strong>, <strong>name</strong>: The unique identifier and user-friendly name of
-this mirror. The <code>id</code> is used to differentiate between <code>mirror</code>
-elements and to pick the corresponding credentials from the
-<a href="#Servers"><code><servers></code></a> section when connecting to the mirror.</li>
-<li><strong>url</strong>: The base URL of this mirror. The build system will use this
-URL to connect to a repository rather than the original repository
-URL.</li>
-<li><strong>mirrorOf</strong>: The <code>id</code> of the repository that this is a mirror of.
-For example, to point to a mirror of the Maven <code>central</code> repository
-(<code>https://repo.maven.apache.org/maven2/</code>), set this element to
-<code>central</code>. More advanced mappings like <code>repo1,repo2</code> or <code>*,!inhouse</code>
-are also possible. This must not match the mirror <code>id</code>.</li>
-</ul>
-<p>For a more in-depth introduction of mirrors, please read the <a href="./guides/mini/guide-mirror-settings.html">Guide to
-Mirror Settings</a>.</p></section><section>
-<h3>Proxies</h3>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <proxies>
- <proxy>
- <id>myproxy</id>
- <active>true</active>
- <protocol>http</protocol>
- <host>proxy.somewhere.com</host>
- <port>8080</port>
- <username>proxyuser</username>
- <password>somepassword</password>
- <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
- </proxy>
- </proxies>
- ...
-</settings>
-</code></pre></div>
-<ul>
-
-<li><strong>id</strong>: The unique identifier for this proxy. This is used to
-differentiate between <code>proxy</code> elements.</li>
-<li><strong>active</strong>: <code>true</code> if this proxy is active. This is useful for
-declaring a set of proxies, but only one may be active at a time.</li>
-<li><strong>protocol</strong>, <strong>host</strong>, <strong>port</strong>: The <code>protocol://host:port</code> of the
-proxy, separated into discrete elements.</li>
-<li><strong>username</strong>, <strong>password</strong>: These elements appear as a pair denoting
-the login and password required to authenticate to this proxy
-server.</li>
-<li><strong>nonProxyHosts</strong>: This is a list of hosts which should not be
-proxied. The delimiter of the list is the expected type of the proxy
-server; the example above is pipe delimited - comma delimited is
-also common.</li>
-</ul></section><section>
-<h3>Profiles</h3>
-<p>The <code>profile</code> element in the <code>settings.xml</code> is a truncated version of
-the <code>pom.xml</code> <code>profile</code> element. It consists of the <code>activation</code>,
-<code>repositories</code>, <code>pluginRepositories</code> and <code>properties</code> elements. The
-<code>profile</code> elements only include these four elements because they
-concerns themselves with the build system as a whole (which is the role
-of the <code>settings.xml</code> file), not about individual project object model
-settings.</p>
-<p>If a profile is active from <code>settings</code>, its values will override any
-equivalently ID'd profiles in a POM or <code>profiles.xml</code> file.</p><section>
-<h4>Activation</h4>
-<p>Activations are the key of a profile. Like the POM's profiles, the power
-of a profile comes from its ability to modify some values only under
-certain circumstances; those circumstances are specified via an
-<code>activation</code> element.</p>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <profiles>
- <profile>
- <id>test</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- <jdk>1.5</jdk>
- <os>
- <name>Windows XP</name>
- <family>Windows</family>
- <arch>x86</arch>
- <version>5.1.2600</version>
- </os>
- <property>
- <name>mavenVersion</name>
- <value>2.0.3</value>
- </property>
- <file>
- <exists>${basedir}/file2.properties</exists>
- <missing>${basedir}/file1.properties</missing>
- </file>
- </activation>
- ...
- </profile>
- </profiles>
- ...
-</settings>
-</code></pre></div>
-<p>Activation occurs when all specified criteria have been met, though not
-all are required at once.</p>
-<ul>
-
-<li><strong>jdk</strong>: <code>activation</code> has a built in, Java-centric check in the
-<code>jdk</code> element. This will activate if the test is run under a jdk
-version number that matches the prefix given. In the above example,
-<code>1.5.0_06</code> will match. Ranges are also supported.
-See the
-<a href="https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html" class="externalLink">maven-enforcer-plugin</a>
-for more details about supported ranges.</li>
-<li><strong>os</strong>: The <code>os</code> element can define some operating system specific
-properties shown above. See the
-<a href="https://maven.apache.org/plugins/maven-enforcer-plugin/rules/requireOS.html" class="externalLink">maven-enforcer-plugin</a>
-for more details about OS values.</li>
-<li><strong>property</strong>: The <code>profile</code> will activate if Maven detects a
-property (a value which can be dereferenced within the POM by
-<code>${name}</code>) of the corresponding <code>name=value</code> pair.</li>
-<li><strong>file</strong>: Finally, a given filename may activate the <code>profile</code> by
-the <code>existence</code> of a file, or if it is <code>missing</code>.</li>
-</ul>
-<p>The <code>activation</code> element is not the only way that a <code>profile</code> may be
-activated. The <code>settings.xml</code> file's <code>activeProfile</code> element may contain
-the profile's <code>id</code>. They may also be activated explicitly through the
-command line via a comma separated list after the <code>-P</code> flag (e.g.
-<code>-P test</code>).</p>
-<p><em>To see which profile will activate in a certain build, use the</em>
-<code>maven-help-plugin</code>.</p>
-
-<div class="verbatim">
-<pre><code>mvn help:active-profiles
-</code></pre></div></section><section>
-<h4>Properties</h4>
-<p>Maven properties are value placeholder, like properties in Ant. Their
-values are accessible anywhere within a POM by using the notation
-<code>${X}</code>, where <code>X</code> is the property. They come in five different styles,
-all accessible from the <code>settings.xml</code> file:</p>
-<ol style="list-style-type: decimal">
-
-<li><code>env.X</code>: Prefixing a variable with “env.” will return the shell's
-environment variable. For example, <code>${env.PATH}</code> contains the $path
-environment variable (<code>%PATH%</code> in Windows).</li>
-<li><code>project.x</code>: A dot (.) notated path in the POM will contain the
-corresponding element's value. For example:
-<code><project><version>1.0</version></project></code> is accessible via
-<code>${project.version}</code>.</li>
-<li><code>settings.x</code>: A dot (.) notated path in the <code>settings.xml</code> will
-contain the corresponding element's value. For example:
-<code><settings><offline>false</offline></settings></code> is accessible via
-<code>${settings.offline}</code>.</li>
-<li>Java System Properties: All properties accessible via
-<code>java.lang.System.getProperties()</code> are available as POM properties,
-such as <code>${java.home}</code>.</li>
-<li><code>x</code>: Set within a <properties /> element or an external files, the
-value may be used as <code>${someVar}</code>.</li>
-</ol><!-- -->
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <profiles>
- <profile>
- ...
- <properties>
- <user.install>${user.home}/our-project</user.install>
- </properties>
- ...
- </profile>
- </profiles>
- ...
-</settings>
-</code></pre></div>
-<p>The property <code>${user.install}</code> is accessible from a POM if this profile
-is active.</p></section><section>
-<h4>Repositories</h4>
-<p>Repositories are remote collections of projects from which Maven uses to
-populate the local repository of the build system. It is from this local
-repository that Maven calls it plugins and dependencies. Different
-remote repositories may contain different projects, and under the active
-profile they may be searched for a matching release or snapshot
-artifact.</p>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <profiles>
- <profile>
- ...
- <repositories>
- <repository>
- <id>codehausSnapshots</id>
- <name>Codehaus Snapshots</name>
- <releases>
- <enabled>false</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <url>http://snapshots.maven.codehaus.org/maven2</url>
- <layout>default</layout>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>myPluginRepo</id>
- <name>My Plugins repo</name>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <url>https://maven-central-eu....com/maven2/</url>
- </pluginRepository>
- </pluginRepositories>
- ...
- </profile>
- </profiles>
- ...
-</settings>
-</code></pre></div>
-<ul>
-
-<li><strong>releases</strong>, <strong>snapshots</strong>: These are the policies for each type of
-artifact, Release or snapshot. With these two sets, a POM has the
-power to alter the policies for each type independent of the other
-within a single repository. For example, one may decide to enable
-only snapshot downloads, possibly for development purposes.</li>
-<li><strong>enabled</strong>: <code>true</code> or <code>false</code> for whether this repository is
-enabled for the respective type (<code>releases</code> or <code>snapshots</code>).</li>
-<li><strong>updatePolicy</strong>: This element specifies how often updates should
-attempt to occur. Maven will compare the local POM's timestamp
-(stored in a repository's maven-metadata file) to the remote. The
-choices are: <code>always</code>, <code>daily</code> (default), <code>interval:X</code> (where X is
-an integer in minutes) or <code>never</code>.</li>
-<li><strong>checksumPolicy</strong>: When Maven deploys files to the repository, it
-also deploys corresponding checksum files. Your options are to
-<code>ignore</code>, <code>fail</code>, or <code>warn</code> on missing or incorrect checksums.</li>
-<li><strong>layout</strong>: In the above description of repositories, it was
-mentioned that they all follow a common layout. This is mostly
-correct. Maven 2 has a default layout for its repositories; however,
-Maven 1.x had a different layout. Use this element to specify which
-if it is <code>default</code> or <code>legacy</code>.</li>
-</ul></section><section>
-<h4>Plugin Repositories</h4>
-<p>Repositories are home to two major types of artifacts. The first are
-artifacts that are used as dependencies of other artifacts. These are
-the majority of artifacts that reside within central. The other type of
-artifact is plugins. Maven plugins are themselves a special type of
-artifact. Because of this, plugin repositories may be separated from
-other repositories (although, I have yet to hear a convincing argument
-for doing so). In any case, the structure of the <code>pluginRepositories</code>
-element block is similar to the <code>repositories</code> element. The
-<code>pluginRepository</code> elements each specify a remote location of where
-Maven can find new plugins.</p></section></section><section>
-<h3>Active Profiles</h3>
-
-<div class="verbatim">
-<pre><code class="language-xml"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <activeProfiles>
- <activeProfile>env-test</activeProfile>
- </activeProfiles>
-</settings>
-</code></pre></div>
-<p>The final piece of the <code>settings.xml</code> puzzle is the <code>activeProfiles</code>
-element. This contains a set of <code>activeProfile</code> elements, which each
-have a value of a <code>profile</code> <code>id</code>. Any <code>profile</code> <code>id</code> defined as an
-<code>activeProfile</code> will be active, regardless of any environment settings.
-If no matching profile is found nothing will happen. For example, if
-<code>env-test</code> is an <code>activeProfile</code>, a profile in a <code>pom.xml</code> (or
-<code>profile.xml</code> with a corresponding <code>id</code> will be active. If no such
-profile is found then execution will continue as normal.</p></section></section></section>
+<section>
</main>
</div>
</div>