You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2021/06/10 06:48:55 UTC

[maven-apache-parent] branch master updated: [MPOM-238] publish site with "mvn -f site-pom.xml site-deploy"

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-apache-parent.git


The following commit(s) were added to refs/heads/master by this push:
     new c5f0f2e  [MPOM-238] publish site with "mvn -f site-pom.xml site-deploy"
c5f0f2e is described below

commit c5f0f2e0a101d4b48e001e5f158d67975df5c63d
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Thu Jun 10 08:48:50 2021 +0200

    [MPOM-238] publish site with "mvn -f site-pom.xml site-deploy"
---
 site-pom.xml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/site-pom.xml b/site-pom.xml
index 98ba516..1142ef5 100644
--- a/site-pom.xml
+++ b/site-pom.xml
@@ -87,16 +87,26 @@ under the License.
         <artifactId>maven-site-plugin</artifactId>
         <configuration>
           <siteDirectory>${basedir}/src/site-docs</siteDirectory>
+          <skipDeploy>true</skipDeploy><!-- don't deploy site with maven-site-plugin -->
         </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-scm-publish-plugin</artifactId>
         <configuration>
-          <content>${project.reporting.outputDirectory}</content>
+          <content>${project.reporting.outputDirectory}</content><!-- mono-module doesn't require site:stage -->
           <checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
           <tryUpdate>true</tryUpdate>
         </configuration>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
     </plugins>
   </build>