"java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent"

Viewed 2701

I'm struggling with Maven plugins issues since days now doing a Maven > Lifecycle > Site

The errors I'm getting:

java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent

I know I'm missing some plugins. I've tried all the solutions in previous posts and many version last and older ones but still missing them and I don't know what I'm missing in my pom.xml:

2 Answers

Apparently you miss certain plugins in your <build/>. Add these:

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-site-plugin</artifactId>
      <version>3.10.0</version>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-project-info-reports-plugin</artifactId>
      <version>3.2.1</version>
    </plugin>
  </plugins>
</build>

and see if it helps.

This needs to be added to your pom.xml:

<dependency>
  <groupId>org.apache.maven.doxia</groupId>
  <artifactId>doxia-site-renderer</artifactId>
  <version>1.9.2</version>
</dependency>
Related