Skip to content

Commit

Permalink
filter site content without hijacking main resources
Browse files Browse the repository at this point in the history
fixes mybatis#759

(cherry picked from commit 517caba)
  • Loading branch information
hboutemy authored and kazuki43zoo committed Dec 6, 2022
1 parent e6677e3 commit 229bc24
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 @@ -327,14 +327,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 @@ -350,12 +371,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 229bc24

Please sign in to comment.