欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

mvn site 报错

程序员文章站 2022-07-15 12:46:57
...

运行出现 java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent错误
看警告
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

在pom.xml中添加该插件后,问题解决

<build>
  <plugins>
    <!-- 添加该插件后,上述问题解决 -->
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-project-info-reports-plugin</artifactId>
      <version>2.7</version>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-site-plugin</artifactId>
      <version>3.3</version>
      <configuration>
        <locales>zh_CN</locales>
      </configuration>
    </plugin>
  </plugins>
</build>
相关标签: maven