[
https://issues.apache.org/jira/browse/MJAVADOC-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691032#comment-17691032
]
Patrick Ruckstuhl commented on MJAVADOC-742:
--------------------------------------------
{code:java}
mvn javadoc:javadoc
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< org.tario.MJAVADOC-742:project >-------------------
[INFO] Building project 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> maven-javadoc-plugin:3.5.0:javadoc (default-cli) > generate-sources
@ project >>>
[INFO]
[INFO] <<< maven-javadoc-plugin:3.5.0:javadoc (default-cli) < generate-sources
@ project <<<
[INFO]
[INFO]
[INFO] --- maven-javadoc-plugin:3.5.0:javadoc (default-cli) @ project ---
Downloading from apexcollateral:
https://artifactory.fis.dev/artifactory/apexcoll-maven-dev/org/tario/MJAVADOC-742/doclet/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Source files encoding has not been set, using platform encoding
Cp1252, i.e. build is platform dependent!
[INFO] Configuration changed, re-generating javadoc.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.233 s
[INFO] Finished at: 2023-02-20T07:58:26+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:javadoc (default-cli) on
project project: An error has occurred in Javadoc report generation:
[ERROR] Exit code: 4
[ERROR] error: fatal error encountered: java.lang.NoClassDefFoundError:
freemarker/template/Configuration
[ERROR] error: Please file a bug against the javadoc tool via the Java bug
reporting page
[ERROR] (http://bugreport.java.com) after checking the Bug Database
(http://bugs.java.com)
[ERROR] for duplicates. Include error messages and the following diagnostic
in your report. Thank you.
[ERROR] java.lang.NoClassDefFoundError: freemarker/template/Configuration
[ERROR] at DummyDoclet.run(DummyDoclet.java:33)
[ERROR] at
jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:556)
[ERROR] at
jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:393)
[ERROR] at
jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:342)
[ERROR] at
jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63)
[ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52)
[ERROR] Caused by: java.lang.ClassNotFoundException:
freemarker.template.Configuration
[ERROR] at
java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
[ERROR] at
java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[ERROR] at
java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[ERROR] ... 6 more
[ERROR] 2 errors
[ERROR] Command line was: cmd.exe /X /C ""C:\Program Files\Eclipse
Adoptium\jdk-17.0.5.8-hotspot\bin\javadoc.exe" @options @argfile"
[ERROR]
[ERROR] Refer to the generated Javadoc files in
'E:\projects\workspaces\playground\MJAVADOC-742\project\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 {code}
With
{code:java}
mvn -v
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.4
Java version: 17.0.5, vendor: Eclipse Adoptium, runtime: C:\Program
Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" {code}
> [REGRESSION] Transitive dependencies of docletArtifact missing
> --------------------------------------------------------------
>
> Key: MJAVADOC-742
> URL: https://issues.apache.org/jira/browse/MJAVADOC-742
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: javadoc
> Affects Versions: 3.5.0
> Reporter: Patrick Ruckstuhl
> Priority: Blocker
>
> It looks like with 3.5.0 transitive dependencies of the docletArtifact are no
> longer added to the classpath and generation fails with class not found.
> Reverting back to 3.4.1 everything works fine.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)