You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/06 17:05:46 UTC
(maven-remote-resources-plugin) 02/02: Port the site documentation from APT to Markdown
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-remote-resources-plugin.git
commit d20981b392affe873b3150aa71662d97a8b3e3db
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Thu Aug 6 13:53:01 2026 +0200
Port the site documentation from APT to Markdown
4 page(s) converted with doxia-converter and then cleaned up by hand:
- <<<code>>> becomes backticks, <<bold>> becomes **bold**, {{{url}text}}
becomes [text](url)
- the ASF license header becomes a single block HTML comment
- a page whose only Velocity reference was ${project.name} is now a plain
.md with the title spelled out
- a page that keeps a reference stays a .vm. Velocity reads ## as a line
comment and would silently swallow every ATX heading below level one, so
subsections use setext underlines and anything deeper is wrapped in
#[[ ... ]]#
- references APT rendered literally are escaped, so they do not resolve
Verified by building the site before and after and comparing every
generated page: the visible text and the link targets are unchanged apart
from <b>/<i> becoming <strong>/<em> and quotes in prose picking up the
Markdown module's typographic substitution.
---
src/site/markdown/examples/sharing-resources.md.vm | 97 +++++------
src/site/markdown/index.md.vm | 134 ++++++---------
src/site/markdown/supplemental-models.md.vm | 189 +++++++++------------
src/site/markdown/usage.md.vm | 165 ++++++++----------
4 files changed, 235 insertions(+), 350 deletions(-)
diff --git a/src/site/markdown/examples/sharing-resources.md.vm b/src/site/markdown/examples/sharing-resources.md.vm
index 99d3687..3260482 100644
--- a/src/site/markdown/examples/sharing-resources.md.vm
+++ b/src/site/markdown/examples/sharing-resources.md.vm
@@ -1,43 +1,32 @@
- ------
- Sharing Resources
- ------
- Dennis Lundberg
- ------
- 2011-12-23
- ------
+<!--
+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
-~~ 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.
+http://www.apache.org/licenses/LICENSE-2.0
-Sharing Resources
+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.
+-->
- The Remote Resources Plugin can also be used to share resources between
- modules in a multi module build. In the following example we have a set of
- files that are used to set up a test environment for a database. We want to
- reuse these resources in several modules in our project.
+# Sharing Resources
+The Remote Resources Plugin can also be used to share resources between modules in a multi module build. In the following example we have a set of files that are used to set up a test environment for a database. We want to reuse these resources in several modules in our project.
-* Set up a module for the resources to be shared
+Set up a module for the resources to be shared
+----------------------------------------------
- Create a new module called <<<shared-resources>>>. Put the files in a
- directory layout like the one below, making sure that your resource files are
- in the <<<src/main/resources>>> directory:
+Create a new module called `shared-resources`. Put the files in a directory layout like the one below, making sure that your resource files are in the `src/main/resources` directory:
--------------------
+```
shared-resources
|
+- src
@@ -51,11 +40,11 @@ shared-resources
| `- database.sql
|
`- pom.xml
--------------------
+```
- The POM for <<<shared-resources>>> should look like this:
+The POM for `shared-resources` should look like this:
--------------------
+```
<project>
...
<groupId>org.test</groupId>
@@ -84,19 +73,16 @@ shared-resources
</build>
...
</project>
--------------------
-
- This will bundle the shared resources in a JAR file during the
- <<<generate-resources>>> phase. This means that others modules can consume
- these resources in any phase after that.
+```
+This will bundle the shared resources in a JAR file during the `generate-resources` phase. This means that others modules can consume these resources in any phase after that.
-* Configure other modules to use the shared module
+Configure other modules to use the shared module
+------------------------------------------------
- To use the shared resources in another module you need to configure the plugin
- as follows:
+To use the shared resources in another module you need to configure the plugin as follows:
--------------------
+```
<project>
...
<groupId>org.test</groupId>
@@ -110,7 +96,7 @@ shared-resources
<version>${project.version}</version>
<configuration>
<resourceBundles>
- <resourceBundle>org.test:shared-resources:\${project.version}</resourceBundle>
+ <resourceBundle>org.test:shared-resources:${esc.d}{project.version}</resourceBundle>
</resourceBundles>
</configuration>
<executions>
@@ -139,8 +125,8 @@ shared-resources
<configuration>
<autocommit>true</autocommit>
<srcFiles>
- <srcFile>\${project.build.directory}/maven-shared-archive-resources/database.ddl</srcFile>
- <srcFile>\${project.build.directory}/maven-shared-archive-resources/database.sql</srcFile>
+ <srcFile>${esc.d}{project.build.directory}/maven-shared-archive-resources/database.ddl</srcFile>
+ <srcFile>${esc.d}{project.build.directory}/maven-shared-archive-resources/database.sql</srcFile>
</srcFiles>
</configuration>
</execution>
@@ -152,19 +138,14 @@ shared-resources
...
<dependencies>
<dependency>
- <groupId>\${project.groupId}</groupId>
+ <groupId>${esc.d}{project.groupId}</groupId>
<artifactId>shared-resources</artifactId>
- <version>\${project.version}</version>
+ <version>${esc.d}{project.version}</version>
</dependency>
</dependencies>
</project>
--------------------
+```
- This will retrieve the bundled resources of the <<<shared-resources>>>
- module, process each resource in the bundle and put them in the
- <<<$\{project.build.directory}/maven-shared-archive-resources>>> directory of the
- <<<resource-consumer>>> module.
+This will retrieve the bundled resources of the `shared-resources` module, process each resource in the bundle and put them in the `${esc.d}{project.build.directory}/maven-shared-archive-resources` directory of the `resource-consumer` module.
- That means we can use those files in the SQL Maven Plugin to set up the
- database schema using a DDL file, and add some data to the database using an
- SQL file.
+That means we can use those files in the SQL Maven Plugin to set up the database schema using a DDL file, and add some data to the database using an SQL file.
diff --git a/src/site/markdown/index.md.vm b/src/site/markdown/index.md.vm
index 536d67c..c3140f7 100644
--- a/src/site/markdown/index.md.vm
+++ b/src/site/markdown/index.md.vm
@@ -1,83 +1,51 @@
- ------
- Introduction
- ------
- Jason van Zyl
- ------
- 2013-07-22
- ------
-
-~~ 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.
-
-${project.name}
-
- This plugin is used to retrieve JARs of resources from remote repositories,
- process those resources, and incorporate them into JARs you build with
- Maven.
-
- A very common use-case is the need to package certain resources in a
- consistent way across your organization. For example at Apache, it is required that every
- JAR produced contains a copy of the Apache license and a notice file that
- references all used software in a given project: see {{{/apache-resource-bundles/}Apache Resource Bundles}}.
-
-* Goals Overview
-
- * {{{./bundle-mojo.html}remote-resources:bundle}} creates the resource bundle manifest required
- by the remote resource bundle processing. The {{{./remote-resources.html}manifest file}},
- <<<$\{basedir\}/target/classes/META-INF/maven/remote-resources.xml>>>, is created from the contents of the
- <<<src/main/resources>>> directory.
-
- * {{{./process-mojo.html}remote-resources:process}} retrieves the specified
- remote resource bundles, processes them and makes them available to the
- <<<process-resources>>> phase.
-
- * {{{./aggregate-mojo.html}remote-resources:aggregate}} retrieves the specified
- remote resource bundles, processes them and makes them available to the
- <<<process-resources>>> phase in aggregate mode.
-
- []
-
-* Usage
-
- General instructions on how to use the Remote Resources Plugin can be found on the {{{./usage.html}usage page}}.
- Some more specific use cases are described in the examples given below.
-
- If you need help using some of the more advanced features of the plugin, check out the advanced help pages:
-
- * {{{./supplemental-models.html}Patching Bad POMs with Supplemental Models}}
-
- []
-
- In case you still have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel
- free to contact the {{{./mailing-lists.html}user mailing list}}. The posts to the mailing list are archived and could
- already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching
- the {{{./mailing-lists.html}mail archive}}.
-
- If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our
- {{{./issue-management.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your
- concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason,
- entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated.
- Of course, patches are welcome, too. Contributors can check out the project from our
- {{{./scm.html}source repository}} and will find supplementary information in the
- {{{/guides/development/guide-helping.html}guide to helping with Maven}}.
-
-* Examples
-
- To provide you with better understanding of some usages of the Remote Resources Plugin,
- you can take a look at the following examples:
-
- * {{{./examples/sharing-resources.html}Sharing Resources Example}}
+<!--
+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.
+-->
+
+# ${project.name}
+
+This plugin is used to retrieve JARs of resources from remote repositories, process those resources, and incorporate them into JARs you build with Maven.
+
+A very common use-case is the need to package certain resources in a consistent way across your organization. For example at Apache, it is required that every JAR produced contains a copy of the Apache license and a notice file that references all used software in a given project: see [Apache Resource Bundles](/apache-resource-bundles/).
+
+Goals Overview
+--------------
+
+- [remote-resources:bundle](./bundle-mojo.html) creates the resource bundle manifest required by the remote resource bundle processing. The [manifest file](./remote-resources.html), `${esc.d}{basedir}/target/classes/META-INF/maven/remote-resources.xml`, is created from the contents of the `src/main/resources` directory.
+- [remote-resources:process](./process-mojo.html) retrieves the specified remote resource bundles, processes them and makes them available to the `process-resources` phase.
+- [remote-resources:aggregate](./aggregate-mojo.html) retrieves the specified remote resource bundles, processes them and makes them available to the `process-resources` phase in aggregate mode.
+
+Usage
+-----
+
+General instructions on how to use the Remote Resources Plugin can be found on the [usage page](./usage.html). Some more specific use cases are described in the examples given below.
+
+If you need help using some of the more advanced features of the plugin, check out the advanced help pages:
+
+- [Patching Bad POMs with Supplemental Models](./supplemental-models.html)
+
+In case you still have questions regarding the plugin's usage, please have a look at the [FAQ](./faq.html) and feel free to contact the [user mailing list](./mailing-lists.html). The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the [mail archive](./mailing-lists.html).
+
+If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our [issue tracker](./issue-management.html). When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are wel [...]
+
+Examples
+--------
+
+To provide you with better understanding of some usages of the Remote Resources Plugin, you can take a look at the following examples:
+
+- [Sharing Resources Example](./examples/sharing-resources.html)
diff --git a/src/site/markdown/supplemental-models.md.vm b/src/site/markdown/supplemental-models.md.vm
index 24e892a..4a9d421 100644
--- a/src/site/markdown/supplemental-models.md.vm
+++ b/src/site/markdown/supplemental-models.md.vm
@@ -1,62 +1,40 @@
- ------
- Supplementing Missing POM Information
- ------
- John Casey
- ------
- 2011-01-09
- ------
-
-~~ 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.
-
-Supplementing Missing POM Information
-
- One of Maven's great strengths is that it allows you, the user, to build directly on the work of
- others with minimal effort. For instance, by adding five lines (or less) to your POM, you can
- declare a dependency on someone else's library, and instruct Maven to use that library during
- the build for your own project. Since the library's JAR is usually accompanied by a POM of its
- own, your project doesn't need to provide an exhaustive listing of all libraries used by all
- of your direct dependencies.
-
- However, this approach of reusing POM metadata from your dependencies can be inhibited by a
- dependency POM that provides less-than-complete information about its project. While most POMs
- provide reasonably accurate information about their dependencies, they sometimes leave out some
- information critical to assembling licensing and dependency notice files.
-
- For example, the templates used by many Apache distributions assemble a listing of project
- dependencies according to their organization name (and URL), along with the URL of each project's
- website. When dependency POMs are missing this information, the dependency notice file
- that the Remote Resources Plugin renders can be invalid.
-
- To compensate for incomplete dependency POMs, you can use the supplemental models support.
-
-
-* Fixing Incomplete POMs: Using Supplemental Models
-
- For those cases where your project's dependencies don't list organization name, organization URL,
- project URL, or whatever other metadata you require for you legal notice files, the Remote Resources
- Plugin allows you to configure a series of supplemental models. These models consist of one or more
- model files, each of which contains one or more POM fragments that can be merged into existing
- dependency POMs to supplement the metadata provided there. The plugin uses the key <<<groupId:artifactId>>>
- to match each supplemental model with the dependency POM into which it should be merged.
-
- For example, imagine that your project's POM has declared the following two dependencies:
-
-+---+
+<!--
+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.
+-->
+
+# Supplementing Missing POM Information
+
+One of Maven's great strengths is that it allows you, the user, to build directly on the work of others with minimal effort. For instance, by adding five lines (or less) to your POM, you can declare a dependency on someone else's library, and instruct Maven to use that library during the build for your own project. Since the library's JAR is usually accompanied by a POM of its own, your project doesn't need to provide an exhaustive listing of all libraries used by all of your direct depe [...]
+
+However, this approach of reusing POM metadata from your dependencies can be inhibited by a dependency POM that provides less-than-complete information about its project. While most POMs provide reasonably accurate information about their dependencies, they sometimes leave out some information critical to assembling licensing and dependency notice files.
+
+For example, the templates used by many Apache distributions assemble a listing of project dependencies according to their organization name (and URL), along with the URL of each project's website. When dependency POMs are missing this information, the dependency notice file that the Remote Resources Plugin renders can be invalid.
+
+To compensate for incomplete dependency POMs, you can use the supplemental models support.
+
+Fixing Incomplete POMs: Using Supplemental Models
+-------------------------------------------------
+
+For those cases where your project's dependencies don't list organization name, organization URL, project URL, or whatever other metadata you require for you legal notice files, the Remote Resources Plugin allows you to configure a series of supplemental models. These models consist of one or more model files, each of which contains one or more POM fragments that can be merged into existing dependency POMs to supplement the metadata provided there. The plugin uses the key `groupId:artifa [...]
+
+For example, imagine that your project's POM has declared the following two dependencies:
+
+```xml
<dependency>
<groupId>org.foo</groupId>
<artifactId>missing-org-info</artifactId>
@@ -67,28 +45,22 @@ Supplementing Missing POM Information
<artifactId>missing-project-url</artifactId>
<version>1</version>
</dependency>
-+---+
+```
- Now imagine that your project needs to include a file in its distribution that lists organization and
- project URLs for each dependency, in a format like this:
-
-+---+
+Now imagine that your project needs to include a file in its distribution that lists organization and project URLs for each dependency, in a format like this:
+
+```unknown
From: Apache Software Foundation (http://www.apache.org/)
- Commons FOO (http://commons.apache.org/foo/) org.apache.commons.foo:foo:1
- Commons BAR (http://commons.apache.org/bar/) org.apache.commons.bar:bar:1
-+---+
-
- However, as you try generating these licensing resources for your project, you quickly learn that your dependencies
- provide POMs that don't always include all the information needed by this format. The first dependency is missing
- all of the information provided by the <<<organization>>> element of the POM, and the second is missing a project-
- specific URL (the <<<url>>> element of the POM).
-
- To fix these omissions for the purposes of resource generation, we can simply provide a supplemental-model file that
- contains the missing information. The file, located at <<<src/main/appended-resources/supplemental-models.xml>>>,
- would look something like this:
-
-+---+
+```
+
+However, as you try generating these licensing resources for your project, you quickly learn that your dependencies provide POMs that don't always include all the information needed by this format. The first dependency is missing all of the information provided by the `organization` element of the POM, and the second is missing a project- specific URL (the `url` element of the POM).
+
+To fix these omissions for the purposes of resource generation, we can simply provide a supplemental-model file that contains the missing information. The file, located at `src/main/appended-resources/supplemental-models.xml`, would look something like this:
+
+```xml
<?xml version="1.0" encoding="UTF-8"?>
<supplementalDataModels xmlns="http://maven.apache.org/supplemental-model/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 https://maven.apache.org/xsd/supplemental-model-1.0.0.xsd">
@@ -112,11 +84,11 @@ From: Apache Software Foundation (http://www.apache.org/)
</project>
</supplement>
</supplementalDataModels>
-+---+
+```
- Finally, we tell the Remote Resources Plugin to use the new supplemental-model file:
-
-+---+
+Finally, we tell the Remote Resources Plugin to use the new supplemental-model file:
+
+```xml
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>${project.version}</version>
@@ -135,26 +107,20 @@ From: Apache Software Foundation (http://www.apache.org/)
</execution>
</executions>
</plugin>
-+---+
-
- After re-running the project build, the supplemental information we provided will be merged with the metadata
- from the dependency POMs, providing enough information to complete the dependencies listing.
-
-
-* Publishing and Reusing Supplemental Models
-
- The configuration above is fine for single projects that need to address deficiencies in their dependencies'
- metadata. But what happens when your organization wants to use these same deficient dependencies across multiple
- projects? The configuration we just examined cannot handle reuse of supplemental-model files.
-
- To address this shortcoming, the Remote Resources Plugin includes the
- <<<supplementalModelArtifacts>>> parameter. When combined with the <<<supplementalModels>>> parameter used above, this
- parameter allows the Remote Resources Plugin to resolve artifacts containing supplemental model information, then
- search those artifacts for the paths given in the <<<supplementalModels>>> listing.
-
- To make the supplemental models above reusable using this mechanism, we first publish them in their own project:
-
-+---+
+```
+
+After re-running the project build, the supplemental information we provided will be merged with the metadata from the dependency POMs, providing enough information to complete the dependencies listing.
+
+Publishing and Reusing Supplemental Models
+------------------------------------------
+
+The configuration above is fine for single projects that need to address deficiencies in their dependencies' metadata. But what happens when your organization wants to use these same deficient dependencies across multiple projects? The configuration we just examined cannot handle reuse of supplemental-model files.
+
+To address this shortcoming, the Remote Resources Plugin includes the `supplementalModelArtifacts` parameter. When combined with the `supplementalModels` parameter used above, this parameter allows the Remote Resources Plugin to resolve artifacts containing supplemental model information, then search those artifacts for the paths given in the `supplementalModels` listing.
+
+To make the supplemental models above reusable using this mechanism, we first publish them in their own project:
+
+```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -164,23 +130,21 @@ From: Apache Software Foundation (http://www.apache.org/)
<artifactId>dependency-resource-supplement</artifactId>
<version>1</version>
</project>
-+---+
+```
+
+Note that this is just a simple, unadorned JAR artifact. We then move the above POM and `supplemental-models.xml` file into a separate project directory structure:
- Note that this is just a simple, unadorned JAR artifact. We then move the above POM and <<<supplemental-models.xml>>> file
- into a separate project directory structure:
-
-+---+
+```unknown
|-- pom.xml
`-- src
`-- main
`-- resources
`-- supplemental-models.xml
-+---+
+```
+
+Once we install this new project, we can reference it from the configuration for the Remote Resources Plugin, like this:
- Once we install this new project, we can reference it from the configuration for the Remote Resources Plugin,
- like this:
-
-+---+
+```xml
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>${project.version}</version>
@@ -205,7 +169,6 @@ From: Apache Software Foundation (http://www.apache.org/)
</execution>
</executions>
</plugin>
-+---+
+```
- Once the <<<supplemental-model>>> project is released and deployed, any number of projects can then make use of the
- supplemental information it provides.
+Once the `supplemental-model` project is released and deployed, any number of projects can then make use of the supplemental information it provides.
diff --git a/src/site/markdown/usage.md.vm b/src/site/markdown/usage.md.vm
index 2c6d530..2a60eb6 100644
--- a/src/site/markdown/usage.md.vm
+++ b/src/site/markdown/usage.md.vm
@@ -1,40 +1,32 @@
- ------
- Usage
- ------
- Jason van Zyl
- John Casey
- ------
- 2011-01-20
- ------
-
-~~ 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.
-
-Usage
-
- To handle filtering this version of Maven Remote Resources Plugin uses
- {{{/shared/maven-filtering/index.html}Maven Filtering}} ${mavenFilteringVersion}.
-
-
-* How to Create a Resource Bundle
-
- To turn on the bundle resource manifest generation you need to configure the plugin as follows:
-
-+---+
+<!--
+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.
+-->
+
+# Usage
+
+To handle filtering this version of Maven Remote Resources Plugin uses [Maven Filtering](/shared/maven-filtering/index.html) ${mavenFilteringVersion}.
+
+How to Create a Resource Bundle
+-------------------------------
+
+To turn on the bundle resource manifest generation you need to configure the plugin as follows:
+
+```xml
<project>
...
<build>
@@ -55,21 +47,18 @@ Usage
</build>
...
</project>
-+---+
-
- This will trigger the scanning of that project's <<<$\{basedir}/src/main/resources>>> directory and create the
- <<<$\{basedir}/target/classes/META-INF/maven/remote-resources.xml>>> {{{./remote-resources.html}manifest file}}.
+```
- <<Note:>> The files have to be named like <<<*.vm>>> to mark them as {{{htps://velocity.apache.org}Velocity}} macro files which will
- be filtered by the <<process>> goal. If you don't name the files according to this,
- they will not be filtered.
+This will trigger the scanning of that project's `${esc.d}{basedir}/src/main/resources` directory and create the `${esc.d}{basedir}/target/classes/META-INF/maven/remote-resources.xml` [manifest file](./remote-resources.html).
+**Note:** The files have to be named like `*.vm` to mark them as [Velocity](htps://velocity.apache.org) macro files which will be filtered by the **process** goal. If you don't name the files according to this, they will not be filtered.
-* How to Use Remote Resource Bundles
+How to Use Remote Resource Bundles
+----------------------------------
- To use remote resource bundles you need to configure the plugin as follows:
+To use remote resource bundles you need to configure the plugin as follows:
-+---+
+```xml
<project>
...
<build>
@@ -96,32 +85,24 @@ Usage
</build>
...
</project>
-+---+
+```
- This will retrieve the <<<apache-jar-resource-bundle-1.0.jar>>> from the remote repositories
- specified in your POM, process each resource in the bundle and deposit them in your projects
- <<<$\{basedir}/target/classes>>> directory.
+This will retrieve the `apache-jar-resource-bundle-1.0.jar` from the remote repositories specified in your POM, process each resource in the bundle and deposit them in your projects `${esc.d}{basedir}/target/classes` directory.
+Running Once in a Multi-Module Build
+------------------------------------
-* Running Once in a Multi-Module Build
+**Note:** The parameter `runOnlyAtExecutionRoot` was removed in version **3.1.0** and was replaced by `aggregate` goal.
- <<Note:>> The parameter <<<runOnlyAtExecutionRoot>>> was removed in version <<3.1.0>>
- and was replaced by <<<aggregate>>> goal.
+In many cases, an application build consists of multiple Maven modules, but you only need to include the license files, dependencies listing, etc. once for the entire application. Of course, in such cases, the dependencies listing needs to aggregate all dependencies of all modules.
- In many cases, an application build consists of multiple Maven modules, but you only need to
- include the license files, dependencies listing, etc. once for the entire application. Of course,
- in such cases, the dependencies listing needs to aggregate all dependencies of all modules.
+To accomplish this, you can use the `aggregate` goal when you configure the Remote Resources Plugin in your application root POM. You must configure execution with **inherited** set to **false** to limit execution only in root POM of your application.
- To accomplish this, you can use the <<<aggregate>>> goal when you configure
- the Remote Resources Plugin in your application root POM.
- You must configure execution with <<inherited>> set to <<false>> to limit execution only in root POM of your application.
+In most cases, the application's distribution archives will be created at this top directory, so this is a natural location into which licensing and dependency information should be generated.
- In most cases, the application's distribution archives will be created at this top directory, so this is a natural
- location into which licensing and dependency information should be generated.
+To run the Remote Resources Plugin only in the root of your project, use the following:
- To run the Remote Resources Plugin only in the root of your project, use the following:
-
-+---+
+```xml
<project>
...
<build>
@@ -146,22 +127,18 @@ Usage
</build>
...
</project>
-+---+
+```
+
+Specifying Delimiters for Filterable Expressions
+------------------------------------------------
+**Note:** This feature was added in version 1.1.
-* Specifying Delimiters for Filterable Expressions
+By default, the Remote Resources Plugin supports expressions specified using either the '`${esc.d}{expr}`' or '`@expr@`' format. However, at times it may be more convenient to use a different set of filter delimiters. By configuring the `filterDelimiters` and `useDefaultFilterDelimiters` parameters, you have a high degree of control over the filtering process.
- <<Note:>> This feature was added in version 1.1.
+To enable the filter delimiters for the format '`#{expr}`' (Ruby-style), add the following to your plugin configuration:
- By default, the Remote Resources Plugin supports expressions specified using either the '<<<$\{expr}>>>' or '<<<@expr@>>>' format.
- However, at times it may be more convenient to use a different set of filter delimiters. By configuring the
- <<<filterDelimiters>>> and <<<useDefaultFilterDelimiters>>> parameters, you have a high degree of control over the
- filtering process.
-
- To enable the filter delimiters for the format '<<<#\{expr}>>>' (Ruby-style), add the following to your plugin
- configuration:
-
-+---+
+```xml
<project>
...
<build>
@@ -186,15 +163,13 @@ Usage
</build>
...
</project>
-+---+
-
- Notice the '<<<*>>>' character above. This denotes the dividing point between start and end delimiter, where the actual
- expression will be specified.
-
- If your start and end delimiters are the same, you can use an even simpler configuration. For example, to enable filter
- delimiters for the format '<<<#expr#>>>', add the following to your plugin configuration:
-
-+---+
+```
+
+Notice the '`*`' character above. This denotes the dividing point between start and end delimiter, where the actual expression will be specified.
+
+If your start and end delimiters are the same, you can use an even simpler configuration. For example, to enable filter delimiters for the format '`#expr#`', add the following to your plugin configuration:
+
+```xml
<project>
...
<build>
@@ -219,15 +194,13 @@ Usage
</build>
...
</project>
-+---+
-
- When the filter processor executes and notices this delimiter specification missing a '<<<*>>>' character, it will simply
- assume the provided delimiter will be used as both the start <and> end delimiter for an expression.
-
- All of the above assumes that you still want the ability to use '<<<$\{expr}>>>' and '<<<@expr@>>>' delimiters. However, in
- cases where this would cause trouble, you can disable these default delimiters as follows:
-
-+---+
+```
+
+When the filter processor executes and notices this delimiter specification missing a '`*`' character, it will simply assume the provided delimiter will be used as both the start _and_ end delimiter for an expression.
+
+All of the above assumes that you still want the ability to use '`${esc.d}{expr}`' and '`@expr@`' delimiters. However, in cases where this would cause trouble, you can disable these default delimiters as follows:
+
+```xml
<project>
...
<build>
@@ -250,4 +223,4 @@ Usage
</build>
...
</project>
-+---+
+```