blob: 80082f2a6b8df47f1c8115b1496966efed28e314 [file] [log] [blame]
<?xml version="1.0"?>
<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>
<groupId>org.eclipse.simrel</groupId>
<artifactId>build</artifactId>
<version>4.26.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<tycho-version>2.7.5</tycho-version>
<trainName>2022-12</trainName>
<referenceRepo>releases/2022-09/202209141001</referenceRepo>
<download.eclipse.org>https://download.eclipse.org</download.eclipse.org>
<eclipse.repo.url>https://download.eclipse.org/eclipse/updates/4.25/R-4.25-202208311800</eclipse.repo.url>
<simrel.aggregator.repo.url.relative>nightly/latest</simrel.aggregator.repo.url.relative>
<simrel.aggregator.repo.url>${download.eclipse.org}/cbi/updates/p2-aggregator/products/${simrel.aggregator.repo.url.relative}</simrel.aggregator.repo.url>
<cbi.analyzers.repo.url>${download.eclipse.org}/cbi/updates/analyzers/4.7</cbi.analyzers.repo.url>
<simrel.aggregator.build.type>CLEAN_BUILD</simrel.aggregator.build.type>
</properties>
<pluginRepositories>
<pluginRepository>
<id>tycho-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots</url>
</pluginRepository>
</pluginRepositories>
<profiles>
<profile>
<id>build</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>build-repo</id>
<phase>package</phase>
<goals>
<goal>eclipse-run</goal>
</goals>
<configuration>
<applicationsArgs>
<applicationsArg>-application</applicationsArg>
<applicationsArg>org.eclipse.cbi.p2repo.cli.headless</applicationsArg>
<applicationsArg>aggregate</applicationsArg>
<applicationsArg>--buildModel</applicationsArg>
<applicationsArg>${project.basedir}/simrel.aggr</applicationsArg>
<applicationsArg>--buildRoot</applicationsArg>
<applicationsArg>${project.build.directory}/repository</applicationsArg>
<applicationsArg>--eclipseLogLevel</applicationsArg>
<applicationsArg>INFO</applicationsArg>
<applicationsArg>--logLevel</applicationsArg>
<applicationsArg>INFO</applicationsArg>
<applicationsArg>--action</applicationsArg>
<applicationsArg>${simrel.aggregator.build.type}</applicationsArg>
</applicationsArgs>
<executionEnvironment>JavaSE-11</executionEnvironment>
<jvmArgs>
<jvmArg>-Xms256M</jvmArg>
<jvmArg>-Xmx2048M</jvmArg>
<jvmArg>-Duser.home=${project.build.directory}</jvmArg>
</jvmArgs>
<repositories>
<repository>
<id>simrel-aggregator</id>
<url>${simrel.aggregator.repo.url}</url>
<layout>p2</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<artifactId>org.eclipse.cbi.p2repo.aggregator.engine.feature.feature.group</artifactId>
<type>p2-installable-unit</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>gpg-sign</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-gpg-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<skipIfJarsignedAndAnchored>true</skipIfJarsignedAndAnchored>
<pgpKeyBehavior>skip</pgpKeyBehavior>
<forceSignature>
<bundle>org.antlr.runtime</bundle>
</forceSignature>
<repository>${project.build.directory}/repository/final</repository>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign-p2-artifacts</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>report</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<phase>test</phase>
<id>repo-reports</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<configuration>
<applicationsArgs>
<arg>-application</arg>
<arg>org.eclipse.cbi.p2repo.analyzers.repoReport</arg>
</applicationsArgs>
<jvmArgs>
<jvmArg>-DreportRepoDir=/home/data/httpd/download.eclipse.org/staging/${trainName}</jvmArg>
<jvmArg>-DreportOutputDir=/home/data/httpd/download.eclipse.org/staging/${trainName}/buildInfo</jvmArg>
<jvmArg>-DreferenceRepo=/home/data/httpd/download.eclipse.org/${referenceRepo}</jvmArg>
<jvmArg>-Xms256M</jvmArg>
<jvmArg>-Xmx2048M</jvmArg>
</jvmArgs>
<executionEnvironment>JavaSE-11</executionEnvironment>
<dependencies>
<dependency>
<artifactId>org.eclipse.cbi.p2repo.analyzers</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.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>cbi-analyzers</id>
<url>${cbi.analyzers.repo.url}</url>
<layout>p2</layout>
</repository>
<repository>
<id>eclipse</id>
<url>${eclipse.repo.url}</url>
<layout>p2</layout>
</repository>
</repositories>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>validate</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>validate-repo</id>
<phase>test</phase>
<goals>
<goal>eclipse-run</goal>
</goals>
<configuration>
<applicationsArgs>
<applicationsArg>-application</applicationsArg>
<applicationsArg>org.eclipse.cbi.p2repo.cli.headless</applicationsArg>
<applicationsArg>aggregate</applicationsArg>
<applicationsArg>--buildModel</applicationsArg>
<applicationsArg>${project.basedir}/simrel.aggr</applicationsArg>
<applicationsArg>--buildRoot</applicationsArg>
<applicationsArg>${project.build.directory}/repository</applicationsArg>
<applicationsArg>--eclipseLogLevel</applicationsArg>
<applicationsArg>INFO</applicationsArg>
<applicationsArg>--logLevel</applicationsArg>
<applicationsArg>INFO</applicationsArg>
<applicationsArg>--action</applicationsArg>
<applicationsArg>VALIDATE</applicationsArg>
</applicationsArgs>
<jvmArgs>
<jvmArg>-Xms256M</jvmArg>
<jvmArg>-Xmx2048M</jvmArg>
<jvmArg>-Duser.home=${project.build.directory}</jvmArg>
</jvmArgs>
<executionEnvironment>JavaSE-11</executionEnvironment>
<repositories>
<repository>
<id>simrel-aggregator</id>
<url>${simrel.aggregator.repo.url}</url>
<layout>p2</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<artifactId>org.eclipse.cbi.p2repo.aggregator.engine.feature.feature.group</artifactId>
<type>p2-installable-unit</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>built-at-eclipse.org</id>
<properties>
<download.eclipse.org>file:/home/data/httpd/download.eclipse.org</download.eclipse.org>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<id>replace-url-to-local</id>
<phase>generate-sources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<basedir>${project.basedir}</basedir>
<includes>
<include>*.aggr</include>
<include>*.aggrcon</include>
</includes>
<replacements>
<replacement>
<token>http://download.eclipse.org</token>
<value>file:/home/data/httpd/download.eclipse.org</value>
</replacement>
<replacement>
<token>https://download.eclipse.org</token>
<value>file:/home/data/httpd/download.eclipse.org</value>
</replacement>
<replacement>
<token>http://archive.eclipse.org</token>
<value>file:/home/data/httpd/archive.eclipse.org</value>
</replacement>
<replacement>
<token>https://archive.eclipse.org</token>
<value>file:/home/data/httpd/archive.eclipse.org</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>