ChangeLog插件Maven - 在POM中的配置

3
我希望配置pom.xml中的changelog插件,但有一个reportSets部分,所以我想知道我应该把插件放在哪里?也许是放在scm插件的configuration部分(reportPlugins等)中。
2个回答

3

好的。但是我认为报告部分已经被弃用了? - julschi
我明白了...我必须将它嵌套在Maven站点插件的<configuration>中!!! - julschi

1
更加具体一些:

` org.apache.maven.plugins maven-site-plugin 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>

然后...它应该可以工作了!


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接