From a6f0a05073c0f5cb769e54387bd0d6c287ef268b Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 4 May 2017 16:24:58 +0200 Subject: [PATCH] #351 - 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 eb470cb7..0c1e8da1 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -478,6 +478,8 @@ wagon-maven-plugin ${project.build.directory} + static-dot-s2 + scp://docs.af.pivotal.io @@ -492,8 +494,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 @@ -510,12 +510,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 {} \; + + + +