java - maven-site-plugin: <body> tag is not being inherited -
if mvn site:effective-site
on parent this:
<project> <bannerleft> <name>xxx :: open source parent pom</name> </bannerleft> <publishdate /> <version /> <skin> <groupid>org.apache.maven.skins</groupid> <artifactid>maven-fluido-skin</artifactid> <version>1.5</version> </skin> <body> <menu ref="parent" /> <menu ref="reports" /> </body> </project>
however, if on child project this:
<project> <bannerleft> <name>xxx :: parent</name> </bannerleft> <publishdate /> <version /> <skin> <groupid>org.apache.maven.skins</groupid> <artifactid>maven-fluido-skin</artifactid> <version>1.5</version> </skin> <body /> </project>
here's site_en.xml thats in same project parent pom
<project> <body> <menu ref="parent" /> <menu ref="modules" /> <menu ref="reports" /> </body> <skin> <groupid>org.apache.maven.skins</groupid> <artifactid>maven-fluido-skin</artifactid> <version>1.5</version> </skin> </project>
here's pom structure project
<project> <modelversion>4.0.0</modelversion> <groupid>org.myorg</groupid> <artifactid>oss-parent</artifactid> <packaging>pom</packaging> <version>6-snapshot</version> ... <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-site-plugin</artifactid> <version>3.5.1</version> </plugin> </plugins> </pluginmanagement> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-site-plugin</artifactid> <configuration> <attach>true</attach> </configuration> </plugin> </plugins> </build>
here's subproject pom that's not inheriting body:
<project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.myorg</groupid> <artifactid>oss-parent</artifactid> <version>6-snapshot</version> </parent> ... <artifactid>my-project</artifactid> ... </project>
what gives? surely i'm not 1 needs site template whole enterprise!