Gabriel Wolf created MJAVADOC-750:
-------------------------------------

             Summary: Error generating 
maven-javadoc-plugin:3.5.0:test-aggregate-no-fork report
                 Key: MJAVADOC-750
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-750
             Project: Maven Javadoc Plugin
          Issue Type: Bug
          Components: javadoc
    Affects Versions: 3.5.0
            Reporter: Gabriel Wolf


I get this error on a submodule when i execute mvn site on the hole project or 
the submodule. Here is the log output for the sub module with -X flag:


{code}
[INFO] Generating "Javadoc" report       --- 
maven-javadoc-plugin:3.5.0:aggregate-no-fork
[DEBUG] isSkippedJavadoc MavenProject: works.reload:rebuild:1.4.0 @ 
C:\Users\Gabriel\IdeaProjects\ReBuild\pom.xml false
[DEBUG] No maven-compiler-plugin defined in ${build.plugins} or in 
${project.build.pluginManagement} for the works.reload:reanalytics:jar:1.4.0. 
Added Javadoc API link according the javadoc executable version i.e.: 17.0.4
[DEBUG] No Java API link found.
[DEBUG] isSkippedJavadoc MavenProject: works.reload:rebuild:1.4.0 @ 
C:\Users\Gabriel\IdeaProjects\ReBuild\pom.xml false
[INFO] Configuration changed, re-generating javadoc.
[DEBUG] cmd.exe /X /C ""C:\Program Files\Java\jdk-17.0.4.1\bin\javadoc.exe" 
@options @packages"
[DEBUG] Generating 
C:\Users\Gabriel\IdeaProjects\ReBuild\ReAnalytics\target\site\testapidocs\index.html
[INFO] Generating "Test Javadoc" report  --- 
maven-javadoc-plugin:3.5.0:test-aggregate-no-fork
[DEBUG] isSkippedJavadoc MavenProject: works.reload:rebuild:1.4.0 @ 
C:\Users\Gabriel\IdeaProjects\ReBuild\pom.xml false
[DEBUG] No maven-compiler-plugin defined in ${build.plugins} or in 
${project.build.pluginManagement} for the works.reload:reanalytics:jar:1.4.0. 
Added Javadoc API link according the javadoc executable version i.e.: 17.0.4
[DEBUG] No Java API link found.
[DEBUG] Could not follow ../apidocs. Reason: URI is not absolute
[DEBUG] isSkippedJavadoc MavenProject: works.reload:rebuild:1.4.0 @ 
C:\Users\Gabriel\IdeaProjects\ReBuild\pom.xml false
[INFO] Configuration changed, re-generating javadoc.
[DEBUG] cmd.exe /X /C ""C:\Program Files\Java\jdk-17.0.4.1\bin\javadoc.exe" 
@options @packages"
[DEBUG] Loading source files for package works.reload.reanalytics...
[DEBUG] Loading source files for package 
works.reload.reanalytics.eventanalysis...
[DEBUG] Constructing Javadoc information...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.264 s
[INFO] Finished at: 2023-06-01T15:54:49+02:00
[INFO] ------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 11 plugin(s)
[WARNING]
[WARNING]  * com.github.spotbugs:spotbugs-maven-plugin:4.7.3.2
[WARNING]  * org.apache.maven.plugins:maven-checkstyle-plugin:3.3.0
[WARNING]  * org.pitest:pitest-maven:1.14.1
[WARNING]  * org.apache.maven.plugins:maven-site-plugin:4.0.0-M8
[WARNING]  * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
[WARNING]  * org.apache.maven.plugins:maven-surefire-report-plugin:3.1.0
[WARNING]  * org.apache.maven.plugins:maven-pmd-plugin:3.20.0
[WARNING]  * org.apache.maven.plugins:maven-javadoc-plugin:3.5.0
[WARNING]  * org.apache.maven.plugins:maven-resources-plugin:3.3.0
[WARNING]  * org.apache.maven.plugins:maven-project-info-reports-plugin:3.4.4
[WARNING]  * org.apache.maven.plugins:maven-jxr-plugin:3.3.0
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation' property with 
one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:4.0.0-M8:site (default-site) on 
project reanalytics: Error generating 
maven-javadoc-plugin:3.5.0:test-aggregate-no-fork report:
[ERROR] Exit code: 1
[ERROR] error: No public or protected classes found to document.
[ERROR] 1 error
[ERROR] Command line was: cmd.exe /X /C ""C:\Program 
Files\Java\jdk-17.0.4.1\bin\javadoc.exe" @options @packages"
[ERROR]
[ERROR] Refer to the generated Javadoc files in 
'C:\Users\Gabriel\IdeaProjects\ReBuild\ReAnalytics\target\site\testapidocs' dir.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:4.0.0-M8:site (default-site) on 
project reanalytics: Error generating 
maven-javadoc-plugin:3.5.0:test-aggregate-no-fork report
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:347)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:160)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:348)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error generating 
maven-javadoc-plugin:3.5.0:test-aggregate-no-fork report
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:120)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:342)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:160)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:348)
Caused by: org.apache.maven.reporting.MavenReportException:
Exit code: 1
error: No public or protected classes found to document.
1 error
Command line was: cmd.exe /X /C ""C:\Program 
Files\Java\jdk-17.0.4.1\bin\javadoc.exe" @options @packages"

