diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java index b1b5a57ae..6fde43e8e 100644 --- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java +++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java @@ -5543,12 +5543,16 @@ private ResolvePathResult getResolvePathResult( File artifactFile ) } catch ( IOException | RuntimeException /* e.g java.lang.module.FindException */ e ) { - Throwable cause = e; - while ( cause.getCause() != null ) + if ( getLog().isDebugEnabled() ) { - cause = cause.getCause(); + Throwable cause = e; + while ( cause.getCause() != null ) + { + cause = cause.getCause(); + } + + getLog().debug( "resolve path for: " + artifactFile + " cause error: " + cause ); } - getLog().warn( e.getMessage() ); } return resolvePathResult; }