You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/03/09 20:46:00 UTC
[jira] [Closed] (MJAVADOC-603) javadoc:fix failure on JDK10:
java.lang.ClassNotFoundException: java.sql.Connection
[ https://issues.apache.org/jira/browse/MJAVADOC-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MJAVADOC-603.
-----------------------------------
Resolution: Incomplete
No sample project provided within 9 months. If you have one, we can reopen.
> javadoc:fix failure on JDK10: java.lang.ClassNotFoundException: java.sql.Connection
> -----------------------------------------------------------------------------------
>
> Key: MJAVADOC-603
> URL: https://issues.apache.org/jira/browse/MJAVADOC-603
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: fix
> Affects Versions: 3.1.0
> Environment: java version "10.0.2" 2018-07-17
> Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
> Reporter: Graham Leggett
> Priority: Major
>
> When trying to run javadoc:fix on the jdk as follows:
> {noformat}
> java version "10.0.2" 2018-07-17
> Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
> {noformat}
> The javadoc plugin fails as follows:
> {noformat}
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:fix failed: A required class was missing while executing org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:fix: java/sql/Connection
> {noformat}
> Last exception is as follows:
> {noformat}
> Caused by: java.lang.ClassNotFoundException: java.sql.Connection
> at java.net.URLClassLoader.findClass (URLClassLoader.java:466)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:566)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:499)
> at java.lang.Class.getDeclaredMethods0 (Native Method)
> at java.lang.Class.privateGetDeclaredMethods (Class.java:3119)
> at java.lang.Class.getDeclaredMethods (Class.java:2268)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.isInherited (AbstractFixJavadocMojo.java:2802)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.isInherited (AbstractFixJavadocMojo.java:2775)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.updateJavadocComment (AbstractFixJavadocMojo.java:1661)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.updateEntityComment (AbstractFixJavadocMojo.java:1621)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.fixMethodComment (AbstractFixJavadocMojo.java:1475)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.processFix (AbstractFixJavadocMojo.java:1066)
> at org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo.execute (AbstractFixJavadocMojo.java:472)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:564)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
> [ERROR]
> [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/PluginContainerException
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)