This issue has been created
There are 6 updates, 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-411232a3-84e6-41d4-88ef-778b22adbab8 XCOMMONS-3727 Closed

Spurious Javadoc VM-initialization errors from offline-link generation for reactor dependencies

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-cec84689-0cdb-4c30-9faa-01702faf735e Vincent Massol created this issue on 23/Jul/26 21:17
 
Summary: Spurious Javadoc VM-initialization errors from offline-link generation for reactor dependencies
Issue Type: cid:jira-generated-image-avatar-411232a3-84e6-41d4-88ef-778b22adbab8 Bug
Affects Versions: 17.10.10
Assignee: Unassigned
Components: Development Issues only
Created: 23/Jul/26 21:17
Priority: cid:jira-generated-image-static-major-0e36b42e-ce05-49d0-b949-3aea8d9b3db0 Major
Reporter: Vincent Massol
Description:

The maven-javadoc-plugin has detectOfflineLinks enabled by default, which makes it generate -linkoffline cross-links to the Javadoc of reactor-dependency modules. When such a dependency's apidocs have not been generated yet (for example xwiki-commons-legacy-velocity depends on xwiki-commons-legacy-velocity-tools), the plugin forks a new Maven process to generate them, and that fork fails to initialize its JVM. This produces a cascade of confusing errors during the release/quality Javadoc JAR generation:

The goal '...:javadoc' has not been previously called for the module ... Trying to invoke it...
Error occurred during initialization of VM ...
Creating fake javadoc directory ...
Error fetching link: .../apidocs. Ignored it.

We don't publish an aggregated Javadoc site (each module's Javadoc JAR is deployed independently and cross-module navigation goes through the custom project URL), so these offline links serve no purpose. Fix by disabling detectOfflineLinks in the shared plugin configuration.

 
 

6 updates

 
cid:jira-generated-image-avatar-cec84689-0cdb-4c30-9faa-01702faf735e Changes by Vincent Massol on 23/Jul/26 21:17
 
Fix Version: 18.7.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Resolution: Fixed
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-cec84689-0cdb-4c30-9faa-01702faf735e Vincent Massol on 23/Jul/26 21:19
 

Note that disabling detectOfflineLinks also speeds up the build.