This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-parent.git
The following commit(s) were added to refs/heads/master by this push:
new 46eba0f Introduce property maven4x.site.path
46eba0f is described below
commit 46eba0f51da7c69fc4aea195cb28f6bd6d83c7f6
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Sun Feb 9 09:56:30 2025 +0100
Introduce property maven4x.site.path
New property should be used for components documentation targeted to Maven 4
---
docs/src/site/apt/index.apt.vm | 18 +++++++++++++++---
maven-extensions/pom.xml | 1 +
maven-plugins/pom.xml | 1 +
maven-shared-components/pom.xml | 1 +
4 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/docs/src/site/apt/index.apt.vm b/docs/src/site/apt/index.apt.vm
index 35ce28f..9b89289 100644
--- a/docs/src/site/apt/index.apt.vm
+++ b/docs/src/site/apt/index.apt.vm
@@ -70,14 +70,26 @@ mvn -Preporting site
* Site Publication
This POM prepares site publication to
{{{/developers/website/index.html}Apache Maven's site svnpubsub}}.
- Every inheriting POM needs to define <<<maven.site.path>>> property
- with relative path to <<<$\{project.artifactId}-LATEST>>> publication uri,
and define <<<distributionManagement>>> to avoid
- automatic inheritance from parent:
+
+ There are defined <<<maven.site.path>>> properties in parent POM for each
supported component type, as:
+-----+
<properties>
<maven.site.path>xxx-archives/\${project.artifactId}-LATEST</maven.site.path>
</properties>
++-----+
+
+ For maven-extensions, maven-plugins and maven-shared-components which
target Maven 4.x there are properties in parent POM:
+
++-----+
+ <properties>
+
<maven4x.site.path>xxx-archives/\${project.artifactId}-LATEST-4.x</maven4x.site.path>
+ </properties>
++-----+
+
+ Every inherited POM needs to define <<<distributionManagement>>> to avoid
automatic inheritance from parent:
+
++-----+
<distributionManagement>
<site>
<id>apache.website</id>
diff --git a/maven-extensions/pom.xml b/maven-extensions/pom.xml
index 4c3f8ca..a183afb 100644
--- a/maven-extensions/pom.xml
+++ b/maven-extensions/pom.xml
@@ -43,6 +43,7 @@ under the License.
<properties>
<maven.site.path>extensions-archives/${project.artifactId}-LATEST</maven.site.path>
+
<maven4x.site.path>extensions-archives/${project.artifactId}-LATEST-4.x</maven4x.site.path>
</properties>
<build>
diff --git a/maven-plugins/pom.xml b/maven-plugins/pom.xml
index 0018270..f6cf42d 100644
--- a/maven-plugins/pom.xml
+++ b/maven-plugins/pom.xml
@@ -48,6 +48,7 @@ under the License.
<properties>
<maven.site.path>plugins-archives/${project.artifactId}-LATEST</maven.site.path>
+
<maven4x.site.path>plugins-archives/${project.artifactId}-LATEST-4.x</maven4x.site.path>
<enforce.dependency.declarations>false</enforce.dependency.declarations>
</properties>
diff --git a/maven-shared-components/pom.xml b/maven-shared-components/pom.xml
index 63afced..57aa9e4 100644
--- a/maven-shared-components/pom.xml
+++ b/maven-shared-components/pom.xml
@@ -51,6 +51,7 @@ under the License.
<properties>
<maven.site.path>shared-archives/${project.artifactId}-LATEST</maven.site.path>
+
<maven4x.site.path>shared-archives/${project.artifactId}-LATEST-4.x</maven4x.site.path>
</properties>
<build>