diff --git a/archiva-modules/deploySite.sh b/archiva-modules/deploySite.sh old mode 100644 new mode 100755 index 44a13e0e9..387856b3b --- a/archiva-modules/deploySite.sh +++ b/archiva-modules/deploySite.sh @@ -1 +1,5 @@ -mvn clean site site:stage -Preporting scm-publish:publish-scm $@ +#!/bin/bash + +mvn clean site site:stage -Preporting "$@" +mvn scm-publish:publish-scm "$@" + diff --git a/archiva-modules/git-sparse-checkout-pattern b/archiva-modules/git-sparse-checkout-pattern index d1e3efa3e..db843b211 100644 --- a/archiva-modules/git-sparse-checkout-pattern +++ b/archiva-modules/git-sparse-checkout-pattern @@ -1 +1 @@ -/refs +/ref \ No newline at end of file diff --git a/archiva-modules/pom.xml b/archiva-modules/pom.xml index 529642506..b8b924233 100644 --- a/archiva-modules/pom.xml +++ b/archiva-modules/pom.xml @@ -48,34 +48,39 @@ - - - - org.apache.maven.plugins - maven-scm-publish-plugin - - Apache Archiva versioned module docs for ${project.version} - true - ${project.build.directory}/staging - true - - - - - - - - + + org.apache.maven.plugins + maven-scm-publish-plugin + false + + Apache Archiva versioned module docs for ${project.version} + true + ${project.build.directory}/staging + true + + + + + scm-publish + site-deploy + + publish-scm + + + + + org.apache.maven.plugins maven-site-plugin - ${site.staging.base}/target/staging/refs/${project.version}/ + true + ${site.staging.base}/target/staging/ref/${project.version}/ @@ -84,9 +89,24 @@ attach-descriptor - + + site-generate-resources + generate-resources + + site + + + + stage-for-scm-publish + post-site + + stage + + + false + + - @@ -206,6 +226,48 @@ + + + site-checkout + + + ${scmPubCheckoutDirectory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.6.0 + false + + + prepare-checkout + pre-site + + exec + + + checkoutSite.sh + ${project.basedir} + + -d + ${scmPubCheckoutDirectory} + ${siteRepositoryUrl} + + + + + + + + + @@ -215,4 +277,5 @@ ${siteRepositoryUrl} +