This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch maven-resources-plugin-4.x
in repository https://gitbox.apache.org/repos/asf/maven-resources-plugin.git
The following commit(s) were added to refs/heads/maven-resources-plugin-4.x by
this push:
new 545767e Give code blocks a real language instead of unknown
545767e is described below
commit 545767e5e2cad6655381d8f14d223f5b565151cf
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 2 14:11:12 2026 +0000
Give code blocks a real language instead of unknown
---
.../markdown/examples/binaries-filtering.md.vm | 2 +-
src/site/markdown/examples/copy-resources.md.vm | 2 +-
.../examples/custom-resource-filters.md.vm | 6 ++---
src/site/markdown/examples/encoding.md.vm | 4 +--
src/site/markdown/examples/escape-filtering.md.vm | 2 +-
src/site/markdown/examples/filter.md | 30 +++++++++++-----------
.../examples/filtering-properties-files.md.vm | 2 +-
src/site/markdown/examples/include-exclude.md | 10 ++++----
src/site/markdown/examples/resource-directory.md | 10 ++++----
src/site/markdown/usage.md.vm | 6 ++---
10 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/src/site/markdown/examples/binaries-filtering.md.vm
b/src/site/markdown/examples/binaries-filtering.md.vm
index 9643fa4..d5bd71f 100644
--- a/src/site/markdown/examples/binaries-filtering.md.vm
+++ b/src/site/markdown/examples/binaries-filtering.md.vm
@@ -30,7 +30,7 @@ The plugin will prevent binary files filtering without adding
some `excludes` co
If you like to add supplemental file extensions this can simply achieved by
using a configuration like the following:
-```unknown
+```xml
<project>
...
<build>
diff --git a/src/site/markdown/examples/copy-resources.md.vm
b/src/site/markdown/examples/copy-resources.md.vm
index 7295ce8..f3bc608 100644
--- a/src/site/markdown/examples/copy-resources.md.vm
+++ b/src/site/markdown/examples/copy-resources.md.vm
@@ -32,7 +32,7 @@ Note that filtering in `copy-resources` follows the same
property precedence rul
`resources` goal. See [Filtering — Property
Precedence](./filter.html#Property_Precedence)
for details.
-```unknown
+```xml
<project>
...
<build>
diff --git a/src/site/markdown/examples/custom-resource-filters.md.vm
b/src/site/markdown/examples/custom-resource-filters.md.vm
index afbcab0..9744ac8 100644
--- a/src/site/markdown/examples/custom-resource-filters.md.vm
+++ b/src/site/markdown/examples/custom-resource-filters.md.vm
@@ -33,7 +33,7 @@ Custom Resources Filter Implementation
# Custom resource filter classes must be marked as a component with the
javax.inject.Named annotation, and are usually also singletons. Below is an
example named "itFilter"
-```unknown
+```java
@Singleton
@Named("itFilter")
public class ItFilter
@@ -45,7 +45,7 @@ Dependency declaration
# Your classes must be available in the maven-resources-plugin classpath. This
can be done by adding your artifact to the plugin dependencies.
-```unknown
+```xml
<project>
...
<build>
@@ -77,7 +77,7 @@ Use of your Custom Resource Filter with the
maven-resources-plugin
# You must now declare the custom filter in the plugin.
-```unknown
+```xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
diff --git a/src/site/markdown/examples/encoding.md.vm
b/src/site/markdown/examples/encoding.md.vm
index 2abf122..2762895 100644
--- a/src/site/markdown/examples/encoding.md.vm
+++ b/src/site/markdown/examples/encoding.md.vm
@@ -31,7 +31,7 @@ A character encoding scheme such as `ASCII`, `UTF-8` or
`UTF-16` can be chosen t
The best practice is to [define
encoding](https://maven.apache.org/general.html#encoding-warning) for copying
filtered resources via the property `${esc.d}{project.build.sourceEncoding}`
which should be defined in the pom properties section like this:
-```unknown
+```xml
<project ...>
...
<properties>
@@ -46,7 +46,7 @@ By using the above property `maven-resources-plugin` will
automatically use this
Occasionally you need to change the encoding explicitly for different
purposes. This can be done by defining the encoding via the configuration like
this:
-```unknown
+```xml
<project>
...
<build>
diff --git a/src/site/markdown/examples/escape-filtering.md.vm
b/src/site/markdown/examples/escape-filtering.md.vm
index 98dab98..9d5f0c6 100644
--- a/src/site/markdown/examples/escape-filtering.md.vm
+++ b/src/site/markdown/examples/escape-filtering.md.vm
@@ -32,7 +32,7 @@ This means expression ${esc.d}{ } and @ @ preceded will
replace by the expressio
**The escapeString will be removed**
-```unknown
+```xml
<project>
...
<build>
diff --git a/src/site/markdown/examples/filter.md
b/src/site/markdown/examples/filter.md
index 7b76360..8171338 100644
--- a/src/site/markdown/examples/filter.md
+++ b/src/site/markdown/examples/filter.md
@@ -30,13 +30,13 @@ Variables can be included in your resources. These
variables, denoted by the `${
For example, if you have a resource `src/main/resources/hello.txt` containing
-```unknown
+```text
Hello ${name}
```
And a POM like this
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
@@ -57,19 +57,19 @@ And a POM like this
Upon calling
-```unknown
+```shell
mvn resources:resources
```
This will create a resource output in `target/classes/hello.txt` which
contains exactly the same text.
-```unknown
+```text
Hello ${name}
```
However, if you add a `<filtering>` element to our POM and set it to `true`
like this:
-```unknown
+```xml
<project>
...
<resource>
@@ -82,13 +82,13 @@ However, if you add a `<filtering>` element to our POM and
set it to `true` like
Your `target/classes/hello.txt` after calling
-```unknown
+```shell
mvn resources:resources
```
would be
-```unknown
+```text
Hello My Resources Plugin Practice Project
```
@@ -96,19 +96,19 @@ That's because the name variable was replaced by the value
of the project's name
Moreover, you can also assign values through the command line using the "-D"
option. For example, to change the value for the variable `name` to "world",
invoke this command:
-```unknown
+```bash
mvn resources:resources -Dname="world"
```
And the output in `target/classes/hello.txt` would be
-```unknown
+```text
Hello world
```
Furthermore, you are not limited to pre-defined project variables. You can
specify your own variables and their values in the `<properties>` element. For
example, if you want to change the variable from "name" to "your.name", add a
`<your.name>` element within the `<properties>` element.
-```unknown
+```xml
<project>
...
<properties>
@@ -120,7 +120,7 @@ Furthermore, you are not limited to pre-defined project
variables. You can speci
But to organize your project, you may want to put all your variables and their
values in a separate file so that you will not have to rewrite your POM, or set
their values all the time with every build. This can be done by adding a filter.
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
@@ -138,13 +138,13 @@ But to organize your project, you may want to put all
your variables and their v
For example, you can separate "your.name" from the POM by specifying a filter
file `my-filter-values.properties` containing:
-```unknown
+```text
your.name = world
```
and adding that to our POM
-```unknown
+```xml
<project>
...
<filters>
@@ -158,7 +158,7 @@ and adding that to our POM
If you have both text files and binary files as resources, it is recommended
to have two separated folders: one folder `src/main/resources` (default) for
the resources which are not filtered and another folder
`src/main/resources-filtered` for the resources which are filtered.
-```unknown
+```xml
<project>
...
<build>
@@ -206,7 +206,7 @@ A common pattern is to provide default values in a filter
file and let the POM (
command line) override specific values:
`default-values.properties`:
-```unknown
+```text
app.name = My Application
app.description = A sample application
```
diff --git a/src/site/markdown/examples/filtering-properties-files.md.vm
b/src/site/markdown/examples/filtering-properties-files.md.vm
index cc5e953..8c24e2a 100644
--- a/src/site/markdown/examples/filtering-properties-files.md.vm
+++ b/src/site/markdown/examples/filtering-properties-files.md.vm
@@ -53,7 +53,7 @@ You need to do 2 things:
1. Decide which encoding to use for properties files, based on how you use
them in your project.
1. Explicitly configure Maven Resource Plugin accordingly using the
`propertiesEncoding` configuration parameter, that was introduced in version
3.2.0. In most cases it would look like this:
- ```unknown
+ ```xml
<project>
...
<build>
diff --git a/src/site/markdown/examples/include-exclude.md
b/src/site/markdown/examples/include-exclude.md
index a10f370..c0994c9 100644
--- a/src/site/markdown/examples/include-exclude.md
+++ b/src/site/markdown/examples/include-exclude.md
@@ -30,7 +30,7 @@ When specifying a resource directory, every file within that
directory may not b
To include a resource, we only need to add an `<includes>` element.
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
@@ -58,7 +58,7 @@ To include a resource, we only need to add an `<includes>`
element.
And to exclude a resource, we only need to add an `<excludes>` element.
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
@@ -86,7 +86,7 @@ And to exclude a resource, we only need to add an
`<excludes>` element.
For example, if we want to include all text and RTF files under our
`src/my-resources` directory and in all its subdirectories, we can do the
following:
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
@@ -111,7 +111,7 @@ For example, if we want to include all text and RTF files
under our `src/my-reso
Also, if we want to include everything except the bitmaps, jpegs, and gifs, we
can simply exclude them by:
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
@@ -138,7 +138,7 @@ Also, if we want to include everything except the bitmaps,
jpegs, and gifs, we c
Of course, we can also have both `<includes>` and `<excludes>` elements. For
example, if we want to include all text files that does not contain the word
"test" in their filename.
-```unknown
+```xml
<project>
...
<name>My Resources Plugin Practice Project</name>
diff --git a/src/site/markdown/examples/resource-directory.md
b/src/site/markdown/examples/resource-directory.md
index 99a458f..3d6b0d3 100644
--- a/src/site/markdown/examples/resource-directory.md
+++ b/src/site/markdown/examples/resource-directory.md
@@ -28,7 +28,7 @@ under the License.
By default, Maven will look for your project's resources under
`src/main/resources`.
-```unknown
+```text
Project
|-- pom.xml
`-- src
@@ -38,7 +38,7 @@ Project
However, all your resources may not be in `src/main/resources`. Thus, you'd
have to specify those directories by adding the following to your POM.
-```unknown
+```xml
<project>
...
<build>
@@ -56,7 +56,7 @@ However, all your resources may not be in
`src/main/resources`. Thus, you'd have
So if your resources resides in `src/my-resources`
-```unknown
+```text
Project
|-- pom.xml
`-- src
@@ -65,7 +65,7 @@ Project
you can specify that directory by doing the following:
-```unknown
+```xml
<project>
...
<resources>
@@ -79,7 +79,7 @@ you can specify that directory by doing the following:
Furthermore, you can have several directories by adding multiple `<resource>`
elements:
-```unknown
+```xml
<project>
...
<resources>
diff --git a/src/site/markdown/usage.md.vm b/src/site/markdown/usage.md.vm
index 17bad34..9e878de 100644
--- a/src/site/markdown/usage.md.vm
+++ b/src/site/markdown/usage.md.vm
@@ -33,7 +33,7 @@ To handle filtering this version of Maven Resources Plugin
uses [Maven Filtering
Copy resources for the main source code
---------------------------------------
-```unknown
+```shell
mvn resources:resources
```
@@ -44,7 +44,7 @@ Moreover, this goal is bound to the `process-resources` phase.
Copy resources for the unit tests
---------------------------------
-```unknown
+```shell
mvn resources:testResources
```
@@ -55,7 +55,7 @@ Furthermore, this is bound to the `process-test-resources`
phase.
Copy resources specified by a <resources> configuration element
---------------------------------------------------------------------
-```unknown
+```shell
mvn resources:copy-resources
```