This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
The following commit(s) were added to refs/heads/master by this push:
new b36f9a5 Disable shallow cloning (#336)
b36f9a5 is described below
commit b36f9a55e23e670af22a2862c6d34cf79d7f1688
Author: Konrad Windszus <[email protected]>
AuthorDate: Tue Jun 16 20:27:36 2026 +0200
Disable shallow cloning (#336)
This is a prerequisite for leveraging SCM modification dates on sites (used
in some tests)
Adjust documentation as well
---
.github/workflows/maven-verify.yml | 2 ++
Jenkinsfile | 4 ++--
src/site/markdown/index.md.vm | 4 ++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven-verify.yml
b/.github/workflows/maven-verify.yml
index 57eaddf..0c9bf79 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -27,4 +27,6 @@ jobs:
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
ff-site-goal: '-DskipTests -P reporting package site site:stage'
+ # disable shallow cloning in order to run ITs related to SCM last
modified date
+ fetch-depth: 0
diff --git a/Jenkinsfile b/Jenkinsfile
index 09ac70f..3f2dd85 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,5 +16,5 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-asfMavenTlpStdBuild()
+// disable shallow cloning in order to run ITs related to SCM last modified
date
+asfMavenTlpStdBuild(fetchDepth: 0)
diff --git a/src/site/markdown/index.md.vm b/src/site/markdown/index.md.vm
index 733b604..7befbbf 100644
--- a/src/site/markdown/index.md.vm
+++ b/src/site/markdown/index.md.vm
@@ -451,6 +451,10 @@ ${esc.h}${esc.h}${esc.h} Expose last modified date instead
of publish date
Since version **2.2.0**, you can expose the last modified date of the Doxia
source file (derived from SCM metadata, not from regular file system metadata)
instead of the publish date.
This requires a dedicated dependency on the [`doxia-site-scm-context`
artifact](/doxia/doxia-sitetools/doxia-site-scm-context/index.html) and is only
supported by Maven Site Plugin version 3.22.0 (leveraging Doxia Sitetools
2.1.0) or later.
+*Note: This only works correctly if you are not using [shallow
clones](https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt)
for your SCM repository,
+otherwise the last modified date will be the date of most recent commit not
the actual last modified date of the file in the repository.
+Further details in [Maven SCM Issue
#1378](https://github.com/apache/maven-scm/issues/1378).*
+
To add the dependency you need to add the following snippet to your `pom.xml`:
```xml