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 2018/09/09 21:28:08 UTC

[maven-site-plugin] branch master updated: added debug message to better track weird situations

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-site-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 90ff1d8  added debug message to better track weird situations
90ff1d8 is described below

commit 90ff1d886be7057ac68448a49d09bfd7f882fdf5
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Sep 9 23:28:07 2018 +0200

    added debug message to better track weird situations
---
 .../org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java b/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
index 528f714..bb12aa5 100644
--- a/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
+++ b/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
@@ -257,8 +257,12 @@ public abstract class AbstractDeployMojo
     protected String getDeployModuleDirectory()
         throws MojoExecutionException
     {
-        String relative = siteTool.getRelativePath( getSite( project ).getUrl(),
-                                                    getTopDistributionManagementSiteUrl() );
+        String to = getSite( project ).getUrl();
+        String from = getTopDistributionManagementSiteUrl();
+
+        getLog().debug( "Mapping url from: " + from );
+
+        String relative = siteTool.getRelativePath( to, from );
 
         // SiteTool.getRelativePath() uses File.separatorChar,
         // so we need to convert '\' to '/' in order for the URL to be valid for Windows users