Skip to content
Snippets Groups Projects
Commit d9b51c23 authored by Pietro Braghieri's avatar Pietro Braghieri Committed by Alberto Debiasi
Browse files

- improved repository pom.xml

parent 5566343f
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,14 @@ ...@@ -3,6 +3,14 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>eu.fbk.tools.aida.chess.repository</artifactId> <artifactId>eu.fbk.tools.aida.chess.repository</artifactId>
<packaging>eclipse-repository</packaging> <packaging>eclipse-repository</packaging>
<properties>
<updateSite.root>/tmp/www_us/html/tools</updateSite.root>
<updateSite.production.dir>${updateSite.root}/aida_chess</updateSite.production.dir>
<updateSite.development.dir>${updateSite.root}/aida_chess_devel</updateSite.development.dir>
<updateSite.mount.dir.root>/tmp</updateSite.mount.dir.root>
<updateSite.mount.dir>www_us</updateSite.mount.dir>
</properties>
<build> <build>
<pluginManagement> <pluginManagement>
...@@ -59,11 +67,11 @@ ...@@ -59,11 +67,11 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>mkdir</executable> <executable>mkdir</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<longModulepath>false</longModulepath> <longModulepath>false</longModulepath>
<arguments> <arguments>
<argument>-p</argument> <argument>-p</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -75,10 +83,10 @@ ...@@ -75,10 +83,10 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>chmod</executable> <executable>chmod</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments> <arguments>
<argument>0777</argument> <argument>0777</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -90,19 +98,19 @@ ...@@ -90,19 +98,19 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>sshfs</executable> <executable>sshfs</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments> <arguments>
<argument>-o</argument> <argument>-o</argument>
<argument>nonempty</argument> <argument>nonempty</argument>
<argument>-o</argument> <argument>-o</argument>
<argument>umask=0777</argument> <argument>umask=0777</argument>
<argument>es-static.fbk.eu:/</argument> <argument>es-static.fbk.eu:/</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>update_aida_development_site</id> <id>update_development_site</id>
<goals> <goals>
<goal>exec</goal> <goal>exec</goal>
</goals> </goals>
...@@ -113,7 +121,23 @@ ...@@ -113,7 +121,23 @@
<arguments> <arguments>
<argument>-r</argument> <argument>-r</argument>
<argument>.</argument> <argument>.</argument>
<argument>/tmp/www_us/html/tools/aida_chess_devel</argument> <argument>${updateSite.development.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>change_site_permissions</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>chmod</executable>
<workingDirectory>${updateSite.development.dir}</workingDirectory>
<arguments>
<argument>-R</argument>
<argument>0777</argument>
<argument>.</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -125,10 +149,10 @@ ...@@ -125,10 +149,10 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>fusermount</executable> <executable>fusermount</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments> <arguments>
<argument>-u</argument> <argument>-u</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -154,11 +178,11 @@ ...@@ -154,11 +178,11 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>mkdir</executable> <executable>mkdir</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<longModulepath>false</longModulepath> <longModulepath>false</longModulepath>
<arguments> <arguments>
<argument>-p</argument> <argument>-p</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -170,10 +194,10 @@ ...@@ -170,10 +194,10 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>chmod</executable> <executable>chmod</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments> <arguments>
<argument>0777</argument> <argument>0777</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -185,19 +209,19 @@ ...@@ -185,19 +209,19 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>sshfs</executable> <executable>sshfs</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments> <arguments>
<argument>-o</argument> <argument>-o</argument>
<argument>nonempty</argument> <argument>nonempty</argument>
<argument>-o</argument> <argument>-o</argument>
<argument>umask=0777</argument> <argument>umask=0777</argument>
<argument>es-static.fbk.eu:/</argument> <argument>es-static.fbk.eu:/</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>update_aida_site</id> <id>update_production_site</id>
<goals> <goals>
<goal>exec</goal> <goal>exec</goal>
</goals> </goals>
...@@ -208,7 +232,23 @@ ...@@ -208,7 +232,23 @@
<arguments> <arguments>
<argument>-r</argument> <argument>-r</argument>
<argument>.</argument> <argument>.</argument>
<argument>/tmp/www_us/html/tools/aida_chess</argument> <argument>${updateSite.production.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>change_site_permissions</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>chmod</executable>
<workingDirectory>${updateSite.production.dir}</workingDirectory>
<arguments>
<argument>-R</argument>
<argument>0777</argument>
<argument>.</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
...@@ -220,10 +260,10 @@ ...@@ -220,10 +260,10 @@
<phase>install</phase> <phase>install</phase>
<configuration> <configuration>
<executable>fusermount</executable> <executable>fusermount</executable>
<workingDirectory>/tmp</workingDirectory> <workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments> <arguments>
<argument>-u</argument> <argument>-u</argument>
<argument>www_us</argument> <argument>${updateSite.mount.dir}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment