blob: 5eba9f16b37b5ecedccf7c80f2ed6bd3dbdba57c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<relativePath>../../releng/org.eclipse.emf.parsley.parent/pom.xml</relativePath>
<groupId>org.eclipse.emf.parsley</groupId>
<artifactId>org.eclipse.emf.parsley.parent</artifactId>
<version>1.0.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.emf.parsley.repository</artifactId>
<packaging>eclipse-repository</packaging>
<properties>
<p2.mirrorsPrefix>/emf-parsley/updates</p2.mirrorsPrefix>
<p2.versionMajorMinor>1.0</p2.versionMajorMinor>
<p2.statsURL>http://download.eclipse.org/stats</p2.statsURL>
<p2.mirrorsURL>http://www.eclipse.org/downloads/download.php?format=xml&amp;file=${p2.mirrorsPrefix}/${p2.versionMajorMinor}/${qualifiedVersion}/</p2.mirrorsURL>
<p2.statsTrackedArtifacts>org.eclipse.emf.parsley.sdk,org.eclipse.emf.parsley.feature,org.eclipse.emf.parsley.dsl.feature,org.eclipse.emf.parsley.cdo.feature,org.eclipse.emf.examples.feature,org.eclipse.emf.web.feature,org.eclipse.emf.junit4.feature</p2.statsTrackedArtifacts>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<finalName>${project.artifactId}-${qualifiedVersion}</finalName>
</configuration>
</plugin>
<plugin>
<!-- copy the p2 repository into the project root folder
to allow for easier archiving in CI server -->
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<id>copy-to-root-target</id>
<phase>package</phase>
<configuration>
<target>
<echo message="" />
<echo message="Repository path: ${project.build.directory}/repository" />
<echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
<echo message="" />
<delete includeemptydirs="false" failonerror="false">
<fileset dir="${p2.repository.dest}">
<include name="**" />
</fileset>
</delete>
<copy includeemptydirs="false" todir="${p2.repository.dest}">
<fileset dir="target/repository">
<include name="**" />
</fileset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>copy-to-zips-target</id>
<phase>package</phase>
<configuration>
<target>
<echo message="" />
<echo message="Source path: ${project.build.directory}" />
<echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
<echo message="" />
<copy includeemptydirs="false" todir="${zipped.repository.dest}">
<fileset dir="${project.build.directory}">
<include name="*.zip" />
</fileset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release-composite</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>add-repo-properties</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>package</phase>
<configuration>
<appArgLine>-application org.eclipse.wtp.releng.tools.addRepoProperties</appArgLine>
<argLine><![CDATA[-DartifactRepoDirectory=${project.build.directory}/repository -Dp2MirrorsURL=${p2.mirrorsURL} -Dp2StatsURI=${p2.statsURL} -DstatsTrackedArtifacts=${p2.statsTrackedArtifacts} -DstatsArtifactsSuffix=-${project.version}]]></argLine>
<work>${project.build.directory}/eclipserun-work-first</work>
<dependencies>
<dependency>
<artifactId>org.eclipse.wtp.releng.tools.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
<repositories>
<repository>
<url>http://download.eclipse.org/webtools/releng/repository</url>
<layout>p2</layout>
</repository>
<repository>
<url>http://download.eclipse.org/releases/mars</url>
<layout>p2</layout>
</repository>
</repositories>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile ${project.basedir}/../org.eclipse.emf.parsley.parent/ant/packaging-p2composite.ant p2.composite.add -Dsoftware.download.area=${parsley.download.area} -Dupdates.dir=${parsley.updates.dir} -Dsite.label="Emf Parsley Site" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -DbuildQualifier=${buildQualifier}</appArgLine>
<repositories>
<repository>
<id>luna</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/mars</url>
</repository>
</repositories>
<dependencies>
<dependency>
<artifactId>org.eclipse.ant.core</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.apache.ant</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.repository.tools</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.extras.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.ds</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
<executions>
<execution>
<id>add-p2-composite-repository</id>
<phase>package</phase>
<goals>
<goal>eclipse-run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- copy the zipped p2 repository into download zips area -->
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<id>copy-to-zips-download</id>
<phase>package</phase>
<configuration>
<target>
<echo message="" />
<echo message="Source path: ${project.build.directory}" />
<echo message="Built version: ${unqualifiedVersion}.${buildQualifier}" />
<echo message="" />
<copy includeemptydirs="false" todir="${parsley.download.area}/${parsley.zips.dir}">
<fileset dir="${project.build.directory}">
<include name="*.zip" />
</fileset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>