Maven 3에서 사이트 플러그인이보고와 관련하여 변경되었습니다.Maven 3, maven-site-plugin, 다중 모듈 프로젝트에서 reportPlugins 구성 방법
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 섹션에 복제해야합니까? 이 구성 중 하나라도 서브 모듈에 복제해야합니까? 나는 메이븐 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 섹션.
Maven 3에서이 중 일부 또는 전부를 사용할 수 있습니까?