版本: 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版本的信息。
答案 0 :(得分:0)
您应将插件移至pom.xml的报告部分。
要生成报告,必须将以下内容添加到changelog插件的changelog插件的配置中(如果需要的话)和dev-activity。还有一个文件活动报告。
<reportSets>
<reportSet>
<reports>
<report>changelog</report>
<report>dev-activity</report>
</reports>
</reportSet>
插件页面上包含以下报告的示例:http://maven.apache.org/plugins/maven-changelog-plugin/changelog.html