blob: dc454c3d8f82e1ec83c0599a2daf5448a3ff7275 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2021 Eclipse Foundation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
https://www.eclipse.org/org/documents/edl-v10.php
Contributors:
IBM Corporation and others - initial 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eclipse.platform.releng</groupId>
<artifactId>eclipse.platform.releng.java17patch</artifactId>
<version>4.22.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<groupId>eclipse.platform.releng</groupId>
<artifactId>eclipse.releng.repository.java17patch</artifactId>
<version>1.2.200-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>
<!--
Notice that all the tasks in this pom are normally done during the packaging phase,
but the last few we deliberately do later, during the pre-integration-test phase,
in order that things be done in the right order, and changes maintained.
See https://maven.apache.org/ref/3.5.4/maven-core/lifecycles.html
for complete list of phases.
-->
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<!-- this guarantees proper inclusion in reactor-->
<requirement>
<type>eclipse-feature</type>
<id>${featureToPatch}</id>
<versionRange>${featureToPatchVersion}</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>${featureToPatchPDE}</id>
<versionRange>${featureToPatchVersionPDE}</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>unpack-content-jar</id>
<phase>package</phase>
<configuration>
<target>
<ant antfile="${basedir}/antrunbuild.xml">
<target name="preTransform" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>jar-content-xml</id>
<phase>pre-integration-test</phase>
<configuration>
<target>
<ant antfile="${basedir}/antrunbuild.xml">
<target name="postTransform" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<!--
The output of "transform, *always* goes to
${project.build.directory}/generated-resources/xml/xslt
as far as I can tell.
-->
<configuration>
<forceCreation>true</forceCreation>
<transformationSets>
<transformationSet>
<dir>${project.build.directory}/repository/</dir>
<includes>
<include>content.xml</include>
</includes>
<stylesheet>${basedir}/patchMatchVersion.xsl</stylesheet>
<parameters>
<parameter>
<name>patchFeatureVersionRange</name>
<value>${versionRangeForPatch}</value>
</parameter>
<parameter>
<name>patchFeatureIU</name>
<value>${featureToPatch}.feature.group</value>
</parameter>
</parameters>
</transformationSet>
</transformationSets>
</configuration>
<executions>
<execution>
<id>transformForExactVersionRange</id>
<phase>package</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copyModifiedContentXMLFile</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/repository</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/xml/xslt</directory>
<includes>
<include>content.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>categories-java17patch</id>
<phase>package</phase>
<goals>
<goal>publish-categories</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>false</includeAllDependencies>
</configuration>
<executions>
<execution>
<id>assemble-java17patch</id>
<phase>package</phase>
<configuration>
<repositoryName>Early Access of Java 17 support</repositoryName>
<finalName>Java17EarlyAccessPatchRepo</finalName>
</configuration>
<goals>
<goal>assemble-repository</goal>
</goals>
</execution>
<execution>
<id>archive-java17patch</id>
<phase>pre-integration-test</phase>
<configuration>
<repositoryName>Early Access of Java 17 support</repositoryName>
<finalName>Java17EarlyAccessPatchRepo</finalName>
</configuration>
<goals>
<goal>archive-repository</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>