Maven release fails during javadoc generation
See original GitHub issue[INFO] [ERROR] error: module okhttp3.urlconnection reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module okio reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module okio reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module org.kohsuke.github.api reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module org.kohsuke.github.api reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module okhttp3 reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module okhttp3 reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module com.github.spotbugs.annotations reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module com.github.spotbugs.annotations reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module org.apache.commons.lang3 reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module org.apache.commons.lang3 reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module org.apache.commons.io reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: module org.apache.commons.io reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: the unnamed module reads package okhttp3 from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR] error: the unnamed module reads package okhttp3.internal from both okhttp3 and okhttp3.urlconnection
[INFO] [ERROR]
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
maven release:perform failing to even try to generate javadoc ...
Since moving to Java 11 quite a while ago now, the maven release plugin fails to generate javadoc alongside the built artifact.
Read more >Disable the Maven Javadoc Plugin - Baeldung
In this quick tutorial, we'll take a look at how to disable the Javadoc generation in Maven builds temporarily. 2. Introduction to the...
Read more >maven-javadoc-plugin 3.2.0 breaks release #1145 - GitHub
I was repeatedly unable to successfully execute mvn release:perform with the latest version of the javadoc plugin. Rolling back to 3.1.1 caused no...
Read more >Getting rid of javadoc error during releasing with maven
During my work I faced with a bit annoying error. Formerly I used Maven Release plugin several times to perform new releases from...
Read more >Release Plugin-Errors - Google Groups
I have developed one plugin and submitted in the github repository,the ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had a look this morning and I couldn’t find any way to easily avoid these errors.
Tried a ton of
javadoc
options as I was hoping there could be an option to limit the module checks but the problem seems to be with how the maven-javadoc-plugin includes all the artifacts in the module path:There’s no way to tweak this module path and, if there’s a way to add a dependency to the Javadoc classpath, there’s no way to exclude one.
I wonder if actually providing a module-info configuration could avoid that. From what I can see from the source of the plugin, if you have one, the maven-javadoc-plugin doesn’t build the module path by itself.
Now I’m not sure it’s doable with some of the dependencies probably not exposing a module name. And even if so, the module system could very well do the exact same checks even in this case.
I’m not very familiar with JPMS and I’d like to ask Yoann to have a look but he’s on sick leave today. We will let you know about our findings.
I worked around this finally by rolling back to a maven-javadoc-plugin v3.0.0 .
This reported 100+ instances of:
But it didn’t fail. That’s bad, but it let me get the release published.
I’ve rolled forward to v3.4.1 in
main
again. If I have to downgrade to get another release out, I can do that.But I’d really like help getting a actual solution to this.