Skip to content

Commit e51cef8

Browse files
[MPIR-478] Allow to save avatars images for team report during project build
1 parent 3a991e2 commit e51cef8

File tree

10 files changed

+543
-73
lines changed

10 files changed

+543
-73
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ under the License.
2828
</parent>
2929

3030
<artifactId>maven-project-info-reports-plugin</artifactId>
31-
<version>3.8.1-SNAPSHOT</version>
31+
<version>3.9.0-SNAPSHOT</version>
3232
<packaging>maven-plugin</packaging>
3333

3434
<name>Apache Maven Project Info Reports Plugin</name>
@@ -123,7 +123,7 @@ under the License.
123123
<sitePluginVersion>3.21.0</sitePluginVersion>
124124
<fluidoSkinVersion>2.0.1</fluidoSkinVersion>
125125
<checkstyle.violation.ignore>ParameterNumber,MethodLength</checkstyle.violation.ignore>
126-
<project.build.outputTimestamp>2024-10-18T09:42:43Z</project.build.outputTimestamp>
126+
<project.build.outputTimestamp>2025-02-19T22:31:07Z</project.build.outputTimestamp>
127127
</properties>
128128

129129
<dependencies>

src/it/team-local-avatars/pom.xml

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
21+
<project xmlns="http://maven.apache.org/POM/4.0.0"
22+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24+
<modelVersion>4.0.0</modelVersion>
25+
26+
<groupId>org.apache.maven.plugins.project-info-reports</groupId>
27+
<artifactId>team-local-avatars</artifactId>
28+
<version>1.0-SNAPSHOT</version>
29+
30+
<properties>
31+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33+
</properties>
34+
35+
<developers>
36+
<developer>
37+
<id>one-id</id>
38+
<name>one-name</name>
39+
<email>[email protected]</email>
40+
</developer>
41+
<developer>
42+
<id>two-id</id>
43+
<name>two-name</name>
44+
</developer>
45+
<developer>
46+
<id>three-id</id>
47+
<name>three-name</name>
48+
<email>[email protected]</email>
49+
</developer>
50+
</developers>
51+
52+
<build>
53+
<plugins>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-site-plugin</artifactId>
57+
<version>@sitePluginVersion@</version>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
62+
<reporting>
63+
<excludeDefaults>true</excludeDefaults>
64+
<plugins>
65+
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-project-info-reports-plugin</artifactId>
68+
<version>@project.version@</version>
69+
<configuration>
70+
<externalAvatarImages>false</externalAvatarImages>
71+
</configuration>
72+
<reportSets>
73+
<reportSet>
74+
<reports>
75+
<report>team</report>
76+
</reports>
77+
</reportSet>
78+
</reportSets>
79+
</plugin>
80+
</plugins>
81+
</reporting>
82+
</project>
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
def team = new File( basedir, 'target/site/team.html' ).text
21+
22+
assert team.count('<figure><img src="avatars/90cc13b765c79d2d55ca64388ea2bc5f.jpg" /></figure>') == 1
23+
assert team.count('<figure><img src="avatars/00000000000000000000000000000000.jpg" /></figure>') == 2
24+
25+
assert new File(basedir, 'target/site/avatars/90cc13b765c79d2d55ca64388ea2bc5f.jpg').exists()
26+
assert new File(basedir, 'target/site/avatars/00000000000000000000000000000000.jpg').exists()

0 commit comments

Comments
 (0)