Skip to content

Commit b51c5d8

Browse files
[MJAVADOC-694] Avoid empty warn message from getResolvePathResult
1 parent 6b1515e commit b51c5d8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -5543,12 +5543,16 @@ private ResolvePathResult getResolvePathResult( File artifactFile )
55435543
}
55445544
catch ( IOException | RuntimeException /* e.g java.lang.module.FindException */ e )
55455545
{
5546-
Throwable cause = e;
5547-
while ( cause.getCause() != null )
5546+
if ( getLog().isDebugEnabled() )
55485547
{
5549-
cause = cause.getCause();
5548+
Throwable cause = e;
5549+
while ( cause.getCause() != null )
5550+
{
5551+
cause = cause.getCause();
5552+
}
5553+
5554+
getLog().debug( "resolve path for: " + artifactFile + " cause error: " + cause );
55505555
}
5551-
getLog().warn( e.getMessage() );
55525556
}
55535557
return resolvePathResult;
55545558
}

0 commit comments

Comments
 (0)