From a81c07723cadd3bb870d30865ce8cf491d1f73f2 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Mon, 13 May 2019 23:49:28 +0200 Subject: [PATCH] #990 - Fixed deployment of Javadoc and reference docs. Javadoc is now generated into target/site/api. We now don't attach the zipped resources anymore but rather use the Wagon plugin to upload the content of target/site directly as what's generated into the folder already matches the expected folder structure. We now consistently use ${project.reporting.outputDirectory} to refer to what defaults to target/site. Goal to deploy static resources is: mvn clean deploy -DskipTests -Pdistribute. --- pom.xml | 88 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 75 insertions(+), 13 deletions(-) diff --git a/pom.xml b/pom.xml index 1f3f4a4b..bd7f5294 100644 --- a/pom.xml +++ b/pom.xml @@ -155,7 +155,7 @@ @@ -259,7 +259,7 @@ html5 highlight.js - ${project.build.directory}/site/reference/html + ${project.reporting.outputDirectory}/reference/html false ${basedir}/src/docs/java/org/springframework/hateoas @@ -329,6 +329,9 @@ + + ${project.reporting.outputDirectory}/api + @@ -344,7 +347,7 @@ - + @@ -361,7 +364,7 @@ prepare-package - + @@ -370,24 +373,74 @@ - package-and-attach-docs-zip - package + copy-changelog + prepare-package + + + + + run - - - - - - - + + org.codehaus.mojo + wagon-maven-plugin + + ${project.build.directory} + static-dot-s2 + scp://docs.af.pivotal.io + + + + + + + + upload-static-resources + deploy + + upload + + + ${project.reporting.outputDirectory} + ** + /var/www/domains/spring.io/www/htdocs/autorepo/docs/spring-hateoas/${project.version} + true + + + + + + make-resources-group-writable + deploy + + sshexec + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + +