Skip to content

Commit

Permalink
Merge pull request #763 from hboutemy/site-resources
Browse files Browse the repository at this point in the history
filter site content without hijacking main resources
  • Loading branch information
hazendaz authored Dec 5, 2022
2 parents f7e2020 + 517caba commit 207e94c
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,35 @@
</systemProperties>
</configuration>
</plugin>
<plugin><!-- prepare site content by filtering ${project.*} values-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filter-site</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site-src</outputDirectory>
<resources>
<resource>
<directory>src/site</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<locales>en,es,zh_CN,ja,ko</locales>
<!-- Build using files that replace a placeholder using project properties -->
<siteDirectory>${project.build.directory}/site-src</siteDirectory>
</configuration>
</configuration>
</plugin>
</plugins>

Expand All @@ -354,12 +375,6 @@
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
<!-- Copy for replacing a placeholder using project properties -->
<resource>
<directory>${project.basedir}/src/site</directory>
<targetPath>${project.build.directory}/site-src</targetPath>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
Expand Down

0 comments on commit 207e94c

Please sign in to comment.