Refer to the generated Javadoc files in 
'C:\Users\Gabriel\IdeaProjects\ReBuild\ReAnalytics\target\site\testapidocs' dir.

    at 
org.apache.maven.plugins.javadoc.AbstractJavadocMojo.doExecuteJavadocCommandLine
 (AbstractJavadocMojo.java:5166)
    at 
org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocCommandLine 
(AbstractJavadocMojo.java:5051)
    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport 
(AbstractJavadocMojo.java:2022)
    at org.apache.maven.plugins.javadoc.TestJavadocReport.executeReport 
(TestJavadocReport.java:153)
    at org.apache.maven.plugins.javadoc.JavadocReport.generate 
(JavadocReport.java:136)
    at 
org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument 
(ReportDocumentRenderer.java:198)
    at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render 
(DefaultSiteRenderer.java:298)
    at org.apache.maven.plugins.site.render.SiteMojo.renderNonDoxiaDocuments 
(SiteMojo.java:280)
    at org.apache.maven.plugins.site.render.SiteMojo.renderLocale 
(SiteMojo.java:162)
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:115)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:342)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:160)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:348)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[DEBUG] Shutting down adapter factory; available factories [file-lock, 
rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
file-gav, file-hgav, file-static, gav, static]
[DEBUG] Shutting down 'file-lock' factory
[DEBUG] Shutting down 'rwlock-local' factory
[DEBUG] Shutting down 'semaphore-local' factory
[DEBUG] Shutting down 'noop' factory
{code}

