[Project] Allow generating PMD and SpotBugs reports

This commit is contained in:
Robert von Burg 2021-09-29 10:04:05 +02:00
parent 015a7cec41
commit 8a1e7aea4e
17 changed files with 169 additions and 0 deletions

View File

@ -15,6 +15,13 @@
<description>Strolch Agent which is the runtime for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<name>li.strolch.bom</name>
<description>All of Strolch's dependencies for easy dependency management in Strolch projects</description>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>

View File

@ -15,6 +15,13 @@
<name>li.strolch.model</name>
<inceptionYear>2012</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -12,6 +12,13 @@
<artifactId>li.strolch.mvn.archetype.main</artifactId>
<packaging>maven-archetype</packaging>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<build>
<resources>

View File

@ -12,6 +12,13 @@
<artifactId>li.strolch.mvn.archetype.webapp</artifactId>
<packaging>maven-archetype</packaging>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<build>
<resources>

View File

@ -15,6 +15,13 @@
<description>Strolch project for running performance tests</description>
<inceptionYear>2015</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<properties>
<perfTestDisabled>true</perfTestDisabled>
</properties>

View File

@ -15,6 +15,13 @@
<description>PostgreSQL Persistence Implementation for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<description>Reference Persistence Implementation for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<name>li.strolch.privilege</name>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<description>Restful Web Service API for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<description>Service API for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<name>li.strolch.soql</name>
<inceptionYear>2012</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<dependency>

View File

@ -15,6 +15,13 @@
<description>runtime for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -16,6 +16,13 @@
<description>These utils contain project independent helper classes and utilities for reuse</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<description>WebSocket API for Strolch</description>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

View File

@ -15,6 +15,13 @@
<name>li.strolch.xmlpers</name>
<inceptionYear>2011</inceptionYear>
<distributionManagement>
<site>
<id>localhost</id>
<url>file://${project.basedir}/../target/${project.artifactId}</url>
</site>
</distributionManagement>
<dependencies>
<!-- Base -->

57
pom.xml
View File

@ -137,6 +137,7 @@
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
<archetype-packaging.version>3.2.0</archetype-packaging.version>
<spotbugs-maven-plugin.version>4.4.1</spotbugs-maven-plugin.version>
<warFinalName>NOT_SET</warFinalName>
<tomcat7Url>NOT_SET</tomcat7Url>
@ -489,6 +490,19 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin.version}</version>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin.version}</version>
<configuration>
<effort>Max</effort>
<threshold>Default</threshold>
<skipEmptyReport>false</skipEmptyReport>
<encoding>${project.build.sourceEncoding}</encoding>
<includeTests>true</includeTests>
<classFilesDirectory>${project.build.outputDirectory}</classFilesDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -673,6 +687,10 @@
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>localhost</id>
<url>file://${project.basedir}/target</url>
</site>
</distributionManagement>
<profiles>
@ -716,4 +734,43 @@
</profile>
</profiles>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin.version}</version>
<reportSets>
<reportSet>
<id>spotbugs</id>
<inherited>false</inherited>
<reports>
<report>spotbugs</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd-maven-plugin.version}</version>
<reportSets>
<reportSet>
<!-- aggregate reportSet, to define in poms having modules -->
<id>aggregate</id>
<inherited>false</inherited> <!-- don't run aggregate in child modules -->
<reports>
<report>aggregate-pmd</report>
<report>aggregate-cpd</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>