blob: 392f2dd408459f458cde74f08c2a387b14c85810 [file] [log] [blame]
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>eu.fbk.tools.aida.chess.repository</artifactId>
<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>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-clean-plugin
</artifactId>
<versionRange>
[2.5,)
</versionRange>
<goals>
<goal>clean</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>AIDADevelopmentUpdateSite</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>create_mount_dir</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>mkdir</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<longModulepath>false</longModulepath>
<arguments>
<argument>-p</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>change_dir_permissions</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>chmod</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments>
<argument>0777</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>mount_sshfs</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>sshfs</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments>
<argument>-o</argument>
<argument>nonempty</argument>
<argument>-o</argument>
<argument>umask=0777</argument>
<argument>es-static.fbk.eu:/</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>update_development_site</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>cp</executable>
<workingDirectory>${basedir}/target/repository</workingDirectory>
<arguments>
<argument>-r</argument>
<argument>.</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>
</configuration>
</execution>
<execution>
<id>umount_sshfs</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>fusermount</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments>
<argument>-u</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>AIDAProductionUpdateSite</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>create_mount_dir</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>mkdir</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<longModulepath>false</longModulepath>
<arguments>
<argument>-p</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>change_dir_permissions</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>chmod</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments>
<argument>0777</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>mount_sshfs</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>sshfs</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments>
<argument>-o</argument>
<argument>nonempty</argument>
<argument>-o</argument>
<argument>umask=0777</argument>
<argument>es-static.fbk.eu:/</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>update_production_site</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>cp</executable>
<workingDirectory>${basedir}/target/repository</workingDirectory>
<arguments>
<argument>-r</argument>
<argument>.</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>
</configuration>
</execution>
<execution>
<id>umount_sshfs</id>
<goals>
<goal>exec</goal>
</goals>
<phase>install</phase>
<configuration>
<executable>fusermount</executable>
<workingDirectory>${updateSite.mount.dir.root}</workingDirectory>
<arguments>
<argument>-u</argument>
<argument>${updateSite.mount.dir}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
</dependencies>
<parent>
<groupId>org.polarsys.chess</groupId>
<artifactId>org.polarsys.chess.releng</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
</project>