Skip to content

Commit 154e741

Browse files
authored
[MPLUGIN-428] Never try to retrieve javadoc URL for primitive types (#158)
1 parent 13bb83a commit 154e741

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorFilesGenerator.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,15 @@ else if ( type != DescriptorType.LIMITED_FOR_HELP_MOJO || parameter.isEditable()
513513

514514
GeneratorUtils.element( w, "type", parameter.getType() );
515515

516-
if ( type == DescriptorType.XHTML )
516+
if ( type == DescriptorType.XHTML && javadocLinkGenerator != null )
517517
{
518-
if ( javadocLinkGenerator != null )
518+
// skip primitives which never has javadoc
519+
if ( parameter.getType().indexOf( '.' ) == -1 )
520+
{
521+
LOG.debug( "Javadoc URLs are not available for primitive types like {}",
522+
parameter.getType() );
523+
}
524+
else
519525
{
520526
try
521527
{

0 commit comments

Comments
 (0)