blob: e91bad41b87420c25c4b1bf307a39fad71420d97 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010 The Eclipse Foundation and others.
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:
The Eclipse Foundation - initial API and implementation
-->
<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.epp.mpc</groupId>
<artifactId>mpc-parent</artifactId>
<version>1.2.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.epp.mpc.site</artifactId>
<packaging>eclipse-repository</packaging>
<name>EPP Marketplace Client</name>
<properties>
<qualifier>${project.unqualifiedVersion}</qualifier>
<sign-dir>tools/mylyn/hudson/mpc/signing</sign-dir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<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/site</outputDirectory>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>index.html</include>
<include>web/*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>pack-and-sign</id>
<phase>install</phase>
<configuration>
<target>
<ant antfile="pack-and-sign/build.xml">
<property name="localRepository" value="${settings.localRepository}"/>
<property name="projectDir" value="${project.build.directory}"/>
<property name="signDir" value="${sign-dir}"/>
<property name="archiveDir" value="${archive-dir}"/>
<property name="siteDir" value="${site-dir}"/>
<property name="dist" value="mpc"/>
<property name="filter" value="mpc"/>
<property name="repositoryName" value="${project.name}"/>
<property name="pack200" value="${pack200}"/>
<property name="skipSign" value="${skip-sign}"/>
<property name="skipPack" value="${skip-pack}"/>
<property name="skipPromote" value="${skip-promote}"/>
<property name="version" value="${unqualifiedVersion}"/>
<property name="qualifier" value="${buildQualifier}"/>
</ant>
<echo file="${project.build.directory}/version.properties">
<![CDATA[
${unqualifiedVersion}
${buildQualifier}
]]>
</echo>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>