[ 
https://issues.apache.org/jira/browse/MJAVADOC-786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17865724#comment-17865724
 ] 

Michael Osipov commented on MJAVADOC-786:
-----------------------------------------

This seems to be off. SLF4J 2.0 is intended for Java 8, but the Javadoc 
uploaded is not compatible with Java 8, this means that the build is not OK, 
not the plugin isn't it?

I have tried to build Javadoc from source, but it fails for me:
{noformat}
[INFO] --- maven-javadoc-plugin:3.6.3:aggregate (default-cli) @ slf4j-bom ---
[WARNING] Source files encoding has not been set, using platform encoding 
UTF-8, i.e. build is platform dependent!
[INFO] No previous run data found, generating javadoc.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SLF4J BOM 2.0.14-SNAPSHOT:
[INFO]
[INFO] SLF4J BOM .......................................... FAILURE [  4.449 s]
[INFO] SLF4J Parent POM ................................... SUCCESS [  1.686 s]
[INFO] SLF4J API Module ................................... SUCCESS [  5.279 s]
[INFO] SLF4J Simple Provider .............................. SUCCESS [  1.134 s]
[INFO] SLF4J NOP Provider ................................. SUCCESS [  0.532 s]
[INFO] SLF4J JDK14 Provider ............................... SUCCESS [  0.601 s]
[INFO] SLF4J JDK Platform Logging Integration ............. SUCCESS [  0.709 s]
[INFO] SLF4J LOG4J-12 Binding relocated ................... SUCCESS [  0.031 s]
[INFO] SLF4J Reload4j Provider ............................ SUCCESS [  0.670 s]
[INFO] SLF4J Extensions Module ............................ SUCCESS [  0.965 s]
[INFO] JCL 1.2 implemented over SLF4J ..................... SUCCESS [  0.655 s]
[INFO] Log4j Implemented Over SLF4J ....................... SUCCESS [  0.733 s]
[INFO] JUL to SLF4J bridge ................................ SUCCESS [  0.416 s]
[INFO] OSGi LogService implemented over SLF4J ............. SUCCESS [  0.355 s]
[INFO] SLF4J Integration tests ............................ SUCCESS [  2.202 s]
[INFO] SLF4J Migrator ..................................... SUCCESS [  0.570 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  21.620 s
[INFO] Finished at: 2024-07-13T23:51:39+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-javadoc-plugin:3.6.3:aggregate (default-cli) on 
project slf4j-bom: An error has occurred in Javadoc report generation:
[ERROR] Exit code: 2
[ERROR] error: No source files for package org.slf4j.event
[ERROR] 1 error
[ERROR] Command line was: cmd.exe /X /C ""C:\Program Files\Eclipse 
Adoptium\jdk-17.0.11.9-hotspot\bin\javadoc.exe" @options @packages"
[ERROR]
[ERROR] Refer to the generated Javadoc files in 
'D:\Entwicklung\Projekte\slf4j\target\site\apidocs' dir.
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
D:\Entwicklung\Projekte\slf4j [master ≡ +0 ~1 -0 !]>
{noformat}

and the {{@options}} is looks wrong as well, no source or release flag 
provided. It build as if for Java 17, 21, you name it.

> Detected links for for dependencies and new JavaDocs on JDK8
> ------------------------------------------------------------
>
>                 Key: MJAVADOC-786
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-786
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>            Reporter: Slawomir Jaranowski
>            Priority: Major
>
> When we detect links for dependencies we should check if {{package-list}} is 
> present on JDK8
>  
> Eg, test: MJAVADOC-427 will fail on JDK8 because only 
> {{https://www.slf4j.org/apidocs/element-list}} is present currently.



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

Reply via email to