You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/04/27 15:50:17 UTC
[maven-site-plugin] 02/02: [MSITE-963] Delete broken site descriptor files from local repository
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 d452e4befc21c79b12c1277beab975418bca6bc8
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Tue Apr 25 22:41:34 2023 +0200
[MSITE-963] Delete broken site descriptor files from local repository
---
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>