【问题标题】:How to make maven changelog plugin generate both, a changelog.html and a changelog.xml如何使 maven changelog 插件同时生成 changelog.html 和 changelog.xml
【发布时间】:2015-04-23 19:28:37
【问题描述】:

版本: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 版本的信息。

【问题讨论】:

标签: maven-3 file-type changelog


【解决方案1】:

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

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-26
    • 1970-01-01
    • 2012-04-09
    • 2016-08-31
    • 1970-01-01
    • 2014-07-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多