changes.xml文件的备用位置

注意:此功能是在Changes 插件的2.0-beta-2版本中引入的。

注意:除非您有特殊原因将changes.xml文件放在其他位置,否则我们建议您将其放在默认位置${basedir}/src/changes/changes.xml。如果没有别的,它可以让您不必配置它。

如果您确实希望将您的changes.xml放在默认位置以外的其他位置,您可以通过配置您的pom.xml来做到这一点。在此示例中,我们要使用文件${basedir}/src/site/changes.xml

<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changes-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          <xmlPath>${basedir}/src/site/changes.xml</xmlPath>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>changes-report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>
  ...
</project>