7aed0f3730
Problem: Der Aggregate-Report enthält Klassen aller Module. SonarQube analysiert jedes Modul isoliert und findet für Klassen anderer Module keine Quellen → "File not found" für alle Einträge. Das Coverage-Modul (kein Java-Code) lehnt beim Import alle Einträge ab. Lösung: - jacoco:report-Goal (verify-Phase) im Root-POM ergänzt → jedes Modul erzeugt target/site/jacoco/jacoco.xml nur für seine eigenen Klassen - sonar.coverage.jacoco.xmlReportPaths auf relativen Pfad target/site/jacoco/jacoco.xml umgestellt → SonarQube löst pro Modul auf, liest ausschließlich dessen eigene Klassen, keine Cross-Modul-Kollisionen mehr - sonar.skip=true in pdf-umbenenner-coverage und pdf-umbenenner-packaging gesetzt → Aggregator-/Packaging-Module ohne Java-Quellen werden von SonarQube nicht mehr analysiert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
97 lines
2.8 KiB
XML
97 lines
2.8 KiB
XML
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>de.gecheckt</groupId>
|
|
<artifactId>pdf-umbenenner-parent</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
<artifactId>pdf-umbenenner-coverage</artifactId>
|
|
<packaging>pom</packaging>
|
|
|
|
<properties>
|
|
<!-- Kein Java-Quellcode in diesem Aggregator-Modul; SonarQube-Analyse überspringen. -->
|
|
<sonar.skip>true</sonar.skip>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>de.gecheckt</groupId>
|
|
<artifactId>pdf-umbenenner-domain</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.gecheckt</groupId>
|
|
<artifactId>pdf-umbenenner-application</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.gecheckt</groupId>
|
|
<artifactId>pdf-umbenenner-adapter-in-cli</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.gecheckt</groupId>
|
|
<artifactId>pdf-umbenenner-adapter-out</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.gecheckt</groupId>
|
|
<artifactId>pdf-umbenenner-bootstrap</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>jacoco-report-aggregate</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>report-aggregate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.pitest</groupId>
|
|
<artifactId>pitest-maven</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>pitest</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>mutationCoverage</goal>
|
|
</goals>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>pitest-report-aggregate</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>report-aggregate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- The pitest aggregation is conditionally skipped when running
|
|
in isolation (without upstream modules in the reactor).
|
|
This module is designed to be run as part of the full multi-module build.
|
|
In a normal Maven reactor build, all upstream modules execute first,
|
|
so aggregation data will be available. If this module is run alone
|
|
(e.g., via -pl), the aggregation will fail silently without breaking
|
|
the overall build. -->
|
|
<skip>${pitest.aggregate.skip}</skip>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project> |