From f7b10b0b7ff96aea317e238fc0ac7e0d72999ed1 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 4 May 2017 16:24:58 +0200 Subject: [PATCH] #353 - Make sure that static resources uploaded are overwritable by group. Added Wagon plugin execution to set uploaded file permissions for schemas and static resources so that they can be replaced by other team members. Extracted common server configuration into plugin configuration. --- parent/pom.xml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index 21cdd78b..816d7a62 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -437,6 +437,8 @@ wagon-maven-plugin ${project.build.directory} + static-dot-s2 + scp://docs.af.pivotal.io @@ -451,8 +453,6 @@ ${project.root}/target/schemas *.xsd,.autoschemaln - static-dot-s2 - scp://docs.af.pivotal.io /var/www/domains/spring.io/www/htdocs/autorepo/schema/${dist.id}/${project.version} true @@ -469,12 +469,26 @@ ${project.build.directory}/static-resources ** - static-dot-s2 - scp://docs.af.pivotal.io /var/www/domains/spring.io/www/htdocs/autorepo/docs/${dist.id}/${project.version} true + + + + make-resources-group-writable + deploy + + sshexec + + + + find /var/www/domains/spring.io/www/htdocs/autorepo/schema/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \; + find /var/www/domains/spring.io/www/htdocs/autorepo/docs/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \; + + + +