Skip to content

Commit 22128a5

Browse files
Download page template
1 parent cf8e991 commit 22128a5

File tree

6 files changed

+146
-98
lines changed

6 files changed

+146
-98
lines changed

docs/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,27 @@ under the License.
7070
<!-- modules with documentation not need to install and deploy -->
7171
<maven.install.skip>true</maven.install.skip>
7272
<maven.deploy.skip>true</maven.deploy.skip>
73+
74+
<downloadDirectory>pom</downloadDirectory>
75+
<downloadArtifactId>maven-parent</downloadArtifactId>
7376
</properties>
7477

78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-remote-resources-plugin</artifactId>
83+
<executions>
84+
<execution>
85+
<id>site-download</id>
86+
<phase>pre-site</phase>
87+
<inherited>false</inherited>
88+
</execution>
89+
</executions>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
7594
<reporting>
7695
<plugins>
7796
<plugin>

docs/src/site/resources/download.cgi

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/src/site/xdoc/download.xml.vm

Lines changed: 0 additions & 75 deletions
This file was deleted.

maven-shared-doc-resource/pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21+
<modelVersion>4.0.0</modelVersion>
22+
<parent>
23+
<groupId>org.apache.maven</groupId>
24+
<artifactId>maven-parent</artifactId>
25+
<version>44-SNAPSHOT</version>
26+
</parent>
27+
28+
<artifactId>maven-shared-doc-resource</artifactId>
29+
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-remote-resources-plugin</artifactId>
35+
<configuration>
36+
<includes>
37+
<include>**/*.vm</include>
38+
<include>**/*.cgi</include>
39+
</includes>
40+
</configuration>
41+
<executions>
42+
<execution>
43+
<goals>
44+
<goal>bundle</goal>
45+
</goals>
46+
</execution>
47+
</executions>
48+
</plugin>
49+
</plugins>
50+
</build>
51+
</project>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Download ${project.name} Source
3+
---
4+
#*
5+
Licensed to the Apache Software Foundation (ASF) under one
6+
or more contributor license agreements. See the NOTICE file
7+
distributed with this work for additional information
8+
regarding copyright ownership. The ASF licenses this file
9+
to you under the Apache License, Version 2.0 (the
10+
"License"); you may not use this file except in compliance
11+
with the License. You may obtain a copy of the License at
12+
13+
http://www.apache.org/licenses/LICENSE-2.0
14+
15+
Unless required by applicable law or agreed to in writing,
16+
software distributed under the License is distributed on an
17+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18+
KIND, either express or implied. See the License for the
19+
specific language governing permissions and limitations
20+
under the License.
21+
*#
22+
#set( $h = "#" )
23+
#set( $downloadDirectory = $project.properties.downloadDirectory )
24+
#if( ! $downloadDirectory )
25+
#set( $downloadDirectory = "plugins" )
26+
#end
27+
#set( $downloadArtifactId = $project.properties.downloadArtifactId )
28+
#if( ! $downloadArtifactId )
29+
#set( $downloadArtifactId = $project.artifactId )
30+
#end
31+
32+
# Download ${project.name} ${project.version} Source
33+
34+
${project.name} ${project.version} is distributed in source format. Use a source archive if you intend to build
35+
${project.name} yourself. Otherwise, simply use the ready-made binary artifacts from central repository.
36+
37+
In order to guard against corrupted downloads/installations, it is highly recommended to
38+
[verify the signature](https://www.apache.org/dev/release-signing#verifying-signature)
39+
of the release bundles against the public [KEYS](https://downloads.apache.org/maven/KEYS) used by the Apache Maven
40+
developers.
41+
42+
${project.name} is distributed under the [Apache License, version 2.0](https://www.apache.org/licenses/).
43+
44+
${h}${h} ${project.name} ${project.version}
45+
46+
This is the current stable version of ${project.name}.
47+
48+
| | Link |Checksum|Signature|
49+
|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|---|
50+
${project.name} ${project.version} (Source zip)| [${downloadArtifactId}-${project.version}-source-release.zip](https://www.apache.org/dyn/closer.lua/maven/${downloadDirectory}/${downloadArtifactId}-${project.version}-source-release.zip?action=download) |[${downloadArtifactId}-${project.version}-source-release.zip.sha512](https://downloads.apache.org/maven/${downloadDirectory}/${downloadArtifactId}-${project.version}-source-release.zip.sha512)|[${downloadArtifactId}-${project.version}-source-release.zip.asc](https://downloads.apache.org/maven/${downloadDirectory}/${downloadArtifactId}-${project.version}-source-release.zip.asc)|
51+
52+
${h}${h} Previous Versions
53+
54+
Older non-recommended releases can be found on our [archive site](https://archive.apache.org/dist/maven/${downloadDirectory}/).

pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,7 @@ under the License.
914914
<module>maven-skins</module>
915915
<module>doxia-tools</module>
916916
<module>docs</module>
917+
<module>maven-shared-doc-resource</module>
917918
</modules>
918919

919920
<scm>
@@ -958,8 +959,9 @@ under the License.
958959
<!-- DO NOT UPGRADE to 4: incompatible with Maven 3 -->
959960
<version.plexus-xml>3.0.1</version.plexus-xml>
960961
<versions.junit5>5.11.3</versions.junit5>
961-
<version.maven-fluido-skin>1.12.0</version.maven-fluido-skin>
962+
<version.maven-fluido-skin>2.0.0</version.maven-fluido-skin>
962963
<version.maven-shared-resources>6</version.maven-shared-resources>
964+
<version.maven-site-plugin>3.21.0</version.maven-site-plugin>
963965
<project.build.outputTimestamp>2024-07-04T20:44:45Z</project.build.outputTimestamp>
964966
</properties>
965967

@@ -1230,6 +1232,25 @@ under the License.
12301232
</execution>
12311233
</executions>
12321234
</plugin>
1235+
<plugin>
1236+
<groupId>org.apache.maven.plugins</groupId>
1237+
<artifactId>maven-remote-resources-plugin</artifactId>
1238+
<executions>
1239+
<execution>
1240+
<id>site-download</id>
1241+
<goals>
1242+
<goal>process</goal>
1243+
</goals>
1244+
<phase>none</phase>
1245+
<configuration>
1246+
<resourceBundles>
1247+
<bundle>org.apache.maven:maven-shared-doc-resource:44-SNAPSHOT</bundle>
1248+
</resourceBundles>
1249+
<outputDirectory>${project.build.directory}/generated-site</outputDirectory>
1250+
</configuration>
1251+
</execution>
1252+
</executions>
1253+
</plugin>
12331254
</plugins>
12341255
</pluginManagement>
12351256

0 commit comments

Comments
 (0)