Skip to content

Commit 8741fc6

Browse files
authored
Merge pull request #766 from hazendaz/master
Fixup site filtering and removed unnecessary parent duplication
2 parents 4de4bbc + 49d440a commit 8741fc6

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

pom.xml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,39 @@
8686
</properties>
8787

8888
<build>
89-
<resources>
90-
<resource>
91-
<directory>${project.basedir}/src/main/resources</directory>
92-
<filtering>true</filtering>
93-
</resource>
94-
<resource>
95-
<directory>${project.basedir}/src/site</directory>
96-
<targetPath>${project.build.directory}/site-src</targetPath>
97-
<filtering>true</filtering>
98-
</resource>
99-
</resources>
10089
<pluginManagement>
10190
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-resources-plugin</artifactId>
94+
<executions>
95+
<!-- prepare site content by filtering ${project.*} values-->
96+
<execution>
97+
<id>filter-site</id>
98+
<phase>pre-site</phase>
99+
<goals>
100+
<goal>copy-resources</goal>
101+
</goals>
102+
<configuration>
103+
<outputDirectory>${project.build.directory}/site-src</outputDirectory>
104+
<resources>
105+
<resource>
106+
<directory>src/site</directory>
107+
<filtering>true</filtering>
108+
</resource>
109+
</resources>
110+
</configuration>
111+
</execution>
112+
</executions>
113+
</plugin>
102114
<plugin>
103115
<groupId>org.apache.maven.plugins</groupId>
104116
<artifactId>maven-site-plugin</artifactId>
105117
<configuration>
106118
<locales>en,zh_CN</locales>
107-
<!-- Build using files that replace a placeholder using project properties -->
108119
<siteDirectory>${project.build.directory}/site-src</siteDirectory>
109120
</configuration>
110121
</plugin>
111-
<plugin>
112-
<groupId>org.apache.maven.plugins</groupId>
113-
<artifactId>maven-surefire-plugin</artifactId>
114-
</plugin>
115122
</plugins>
116123
</pluginManagement>
117124
</build>

0 commit comments

Comments
 (0)