1
配置reportPlugins与Maven 3,网站插件已经有关报告改变。的Maven 3,Maven的网站插件,如何在多模块项目
在行家2中,报告部有一个“继承”元件。例如:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe.plugin.version}</version>
<configuration>
<useFile>false</useFile>
</configuration>
<inherited>true</inherited>
<reportSets>
<reportSet>
<reports>
<report>report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
在Maven 3中是否存在报告插件继承?所以在maven 3 reportPlugins的继承行为是什么,是否有任何方法来改变这种行为,如maven 2继承元素?
第二个问题,部分在该网站的插件下reportPlugins上的插件配置中的任何影响?还是配置在pluginManagement & reportPlugins部分被复制?这些配置是否也必须在子模块中复制?
当时我想这样做在Maven的3以下的一天结束:
<!-- in parent pom -->
<build>
<pluginManagement>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe.plugin.version}</version>
<configuration>
<useFile>false</useFile>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<!-- no version num or config - specified in pluginManagement section -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<!-- no version num, config, or report set - specified in pluginManagement section -->
</plugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
<!-- in sub module pom -->
<!-- specify nothing - already in parent pom-->
而且我想所有这些配置被继承到子模块。即使是reportPlugins部分。
是任何/所有的这可能与行家3目前?