This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch MSITE-960 in repository https://gitbox.apache.org/repos/asf/maven-site-plugin.git
commit a71d9c68b2f4fa763bf0307783c6028f244fb7a7 Author: Michael Osipov <[email protected]> AuthorDate: Tue Apr 25 22:41:34 2023 +0200 [MSITE-960] CI is broken Delete broken files before they are served by MRM Maven Plugin. --- pom.xml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pom.xml b/pom.xml index 98f3bfda..8e93673c 100644 --- a/pom.xml +++ b/pom.xml @@ -512,6 +512,35 @@ under the License. <id>run-its</id> <build> <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <!-- + This is necessary if "mvn site" has been invoked previously with 3.x + and leaves 0-byte files in the local repository for MRM Maven Plugin + to serve which are broken from a consumer's PoV. + --> + <executions> + <execution> + <id>delete-0-byte-site-descriptors</id> + <goals> + <goal>clean</goal> + </goals> + <phase>pre-integration-test</phase> + <configuration> + <excludeDefaultDirectories>true</excludeDefaultDirectories> + <filesets> + <fileset> + <directory>${settings.localRepository}/org/apache/apache</directory> + <includes> + <include>**/*-site*.xml</include> + </includes> + </fileset> + </filesets> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-invoker-plugin</artifactId>
