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
The following commit(s) were added to refs/heads/MSITE-960 by this push:
new 56034553 [MSITE-960] CI is broken
56034553 is described below
commit 560345538cf32c1e04e6a98a4453e7610022d0c4
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..cad1546f 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 from a consumer's PoV broken.
+ -->
+ <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>