ChangeLog插件Maven-POM中的配置
我想在我的pom.xml中配置changelog插件ChangeLog插件Maven-POM中的配置,maven,changelog,Maven,Changelog,我想在我的pom.xml中配置changelog插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changelog-plugin</artifactId>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
但是有一个reportSets部分,所以我想知道我必须把插件放在哪里
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
可能进入scm插件的配置部分(reportPlugins…)该插件位于pom.xml的reporting部分
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
他们文档中的示例显示了如何配置报告集:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
与在
下配置的构建插件不同,报告插件嵌套在根
元素下的
元素中,如下所示:
<project>
<reporting>
<plugins>
<!-- one or more reporting plugins go here -->
</plugins>
<reporting>
</project>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
更具体一点:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
`
org.apache.maven.plugins
maven站点插件
3.3
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
org.apache.maven.plugins
maven变更日志插件
2.2
文件报告
范围
30
文件活动
然后。。。它应该有用 好的。但我认为报告部分已经被弃用了?我知道了。。。我必须把它嵌套在maven站点插件的内部!!!
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<reportSets>
<reportSet>
<id> file-report </id>
<configuration>
<type> range </type>
<range> 30</range>
</configuration>
<reports>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>