Here is the parent pom:
{code: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>
        <groupId>works.reload</groupId>
        <artifactId>rebuild</artifactId>
        <packaging>pom</packaging>
        <version>${revision}</version>
        <name>ReLoAd CI-Build</name>
        <properties>
                <revision>1.4.0</revision>
                <minecraft.api.version>1.19</minecraft.api.version>
                
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>
        <modules>
                <module>Config</module>
                <module>ReAnalytics</module>
                <module>ReBlokk</module>
                <module>ReBukkit</module>
                <module>ReCore</module>
                <module>ReDeBug</module>
                <module>ReLoAd</module>
                <module>ReLogic</module>
                <module>ReMenu</module>
                <module>ReSatellite</module>
                <module>ReSource</module>
        </modules>

        <organization>
                <name>Resilient TechEd GmbH</name>
                <url>https://www.reload.works/</url>
        </organization>

        <repositories>
                <repository>
                        <id>paper-repo</id>
                        <name>PaperMC repository</name>
                        
<url>https://repo.papermc.io/repository/maven-public/</url>
                </repository>
                <repository>
                        <id>enginehub-repo</id>
                        <url>https://maven.enginehub.org/repo/</url>
                </repository>
                <repository>
                        <id>minebench-repo</id>
                        <url>https://repo.minebench.de/</url>
                </repository>
        </repositories>

        <dependencies>
                <dependency>
                        <groupId>org.jetbrains</groupId>
                        <artifactId>annotations</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.junit.jupiter</groupId>
                        <artifactId>junit-jupiter-engine</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.junit.jupiter</groupId>
                        <artifactId>junit-jupiter-params</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.junit.platform</groupId>
                        <artifactId>junit-platform-launcher</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-junit-jupiter</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs-annotations</artifactId>
                </dependency>
        </dependencies>

        <dependencyManagement>
                <dependencies>
                        <dependency>
                                <groupId>works.reload</groupId>
                                <artifactId>rebukkit</artifactId>
                                <version>${project.version}</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>works.reload</groupId>
                                <artifactId>recore</artifactId>
                                <version>${project.version}</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>works.reload</groupId>
                                <artifactId>reload</artifactId>
                                <version>${project.version}</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>works.reload</groupId>
                                <artifactId>relogic</artifactId>
                                <version>${project.version}</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>io.papermc.paper</groupId>
                                <artifactId>paper-api</artifactId>
                                <version>1.19.3-R0.1-SNAPSHOT</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>com.google.guava</groupId>
                                <artifactId>guava</artifactId>
                                <version>31.1-jre</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>com.google.code.gson</groupId>
                                <artifactId>gson</artifactId>
                                <version>2.10.1</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>org.apache.commons</groupId>
                                <artifactId>commons-lang3</artifactId>
                                <version>3.12.0</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>de.themoep</groupId>
                                <artifactId>inventorygui</artifactId>
                                <version>1.6-SNAPSHOT</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>com.sk89q.worldedit</groupId>
                                <artifactId>worldedit-bukkit</artifactId>
                                <version>7.3.0-SNAPSHOT</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>org.jetbrains</groupId>
                                <artifactId>annotations</artifactId>
                                <version>24.0.1</version>
                                <scope>provided</scope>
                        </dependency>

                        <dependency>
                                <groupId>org.hamcrest</groupId>
                                <artifactId>hamcrest</artifactId>
                                <version>2.2</version>
                                <scope>test</scope>
                        </dependency>

                        <dependency>
                                <groupId>org.junit</groupId>
                                <artifactId>junit-bom</artifactId>
                                <version>5.10.0-M1</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>

                        <dependency>
                                <groupId>org.mockito</groupId>
                                <artifactId>mockito-bom</artifactId>
                                <version>5.3.1</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>

                        <dependency>
                                <groupId>com.github.spotbugs</groupId>
                                <artifactId>spotbugs-annotations</artifactId>
                                <version>4.7.3</version>
                        </dependency>
                </dependencies>
        </dependencyManagement>

        <build>
                <finalName>${project.name}-${project.version}</finalName>
                <resources>
                        <resource>
                                <directory>src/main/resources</directory>
                                <filtering>true</filtering>
                        </resource>
                </resources>

                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-enforcer-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>enforce-maven</id>
                                                <goals>
                                                        <goal>enforce</goal>
                                                </goals>
                                                <configuration>
                                                        <rules>
                                                                
<requireMavenVersion>
                                                                        
<version>3.8.1</version>
                                                                
</requireMavenVersion>
                                                        </rules>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                
<id>enforce-banned-dependencies</id>
                                                <goals>
                                                        <goal>enforce</goal>
                                                </goals>
                                                <configuration>
                                                        <rules>
                                                                <!--
                                                                        Banned 
dependencies are not allowed in the project, and may cause build failures or 
unexpected behavior.
                                                                        This is 
due to conflicts between banned dependencies and existing project dependencies.
                                                                        For 
example, a banned dependency may be an older version of a project dependency,
                                                                        but 
with a different groupId or artifactId, making it difficult for Maven to detect 
the conflict
                                                                        and 
choose the correct dependency.
                                                                -->
                                                                
<bannedDependencies>
                                                                        
<excludes>
                                                                                
<!-- We use com.github.spotbugs, the successor of FindBugs. -->
                                                                                
<exclude>com.google.code.findbugs</exclude>

                                                                                
<!-- We use org.junit.jupiter; previous versions (i.e. JUnit 4) should never be 
referenced. -->
                                                                                
<exclude>junit</exclude>

                                                                                
<!-- We only depend on Paper; plugins must not introduce Spigot or Bukkit 
dependencies. -->
                                                                                
<exclude>org.spigotmc</exclude>
                                                                                
<exclude>org.bukkit</exclude>
                                                                        
</excludes>
                                                                        
<includes>
                                                                                
<!-- SpotBugs still references the jsr305 Artifact from the original FindBugs. 
-->
                                                                                
<include>com.google.code.findbugs:jsr305</include>
                                                                        
</includes>
                                                                
</bannedDependencies>
                                                        </rules>
                                                        <fail>true</fail>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>flatten-maven-plugin</artifactId>
                                <version>1.5.0</version>
                                <configuration>
                                        <updatePomFile>true</updatePomFile>
                                        
<flattenMode>resolveCiFriendliesOnly</flattenMode>
                                        
<outputDirectory>${project.build.directory}</outputDirectory>
                                </configuration>
                                <executions>
                                        <execution>
                                                <id>flatten</id>
                                                <phase>process-resources</phase>
                                                <goals>
                                                        <goal>flatten</goal>
                                                </goals>
                                        </execution>
                                        <execution>
                                                <id>flatten.clean</id>
                                                <phase>clean</phase>
                                                <goals>
                                                        <goal>clean</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-javadoc-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-shade-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>shade</goal>
                                                </goals>
                                                <configuration>
                                                        
<shadedArtifactId>${project.name}</shadedArtifactId>
                                                        
<createDependencyReducedPom>false</createDependencyReducedPom>
                                                        
<shadedArtifactAttached>true</shadedArtifactAttached>
                                                        <artifactSet>
                                                                <excludes>
                                                                        
<exclude>com.github.spotbugs:spotbugs-annotations</exclude>
                                                                </excludes>
                                                        </artifactSet>
                                                        <filters>
                                                                <filter>
                                                                        
<artifact>*</artifact>
                                                                        
<excludes>
                                                                                
<exclude>META-INF/**</exclude>
                                                                        
</excludes>
                                                                </filter>
                                                        </filters>
                                                        <relocations>
                                                                <relocation>
                                                                        
<pattern>com.google</pattern>
                                                                        
<shadedPattern>${project.groupId}.dependencies.com.google</shadedPattern>
                                                                </relocation>
                                                                <relocation>
                                                                        
<pattern>de.themoep</pattern>
                                                                        
<shadedPattern>${project.groupId}.dependencies.de.themoep</shadedPattern>
                                                                </relocation>
                                                                <relocation>
                                                                        
<pattern>org.apache.commons.lang3</pattern>
                                                                        
<shadedPattern>${project.groupId}.dependencies.org.apache.commons.lang3</shadedPattern>
                                                                </relocation>
                                                        </relocations>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.ec4j.maven</groupId>
                                
<artifactId>editorconfig-maven-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-pmd-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>check</id>
                                                <goals>
                                                        <goal>check</goal>
                                                </goals>
                                                <configuration>
                                                        
<failOnViolation>true</failOnViolation>
                                                        
<printFailingErrors>true</printFailingErrors>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>com.github.spotbugs</groupId>
                                <artifactId>spotbugs-maven-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>check</id>
                                                <goals>
                                                        <goal>check</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-checkstyle-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>check</id>
                                                <goals>
                                                        <goal>check</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-enforcer-plugin</artifactId>
                                        <version>3.3.0</version>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-compiler-plugin</artifactId>
                                        <version>3.10.1</version>
                                        <configuration>
                                                <release>17</release>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-surefire-plugin</artifactId>
                                        <version>3.1.0</version>
                                        <configuration>
                                                <reuseForks>false</reuseForks>
                                                <forkCount>0.5C</forkCount>
                                                <includes>
                                                        
<include>**/*Tests.java</include>
                                                </includes>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-javadoc-plugin</artifactId>
                                        <version>3.5.0</version>
                                        <configuration>
                                                <!-- Do not report "missing" 
(with that, we could also just specify "all"). -->
                                                
<doclint>accessibility,html,reference,syntax</doclint>
                                                <failOnError>true</failOnError>
                                                
<failOnWarnings>true</failOnWarnings>
                                                <tags>
                                                        <tag>
                                                                
<name>apiNote</name>
                                                                
<placement>a</placement>
                                                                <head>API 
Note</head>
                                                        </tag>
                                                </tags>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-shade-plugin</artifactId>
                                        <version>3.4.1</version>
                                </plugin>
                                <plugin>
                                        <groupId>org.ec4j.maven</groupId>
                                        
<artifactId>editorconfig-maven-plugin</artifactId>
                                        <version>0.1.3</version>
                                        <executions>
                                                <execution>
                                                        <id>check</id>
                                                        <goals>
                                                                
<goal>check</goal>
                                                        </goals>
                                                </execution>
                                        </executions>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-pmd-plugin</artifactId>
                                        <version>3.20.0</version>
                                        <dependencies>
                                                <dependency>
                                                        
<groupId>net.sourceforge.pmd</groupId>
                                                        
<artifactId>pmd-core</artifactId>
                                                        
<version>6.53.0</version>
                                                </dependency>
                                                <dependency>
                                                        
<groupId>net.sourceforge.pmd</groupId>
                                                        
<artifactId>pmd-java</artifactId>
                                                        
<version>6.53.0</version>
                                                </dependency>
                                                <dependency>
                                                        
<groupId>works.reload</groupId>
                                                        
<artifactId>config</artifactId>
                                                        <version>1.0.0</version>
                                                </dependency>
                                        </dependencies>
                                        <configuration>
                                                
<analysisCache>true</analysisCache>
                                                <rulesets>
                                                        
<ruleset>config/pmd-ruleset.xml</ruleset>
                                                </rulesets>
                                                
<includeTests>true</includeTests>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        <groupId>com.github.spotbugs</groupId>
                                        
<artifactId>spotbugs-maven-plugin</artifactId>
                                        <version>4.7.3.2</version>
                                        <dependencies>
                                                <dependency>
                                                        
<groupId>works.reload</groupId>
                                                        
<artifactId>config</artifactId>
                                                        <version>1.0.0</version>
                                                </dependency>
                                        </dependencies>
                                        <configuration>
                                                
<excludeFilterFile>config/spotbugs-exclude.xml</excludeFilterFile>
                                                <effort>max</effort>
                                                <threshold>low</threshold>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-checkstyle-plugin</artifactId>
                                        <version>3.3.0</version>
                                        <dependencies>
                                                <dependency>
                                                        
<groupId>com.puppycrawl.tools</groupId>
                                                        
<artifactId>checkstyle</artifactId>
                                                        
<version>10.12.0</version>
                                                </dependency>
                                                <dependency>
                                                        
<groupId>works.reload</groupId>
                                                        
<artifactId>config</artifactId>
                                                        <version>1.0.0</version>
                                                </dependency>
                                        </dependencies>
                                        <configuration>
                                                
<configLocation>config/checkstyle.xml</configLocation>
                                                
<includeTestSourceDirectory>true</includeTestSourceDirectory>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-site-plugin</artifactId>
                                        <version>4.0.0-M8</version>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-project-info-reports-plugin</artifactId>
                                        <version>3.4.4</version>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-jxr-plugin</artifactId>
                                        <version>3.3.0</version>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-surefire-report-plugin</artifactId>
                                        <version>3.1.0</version>
                                </plugin>
                                <plugin>
                                        <groupId>org.codehaus.mojo</groupId>
                                        
<artifactId>cobertura-maven-plugin</artifactId>
                                        <version>2.7</version>
                                </plugin>
                                <plugin>
                                        <groupId>org.pitest</groupId>
                                        <artifactId>pitest-maven</artifactId>
                                        <version>1.14.1</version>
                                        <dependencies>
                                                <dependency>
                                                        
<groupId>org.pitest</groupId>
                                                        
<artifactId>pitest-junit5-plugin</artifactId>
                                                        <version>1.2.0</version>
                                                </dependency>
                                        </dependencies>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>
        <reporting>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                
<artifactId>maven-project-info-reports-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-pmd-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>com.github.spotbugs</groupId>
                                <artifactId>spotbugs-maven-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-checkstyle-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-javadoc-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jxr-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                
<artifactId>maven-surefire-report-plugin</artifactId>
                        </plugin>
                        <plugin>
                                <groupId>org.pitest</groupId>
                                <artifactId>pitest-maven</artifactId>
                        </plugin>
                </plugins>
        </reporting>
        <profiles>
                <!--
                        includedSurefireGroups runs tests (selected via tags) 
exclusively; tags excluded by default need to be explicitly un-excluded.
                        excludedSurefireGroups ignores tests.
                        Both can be (comma-separated) lists of tags (defined 
via @Tag("TAG-NAME")) or tag expressions (NAME1 & NAME2, NAME1 | NAME2).
                        Note: To run all available tests (not just unit tests), 
the shorter -DallTests=true can be used.
                -->
                <!-- We need this profiles related to this issue: 
https://github.com/pitest/pitest-junit5-plugin/issues/97 -->
                <profile>
                        <id>test-default_excluded_groups</id>
                        <activation>
                                <property>
                                        <name>!excludedSurefireGroups</name>
                                </property>
                        </activation>
                        <build>
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-surefire-plugin</artifactId>
                                                <configuration>
                                                        
<excludedGroups>slow</excludedGroups>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
                <profile>
                        <id>test-excluded_groups</id>
                        <activation>
                                <property>
                                        <name>excludedSurefireGroups</name>
                                </property>
                        </activation>
                        <build>
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-surefire-plugin</artifactId>
                                                <configuration>
                                                        
<excludedGroups>${excludedSurefireGroups}</excludedGroups>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
                <profile>
                        <id>test-included_groups</id>
                        <activation>
                                <property>
                                        <name>includedSurefireGroups</name>
                                </property>
                        </activation>
                        <build>
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-surefire-plugin</artifactId>
                                                <configuration>
                                                        
<groups>${includedSurefireGroups}</groups>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>

                <profile>
                        <!--
                                Run all available tests (also those that are 
skipped by default) via -DallTests=true
                        -->
                        <id>test-all</id>
                        <activation>
                                <property>
                                        <name>allTests</name>
                                        <value>true</value>
                                </property>
                        </activation>
                        <build>
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
                                                
<artifactId>maven-surefire-plugin</artifactId>
                                                <configuration>
                                                        <excludedGroups/>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
                <profile>
                        <!--
                                 Pitest's reports are always copied when goal 
`site` is called, but gives an exception
                                 when the reports are not generated. This 
profile activates the plugin only when the reports exist.
                                 Reports can be generated by running 
`test-compile org.pitest:pitest-maven:mutationCoverage`
                        -->
                        <id>Site-SkipPitestWhenNoReport</id>
                        <activation>
                                <file>
                                        
<missing>target/artifacts/pit-reports</missing>
                                </file>
                        </activation>

                        <reporting>
                                <plugins>
                                        <plugin>
                                                <groupId>org.pitest</groupId>
                                                
<artifactId>pitest-maven</artifactId>
                                                <configuration>
                                                        <skip>true</skip>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </reporting>
                </profile>
        </profiles>
</project>
{code}

And the child pom for ReAnalytics
{code: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>works.reload</groupId>
                <artifactId>rebuild</artifactId>
                <version>${revision}</version>
        </parent>
        <artifactId>reanalytics</artifactId>
        <name>ReAnalytics</name>
        <description>Resilient Analytics Plugin</description>
        <dependencies>
                <dependency>
                        <groupId>works.reload</groupId>
                        <artifactId>rebukkit</artifactId>
                </dependency>
                <dependency>
                        <groupId>io.papermc.paper</groupId>
                        <artifactId>paper-api</artifactId>
                </dependency>
        </dependencies>
</project>
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to