maven-3之如何使 maven changelog 插件同时生成 changelog.html 和 changelog.xml
soundcode
阅读:65
2025-06-02 22:19:02
评论:0
版本: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
声明
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。



