gpt4 book ai didi

maven - 如何使用Maven指定Javadoc HTML版本?

转载 作者:行者123 更新时间:2023-12-04 11:18:39 25 4
gpt4 key购买 nike

设置Maven生成Javadoc时,出现以下警告:

javadoc: warning - You have not specified the version of HTML to use. The default is currently HTML 4.01, but this will change to HTML5 in a future release. To suppress this warning, please specify the version of HTML used in your documentation comments and to be generated by this doclet, using the -html4 or -html5 options.



我该怎么做呢?

最佳答案

我是通过在Javadoc插件的additionalOptions部分添加configuration来实现的:

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<additionalOptions>-html5</additionalOptions>
</configuration>
</plugin>
</plugins>
</build>

关于maven - 如何使用Maven指定Javadoc HTML版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52157409/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com