This is an automated email from the ASF dual-hosted git repository.
slawekjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
The following commit(s) were added to refs/heads/master by this push:
new c7e52a99 Use maven.apache.org redirect for release notes link in ATR
announce template
c7e52a99 is described below
commit c7e52a996b987dee1f7c9fd65cbd73c3707b82ce
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Sat Oct 31 17:05:47 2026 +0100
Use maven.apache.org redirect for release notes link in ATR announce
template
The announce template linked to the GitHub release tag
<PROJECT_KEY>-<VERSION>, which does not exist for repositories
with a different tag format.
Link to https://maven.apache.org/release-notes/{{PROJECT_KEY}}/{{VERSION}}
instead and map it to the GitHub release page in .htaccess.
Fixes #1748
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
content/filtered-resources/.htaccess | 11 +++++++++++
content/resources/atr/templates/announce_release_template.txt | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/content/filtered-resources/.htaccess
b/content/filtered-resources/.htaccess
index 2469ac8e..fea0a5d3 100644
--- a/content/filtered-resources/.htaccess
+++ b/content/filtered-resources/.htaccess
@@ -110,3 +110,14 @@ RedirectMatch ^/archives/maven-apache-parent-LATEST(.*)$
/pom-archives/asf-LATES
RedirectMatch ^/archives/maven-parent-LATEST(.*)$ /pom-archives/maven-LATEST$1
RedirectMatch ^/archives/(maven-.*-skin)-LATEST(.*)$
/skins-archives/$1-LATEST$2
RedirectMatch ^/archives/(maven-.*-extension)-LATEST(.*)$
/extensions-archives/$1-LATEST$2
+
+# used in ATR announce templates -
https://maven.apache.org/release-notes/{{PROJECT_KEY}}/{{VERSION}}
+# redirect to the GitHub release page, the Git tag is usually
<artifactId>-<version>
+
+# first matching rule wins - specific rules must precede generic ones
+RedirectMatch ^/release-notes/maven-apache-parent/([^/]+)$
https://github.com/apache/maven-apache-parent/releases/tag/apache-$1
+RedirectMatch ^/release-notes/maven-apache-resources/([^/]+)$
https://github.com/apache/maven-apache-resources/releases/tag/apache-resource-bundles-$1
+RedirectMatch ^/release-notes/maven-archetypes/([^/]+)$
https://github.com/apache/maven-archetypes/releases/tag/maven-archetype-bundles-$1
+RedirectMatch ^/release-notes/maven-mvnd/([^/]+)$
https://github.com/apache/maven-mvnd/releases/tag/$1
+RedirectMatch
^/release-notes/maven-(doxia|doxia-converter|doxia-sitetools|enforcer|executor|file-management|jxr|surefire|wagon)/([^/]+)$
https://github.com/apache/maven-$1/releases/tag/$1-$2
+RedirectMatch ^/release-notes/([^/]+)/([^/]+)$
https://github.com/apache/$1/releases/tag/$1-$2
diff --git a/content/resources/atr/templates/announce_release_template.txt
b/content/resources/atr/templates/announce_release_template.txt
index 490af169..532eca40 100644
--- a/content/resources/atr/templates/announce_release_template.txt
+++ b/content/resources/atr/templates/announce_release_template.txt
@@ -8,7 +8,7 @@ You can download the appropriate sources etc. from the download
page:
Release Notes - {{PROJECT_NAME}} - Version {{VERSION}}
-https://github.com/apache/{{PROJECT_KEY}}/releases/tag/{{PROJECT_KEY}}-{{VERSION}}
+https://maven.apache.org/release-notes/{{PROJECT_KEY}}/{{VERSION}}
Enjoy,
On behalf of the Apache {{COMMITTEE}} project team,