1 回答
TA贡献1789条经验 获得超10个赞
首先,您必须运行此命令:“mvn javadoc:fix” 之后,您可以使用“mvn install”或“mvn javadoc:jar”正常构建 javadoc
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<defaultAuthor>Meeresgott</defaultAuthor>
<defaultVersion>${project.version}</defaultVersion>
<version>true</version>
<author>true</author>
</configuration>
<executions>
<execution>
<id>update</id>
<goals>
<goal>fix</goal>
</goals>
</execution>
<execution>
<id>javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
添加回答
举报