From f3213ff513db136e6630ab9868e741c1138fe32a Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 4 May 2017 16:24:58 +0200 Subject: [PATCH] #352 - 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 6a981445..58442200 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -482,6 +482,8 @@ wagon-maven-plugin ${project.build.directory} + static-dot-s2 + scp://docs.af.pivotal.io @@ -496,8 +498,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 @@ -514,12 +514,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 {} \; + + + +