Skip to content

Commit d1b0add

Browse files
authoredAug 25, 2024··
Upgrade maven-site-plugin (3.20.0) and site.xml (#288)
1 parent 4a40268 commit d1b0add

File tree

4 files changed

+40
-16
lines changed

4 files changed

+40
-16
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ pom.xml.versionsBackup
99
pom.xml.next
1010
release.properties
1111
.idea/
12-
*.iml
12+
*.iml
13+
./src/site/markdown/README.md

‎pom.xml

+29-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ under the License.
272272
<detectJavaApiLink>false</detectJavaApiLink>
273273
<subpackages>org.scoverage.plugin</subpackages>
274274
<links>
275-
<link>https://docs.oracle.com/javase/11/docs/api/</link>
275+
<link>https://docs.oracle.com/en/java/javase/11/docs/api/</link>
276276
<link>https://maven.apache.org/ref/${maven.version}/apidocs/</link>
277277
<link>https://maven.apache.org/shared-archives/maven-reporting-api-${maven-reporting-api.version}/apidocs/</link>
278278
<link>https://maven.apache.org/doxia/components/doxia-archives/doxia-${doxia.version}/apidocs/</link>
@@ -364,7 +364,7 @@ under the License.
364364
<plugin>
365365
<groupId>org.apache.maven.plugins</groupId>
366366
<artifactId>maven-site-plugin</artifactId>
367-
<version>3.12.1</version>
367+
<version>3.20.0</version>
368368
</plugin>
369369

370370
<plugin>
@@ -507,6 +507,33 @@ under the License.
507507
</execution>
508508
</executions>
509509
</plugin>
510+
511+
<plugin>
512+
<groupId>org.apache.maven.plugins</groupId>
513+
<artifactId>maven-resources-plugin</artifactId>
514+
<executions>
515+
<execution>
516+
<!-- Copy the readme file to the site source files so that a page is generated from it. -->
517+
<id>copy-readme</id>
518+
<phase>pre-site</phase>
519+
<goals>
520+
<goal>copy-resources</goal>
521+
</goals>
522+
<configuration>
523+
<outputDirectory>${basedir}/src/site/markdown</outputDirectory>
524+
<resources>
525+
<resource>
526+
<directory>${basedir}</directory>
527+
<includes>
528+
<include>README.md</include>
529+
</includes>
530+
</resource>
531+
</resources>
532+
</configuration>
533+
</execution>
534+
</executions>
535+
</plugin>
536+
510537
</plugins>
511538
</build>
512539

‎src/site/markdown/index.md

-3
This file was deleted.

‎src/site/site.xml

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
31
<!--
42
Copyright 2014-2024 Grzegorz Slowikowski (gslowikowski at gmail dot com)
53
@@ -17,17 +15,20 @@ specific language governing permissions and limitations
1715
under the License.
1816
-->
1917

20-
<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
18+
<site xmlns="http://maven.apache.org/SITE/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
20+
name="SCoverage Maven Plugin">
2121

2222
<skin>
2323
<groupId>org.apache.maven.skins</groupId>
2424
<artifactId>maven-fluido-skin</artifactId>
25-
<version>1.5</version>
25+
<version>2.0.0-M10</version>
2626
</skin>
2727

28+
<bannerLeft name="SCoverage Maven Plugin"/>
29+
2830
<bannerRight>
29-
<name>avatar</name>
30-
<src>images/my-avatar-80.png</src>
31+
<image src="images/my-avatar-80.png"/>
3132
</bannerRight>
3233

3334
<custom>
@@ -46,14 +47,12 @@ under the License.
4647
</head>
4748

4849
<menu name="Overview">
49-
<item name="Introduction" href="index.html"/>
50+
<item name="Introduction" href="README.html"/>
5051
<item name="Goals" href="plugin-info.html"/>
5152
<item name="JavaDocs" href="apidocs/index.html"/>
5253
</menu>
5354

5455
<menu ref="reports"/>
5556
</body>
5657

57-
<googleAnalyticsAccountId>${googleAnalyticsAccountId}</googleAnalyticsAccountId>
58-
59-
</project>
58+
</site>

0 commit comments

Comments
 (0)
Please sign in to comment.