The Maven plugin Projectmetadata Maven Plugin has been released with version 0.2.2.

This release simply adds the suppression XML file for checkstyle per default.

For details on this version of the library please visit the project's homepage, for changes since the last version, please consult the release report.

Troubles with Attaching the Javadoc Report?

Please note that you may encounter class path problems with some configurations of the Maven Site Plugin using the Maven Javadoc Plugin.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-site-plugin</artifactId>
  <executions>
    <execution>
      <id>attach-site</id>
      <phase>package</phase>
      <goals>
        <goal>jar</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Unfortunately configuring build plugins individually - which seems to be the cleanest approach to the problem - may not help, since not all plugins allow to generate XML reports outside a report configuration of the site plugin.

Therefore you may configure the site plugin to skip all reports that cause problems or simply do not provide any XML reports:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-site-plugin</artifactId>
  <configuration>
    <reportPlugins>
      <!-- 
        Skip any plugins here that do not 
        contribute to XML reports to be added.
      -->
    </reportPlugins>
  </configuration>
  <executions>
    <execution>
      <id>metadata</id>
      <phase>package</phase>
      <configuration>
        <attach>false</attach>
      </configuration>
      <goals>
        <goal>jar</goal>
      </goals>
    </execution>
  </executions>
</plugin>

This example also does not attach the generated site JAR, since this specialized execution lists only those reports that generate XML metadata. An attached site report should include all reports that are available in the site.

 


Link

Link

Posts

Tagcloud

Loading tagcloud ...