gpt4 book ai didi

maven-3 - 如何使 maven changelog 插件同时生成 changelog.html 和 changelog.xml

转载 作者:行者123 更新时间:2023-12-01 21:09:17 24 4
gpt4 key购买 nike

版本:Apache Maven 3.0.5

我通过 maven 站点插件和命令 mvn site 成功生成了一个 changelog.xml。 pom.xml 的站点插件内容:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-2</version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.3</version>
</plugin>
</reportPlugins>
</configuration>
</plugin>

现在我还需要一个 changelog.html,我找不到任何关于如何配置我的 pom.xml 以生成 changlog 的 html 版本的信息。

最佳答案

您应该将插件移动到 pom.xml 的报告部分。

要生成报告,您必须将以下内容添加到变更日志和开发事件的变更日志插件的配置中(如果需要)。还有一个文件事件报告。

  <reportSets>
<reportSet>
<reports>
<report>changelog</report>
<report>dev-activity</report>
</reports>
</reportSet>

插件页面包含这些报告的样本:http://maven.apache.org/plugins/maven-changelog-plugin/changelog.html

关于maven-3 - 如何使 maven changelog 插件同时生成 changelog.html 和 changelog.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29832653/

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