-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation broken because of checkstyle #413
Comments
Hi @FDelporte , I'm sorry, but I'll be able to look at it in next week. The key line seems to be "Caused by: org.apache.maven.plugins.checkstyle.exec.CheckstyleExecutorException: There are 122 errors reported by Checkstyle 9.3 with config/checkstyle/checkstyle.xml ruleset." It looks like the rules defined in checkstyle were not met in 122 places. |
To be able to continue, I deleted the checkstyle plugin, and ignored errors in JavaDoc creation. |
@FDelporte please assign me to it. I'll fix it. |
Fixed in the #417 |
Thanks for the merge request @dariuszzbyrad.
For instance:
|
For what exact command are you getting the above error? Please also provide result for mvn --version From my perspective: java --version
openjdk 21.0.2 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode) The When I switch to your java version: java --version
openjdk 22.0.2 2024-07-16
OpenJDK Runtime Environment Zulu22.32+15-CA (build 22.0.2+9)
OpenJDK 64-Bit Server VM Zulu22.32+15-CA (build 22.0.2+9, mixed mode, sharing) The |
@dariuszzbyrad the build succeeds! But during the build, these errors are shown in the logs. Command is
|
Ok, now I know a bit more. Problems are two: The Javadoc configuration in the <additionalJOption>--add-modules</additionalJOption>
<additionalJOption>ALL-MODULE-PATH</additionalJOption> Why it's problematic: Solution: Remove the problematic lines and adjust the configuration to focus on your project's specific needs. For modular projects, ensure the correct 2. Warning: Warnings were generated for missing descriptions of Solution: Final Javadoc Configuration<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<source>${java.version}</source>
<detectJavaApiLink>false</detectJavaApiLink>
<doclint>none</doclint>
<!-- Optional: skip errors -->
<failOnError>false</failOnError>
<additionalOptions>-Xdoclint:none</additionalOptions>
</configuration>
</plugin> or by patch:
PR |
Please @dariuszzbyrad, I need your help on this one...
Seems to be caused by e530765
I tried extending checkstyle.xml with the following, but am still blocked:
After running
mvn clean install -Pnative -e
:The text was updated successfully, but these errors were encountered: