Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit ef3e872

Browse files
author
Stefan Kock
committed
SORMAS-Foundation#3694: Generate Maven Reports (includes Update Reports)
1 parent 0c27b2a commit ef3e872

1 file changed

Lines changed: 142 additions & 0 deletions

File tree

sormas-base/pom.xml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838

3939
</properties>
4040

41+
<distributionManagement>
42+
<site>
43+
<id>local</id>
44+
<name>local</name>
45+
<url>file://${maven.multiModuleProjectDirectory}/sormas-base/target/doc/</url>
46+
</site>
47+
</distributionManagement>
48+
4149
<dependencyManagement>
4250
<dependencies>
4351

@@ -202,6 +210,14 @@
202210
<scope>provided</scope>
203211
</dependency>
204212

213+
<dependency>
214+
<groupId>net.minidev</groupId>
215+
<artifactId>accessors-smart</artifactId>
216+
<version>1.2</version>
217+
<scope>provided</scope>
218+
<!-- Avoid problems with finding the dependencies in Maven repos fixed by Payara -->
219+
</dependency>
220+
205221
<dependency>
206222
<groupId>org.eclipse.microprofile.config</groupId>
207223
<artifactId>microprofile-config-api</artifactId>
@@ -248,6 +264,14 @@
248264
<scope>provided</scope>
249265
</dependency>
250266

267+
<dependency>
268+
<groupId>org.glassfish.soteria</groupId>
269+
<artifactId>javax.security.enterprise</artifactId>
270+
<version>1.0</version>
271+
<scope>provided</scope>
272+
<!-- Avoid problems with finding the dependencies in Maven repos fixed by Payara -->
273+
</dependency>
274+
251275
<dependency>
252276
<groupId>org.javassist</groupId>
253277
<artifactId>javassist</artifactId>
@@ -1006,6 +1030,46 @@
10061030
</dependencies>
10071031
</plugin>
10081032

1033+
<!-- *** Plugins for generate-reports *** -->
1034+
<plugin>
1035+
<artifactId>maven-changelog-plugin</artifactId>
1036+
<version>2.3</version>
1037+
</plugin>
1038+
<plugin>
1039+
<artifactId>maven-changes-plugin</artifactId>
1040+
<version>2.12.1</version>
1041+
</plugin>
1042+
<plugin>
1043+
<artifactId>maven-project-info-reports-plugin</artifactId>
1044+
<version>3.1.1</version>
1045+
</plugin>
1046+
<plugin>
1047+
<artifactId>maven-site-plugin</artifactId>
1048+
<version>3.9.1</version>
1049+
<configuration>
1050+
<inputEncoding>UTF-8</inputEncoding>
1051+
<outputEncoding>UTF-8</outputEncoding>
1052+
</configuration>
1053+
<dependencies>
1054+
<dependency>
1055+
<groupId>org.apache.maven.wagon</groupId>
1056+
<artifactId>wagon-ssh</artifactId>
1057+
<version>2.12</version>
1058+
<!-- add support for ssh/scp -->
1059+
</dependency>
1060+
</dependencies>
1061+
</plugin>
1062+
<plugin>
1063+
<artifactId>maven-surefire-report-plugin</artifactId>
1064+
<version>2.22.2</version>
1065+
</plugin>
1066+
<plugin>
1067+
<groupId>org.codehaus.mojo</groupId>
1068+
<artifactId>versions-maven-plugin</artifactId>
1069+
<version>2.8.1</version>
1070+
</plugin>
1071+
<!-- *** Plugins for generate-reports END *** -->
1072+
10091073
</plugins>
10101074
</pluginManagement>
10111075
</build>
@@ -1082,6 +1146,84 @@
10821146
</modules>
10831147
</profile>
10841148

1149+
<profile>
1150+
<id>generate-reports</id>
1151+
<!-- Create reports of used dependencies, plugins etc. and available newer versions -->
1152+
<properties>
1153+
<maven.javadoc.skip>true</maven.javadoc.skip>
1154+
<!-- Do not execute JavaDoc, because it runs into Exception with JDK 8. See https://bugs.openjdk.java.net/browse/JDK-8170447 -->
1155+
<!-- Exception that happens: ClassCastException: com.sun.tools.javadoc.MethodDocImpl cannot be cast to com.sun.tools.javadoc.AnnotationTypeElementDocImpl -->
1156+
</properties>
1157+
<build>
1158+
<pluginManagement>
1159+
<plugins>
1160+
<plugin>
1161+
<artifactId>maven-dependency-plugin</artifactId>
1162+
<executions>
1163+
<execution>
1164+
<id>analyze</id>
1165+
<phase>site</phase>
1166+
<goals>
1167+
<goal>analyze-only</goal>
1168+
</goals>
1169+
</execution>
1170+
</executions>
1171+
</plugin>
1172+
<plugin>
1173+
<artifactId>maven-javadoc-plugin</artifactId>
1174+
<configuration>
1175+
<docencoding>${java.encoding}</docencoding>
1176+
<minmemory>512</minmemory>
1177+
<maxmemory>512</maxmemory>
1178+
</configuration>
1179+
</plugin>
1180+
</plugins>
1181+
</pluginManagement>
1182+
</build>
1183+
<reporting>
1184+
<plugins>
1185+
<plugin>
1186+
<artifactId>maven-project-info-reports-plugin</artifactId>
1187+
<reportSets>
1188+
<reportSet>
1189+
<reports>
1190+
<report>index</report>
1191+
<report>team</report>
1192+
<report>summary</report>
1193+
<report>modules</report>
1194+
<report>ci-management</report>
1195+
<report>issue-management</report>
1196+
<report>licenses</report>
1197+
<report>dependencies</report>
1198+
<report>dependency-convergence</report>
1199+
<report>dependency-info</report>
1200+
<report>dependency-management</report>
1201+
<report>plugins</report>
1202+
<report>plugin-management</report>
1203+
</reports>
1204+
</reportSet>
1205+
</reportSets>
1206+
</plugin>
1207+
<plugin>
1208+
<artifactId>maven-javadoc-plugin</artifactId>
1209+
</plugin>
1210+
<plugin>
1211+
<groupId>org.codehaus.mojo</groupId>
1212+
<artifactId>versions-maven-plugin</artifactId>
1213+
<reportSets>
1214+
<reportSet>
1215+
<reports>
1216+
<report>dependency-updates-report</report>
1217+
<report>plugin-updates-report</report>
1218+
<report>property-updates-report</report>
1219+
</reports>
1220+
</reportSet>
1221+
</reportSets>
1222+
</plugin>
1223+
</plugins>
1224+
</reporting>
1225+
</profile>
1226+
10851227
</profiles>
10861228

10871229
<modules>

0 commit comments

Comments
 (0)