|
198 | 198 | </dependency> |
199 | 199 | </dependencies> |
200 | 200 | </plugin> |
| 201 | + <!-- Filter site markdown files to replace ${project.version} --> |
| 202 | + <plugin> |
| 203 | + <groupId>org.apache.maven.plugins</groupId> |
| 204 | + <artifactId>maven-resources-plugin</artifactId> |
| 205 | + <version>3.3.1</version> |
| 206 | + <executions> |
| 207 | + <execution> |
| 208 | + <id>filter-site-markdown</id> |
| 209 | + <phase>pre-site</phase> |
| 210 | + <goals> |
| 211 | + <goal>copy-resources</goal> |
| 212 | + </goals> |
| 213 | + <configuration> |
| 214 | + <outputDirectory>${project.build.directory}/filtered-site/markdown</outputDirectory> |
| 215 | + <resources> |
| 216 | + <resource> |
| 217 | + <directory>src/site/markdown</directory> |
| 218 | + <filtering>true</filtering> |
| 219 | + </resource> |
| 220 | + </resources> |
| 221 | + </configuration> |
| 222 | + </execution> |
| 223 | + <execution> |
| 224 | + <id>copy-site-descriptor</id> |
| 225 | + <phase>pre-site</phase> |
| 226 | + <goals> |
| 227 | + <goal>copy-resources</goal> |
| 228 | + </goals> |
| 229 | + <configuration> |
| 230 | + <outputDirectory>${project.build.directory}/filtered-site</outputDirectory> |
| 231 | + <resources> |
| 232 | + <resource> |
| 233 | + <directory>src/site</directory> |
| 234 | + <includes> |
| 235 | + <include>site.xml</include> |
| 236 | + </includes> |
| 237 | + <filtering>false</filtering> |
| 238 | + </resource> |
| 239 | + </resources> |
| 240 | + </configuration> |
| 241 | + </execution> |
| 242 | + <execution> |
| 243 | + <id>copy-site-resources</id> |
| 244 | + <phase>pre-site</phase> |
| 245 | + <goals> |
| 246 | + <goal>copy-resources</goal> |
| 247 | + </goals> |
| 248 | + <configuration> |
| 249 | + <outputDirectory>${project.build.directory}/filtered-site/resources</outputDirectory> |
| 250 | + <resources> |
| 251 | + <resource> |
| 252 | + <directory>src/site/resources</directory> |
| 253 | + <filtering>false</filtering> |
| 254 | + </resource> |
| 255 | + </resources> |
| 256 | + </configuration> |
| 257 | + </execution> |
| 258 | + </executions> |
| 259 | + </plugin> |
201 | 260 | <!-- Maven Site Plugin --> |
202 | 261 | <plugin> |
203 | 262 | <groupId>org.apache.maven.plugins</groupId> |
204 | 263 | <artifactId>maven-site-plugin</artifactId> |
205 | 264 | <version>3.21.0</version> |
| 265 | + <configuration> |
| 266 | + <inputEncoding>UTF-8</inputEncoding> |
| 267 | + <outputEncoding>UTF-8</outputEncoding> |
| 268 | + <siteDirectory>${project.build.directory}/filtered-site</siteDirectory> |
| 269 | + <generatedSiteDirectory>${project.build.directory}/filtered-site-generated</generatedSiteDirectory> |
| 270 | + </configuration> |
| 271 | + <dependencies> |
| 272 | + <dependency> |
| 273 | + <groupId>org.apache.maven.doxia</groupId> |
| 274 | + <artifactId>doxia-module-markdown</artifactId> |
| 275 | + <version>2.0.0</version> |
| 276 | + </dependency> |
| 277 | + </dependencies> |
206 | 278 | </plugin> |
207 | 279 | </plugins> |
208 | 280 | </build> |
|
0 commit comments