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/10 01:12:11 UTC
(maven-clean-plugin) branch master updated (d4e0c52 -> 4eb88ea)
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-clean-plugin.git
from d4e0c52 Restore the document metadata dropped when the pages were ported
new 9685a89 Rename the FAQ ahead of converting it
new 4eb88ea Convert the FAQ from FML to Markdown
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/site/fml/faq.fml | 60 ------------------------------------------------
src/site/markdown/faq.md | 53 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 60 deletions(-)
delete mode 100644 src/site/fml/faq.fml
create mode 100644 src/site/markdown/faq.md
(maven-clean-plugin) 02/02: Convert the FAQ from FML to Markdown
Posted by sl...@apache.org.
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-clean-plugin.git
commit 4eb88ea2f3a99b34be6dba78c37ae29fd58a3dee
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Aug 10 02:03:00 2026 +0200
Convert the FAQ from FML to Markdown
doxia-converter cannot target FML usefully - the questions come out as
link-reference syntax rather than headings, the [top] back-links become
links to a nonexistent 'top' page, and the contents links lose their #
anchors. The page is written out by hand instead.
Explicit anchors keep the existing deep links working. FML routes every
<faq id> through DoxiaUtils.encodeId, which rewrites an id that is not a
valid XML name: a space becomes '_' and any other character becomes its
dot-prefixed UTF-8 bytes, so ',' becomes .2C and '?' becomes .3F. The
<a name> elements emitted here reproduce that rendered form, not the raw
attribute, so the live URLs still resolve.
Prose double quotes are written as " entities: flexmark's smart
punctuation would otherwise turn a straight quote into a typographic
one and silently change the visible text. That matches the convention
already used by the Markdown pages in this estate.
Verified by building the site before and after and comparing the set of
anchors the generated faq.html actually serves. All 4 anchors present
before are still present after (6 after, the extra ones being the ids
Doxia derives from the new headings):
I_already_ran_mvn_clean_but_the_directory_.28put_dir_name_here.29_is_still_there._What_should_I_do.3F
On_Windows.2C_I_got_Unable_to_delete_directory._What_s_wrong.3F
bodyColumn
top
The <head> is byte-identical, so the title and metadata are unchanged.
site.xml needs no edit - src/site/fml/faq.fml and
src/site/markdown/faq.md both render to faq.html.
FML generates a [top] back-link after each answer; those are dropped
rather than hand-written. The question renders as an h3 heading rather
than a definition term. Those are the only rendering losses.
Anchors are written as <a id>, not <a name>: maven-site-plugin 3.21.0 drops
the name attribute from inline HTML anchors while 3.22.0 keeps it, and
Xhtml5BaseParser reads Attribute.ID first and only falls back to NAME. id is
the primary path and the correct HTML5 form; name on <a> is obsolete.
An explicit anchor is emitted only where it is actually needed. Doxia already
derives an id for each heading, and where that derived id is byte-identical to
the anchor the site serves today, a second explicit anchor would only produce a
duplicate id and a "used more than once" warning. Those are omitted; the
heading serves the URL. The anchors that remain are the ones where the FML id
and the question text differ, and the page would otherwise lose the URL.
Generated-by: Claude Opus 5 (1M context)
---
src/site/markdown/faq.md | 71 ++++++++++++++++++++++--------------------------
1 file changed, 32 insertions(+), 39 deletions(-)
diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md
index cc334f1..691f62f 100644
--- a/src/site/markdown/faq.md
+++ b/src/site/markdown/faq.md
@@ -1,4 +1,6 @@
-<?xml version="1.0" encoding="UTF-8"?>
+---
+title: Frequently Asked Questions
+---
<!--
Licensed to the Apache Software Foundation (ASF) under one
@@ -19,42 +21,33 @@ specific language governing permissions and limitations
under the License.
-->
+<a id="top"></a>
-<faqs xmlns="http://maven.apache.org/FML/1.0.1"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd"
- id="FAQ" title="Frequently Asked Questions">
- <part id="General">
- <faq id="I already ran mvn clean but the directory (put dir name here) is still there. What should I do?">
- <question>I already ran <i>mvn clean</i> but the directory (<i>put dir name here</i>) is still there. What should I do?</question>
- <answer>
- <p>
- Some files-generating plugins can generate their files outside of the
- default directories being deleted by the clean plugin. You should add
- the location of such files in the clean plugin configuration or change
- the configuration of those plugins to put their files inside the
- <i>project.build.directory</i> which is by default, the <i>target</i>
- directory.
- </p>
- </answer>
- </faq>
- <faq id="On Windows, I got Unable to delete directory. What s wrong?">
- <question>On Windows, I got <i>"Unable to delete directory"</i>. What's wrong?</question>
- <answer>
- <p>
- For instance, <i>clean</i> could fail if you already have opened a command
- line with target as the current dir. Windows locks some ressources and you need
- to close the handles on these ressources.
- To skip these errors, you could call <i>clean</i> with the command line parameter <i>-Dmaven.clean.failOnError=false</i>.
- For more information, refer to <a href="./examples/ignoring-errors.html">Ignoring Errors</a> page.
- </p>
- <p>
- <a href="http://www.microsoft.com/technet/sysinternals/default.mspx">Sysinternals</a> produced
- a number of utilities, like <a href="http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx">Process Explorer</a>
- or <a href="http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx">Handle</a>
- that help you to deal with Windows handles.
- </p>
- </answer>
- </faq>
- </part>
-</faqs>
\ No newline at end of file
+# Frequently Asked Questions
+
+1. [I already ran *mvn clean* but the directory (*put dir name here*) is still there. What should I do?](#I_already_ran_mvn_clean_but_the_directory_.28put_dir_name_here.29_is_still_there._What_should_I_do.3F)
+2. [On Windows, I got *"Unable to delete directory"*. What's wrong?](#On_Windows.2C_I_got_Unable_to_delete_directory._What_s_wrong.3F)
+
+### I already ran *mvn clean* but the directory (*put dir name here*) is still there. What should I do?
+
+Some files-generating plugins can generate their files outside of the
+default directories being deleted by the clean plugin. You should add
+the location of such files in the clean plugin configuration or change
+the configuration of those plugins to put their files inside the
+*project.build.directory* which is by default, the *target*
+directory.
+
+<a id="On_Windows.2C_I_got_Unable_to_delete_directory._What_s_wrong.3F"></a>
+
+### On Windows, I got *"Unable to delete directory"*. What's wrong?
+
+For instance, *clean* could fail if you already have opened a command
+line with target as the current dir. Windows locks some ressources and you need
+to close the handles on these ressources.
+To skip these errors, you could call *clean* with the command line parameter *-Dmaven.clean.failOnError=false*.
+For more information, refer to [Ignoring Errors](./examples/ignoring-errors.html) page.
+
+[Sysinternals](http://www.microsoft.com/technet/sysinternals/default.mspx) produced
+a number of utilities, like [Process Explorer](http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx)
+or [Handle](http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx)
+that help you to deal with Windows handles.
(maven-clean-plugin) 01/02: Rename the FAQ ahead of converting it
Posted by sl...@apache.org.
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-clean-plugin.git
commit 9685a8903c8b606966309c84c0aa84a5ea3151af
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Aug 10 01:40:46 2026 +0200
Rename the FAQ ahead of converting it
Git records a rename plus a rewrite in one commit as a delete and an
add, which stops 'git log --follow'. Splitting the rename out keeps the
history. Please merge or rebase rather than squash.
Generated-by: Claude Opus 5 (1M context)
---
src/site/{fml/faq.fml => markdown/faq.md} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/src/site/fml/faq.fml b/src/site/markdown/faq.md
similarity index 100%
rename from src/site/fml/faq.fml
rename to src/site/markdown/faq.md