Loading
0

maven打包忽略javadoc的问题

在pom.xml的properties中加入下面设置:

忽略javadoc错误:

<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
     

跳过生成javadoc:

<maven.javadoc.skip>true</maven.javadoc.skip>

或者在插件中配置:

<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <version>3.2.0</version>
    <configuration>
        <failOnError>false</failOnError>
        <skip>true</skip>
    </configuration>
</plugin>

最后编辑于:2020/12/8作者: 编程小战

我不入地狱,谁入地狱?

评论已关闭