blob: f5e223a3dd161f771c1b3a9f4758b3caeed90cc2 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011 Obeo.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Obeo - initial creator
-->
<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/maven-v4_0_0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.eef.releng.parent</artifactId>
<relativePath>../../releng/org.eclipse.emf.eef.releng.parent</relativePath>
<version>1.2.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.emf.eef.update</artifactId>
<packaging>eclipse-repository</packaging>
<name>EEF Repository</name>
<!-- see http://issues.sonatype.org/browse/TYCHO-313 -->
<version>1.2.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/repository</outputDirectory>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>index.html</include>
<include>web/*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>prepare_promotion</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- create a properties file for promotion process -->
<mkdir dir="${project.build.directory}/promotion"/>
<echo file="${project.build.directory}/promotion/promote.properties"
message="#EEF promotion process.${line.separator}build.alias=${BUILD_ALIAS}${line.separator}build.qualifier=${env.BUILD_TYPE}${buildQualifier}${line.separator}version=${unqualifiedVersion}"/>
<!-- copy necessary scripts to archive location -->
<copy file="p2.xsl" todir="${project.build.directory}/promotion"/>
<copy file="promoter.xml" todir="${project.build.directory}/promotion"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>sign</id>
<activation>
<property>
<name>BUILD_SIGN</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.dash.maven</groupId>
<artifactId>eclipse-signing-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<!-- Pack the p2 repository. -->
<id>pack</id>
<configuration>
<inputFile>${project.build.directory}/${project.artifactId}.zip</inputFile>
</configuration>
<phase>package</phase>
<goals>
<goal>pack</goal>
</goals>
</execution>
<execution>
<!-- Sign the p2 repository -->
<id>sign</id>
<configuration>
<inputFile>${project.build.directory}/${project.artifactId}.zip</inputFile>
<signerInputDirectory>/home/data/httpd/download-staging.priv/modeling/emft/eef/</signerInputDirectory>
</configuration>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
<execution>
<!-- Repack the p2 repository -->
<id>repack</id>
<configuration>
<inputFile>${project.build.directory}/signed/site_assembly.zip</inputFile>
</configuration>
<phase>package</phase>
<goals>
<goal>pack</goal>
</goals>
</execution>
<execution>
<!-- Signing and packing alters checksums so fix them -->
<id>fixCheckSums</id>
<phase>package</phase>
<goals>
<goal>fixCheckSums</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>replace-unsigned-repository-by-signed-one</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- prepare zip repo and repo for archiving -->
<move file="${project.build.directory}/repository" tofile="${project.build.directory}/repository-not-signed"/>
<move file="${project.build.directory}/checksumFix" tofile="${project.build.directory}/repository"/>
<move file="${project.build.directory}/${project.artifactId}.zip" tofile="${project.build.directory}/${project.artifactId}-not-signed.zip"/>
<zip destfile="${project.build.directory}/${project.artifactId}.zip" basedir="${project.build.directory}/repository"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>maven.eclipse.org</id>
<url>http://maven.eclipse.org/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</project>