ArrayIndexOutOfBoundsException im maven-project-info-reports-plugin

Maven provides lots of tools regarding Java projects. One of the features is automatically generating HTML-sites using mavens site goal.

Today I was facing a problem regarding the page generation, which was using the maven-project-info-reports-plugin. This plugin was failing somewhere deep in the internals with an ArrayIndexOutOfBoundsException in maven-project-info-reports-plugin:

java.lang.ArrayIndexOutOfBoundsException: 1
    at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)
    ....

A short research brought to light, that the maven-site-plugin was to old. To use a more recent version in your project, add the following to your pom.xml:

<build>
 <plugins>
  <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-site-plugin</artifactId>
   <!-- Version 2.3 oder neuer wird für das maven-project-info-reports-plugin benötigt -->
   <version>2.3</version>
  </plugin>
 </plugins>
</build>
Copyright © christophbrill.de, 2002-2018.