Files
spring-tools/eclipse-distribution/org.springframework.boot.ide.branding/pom.xml
2020-07-30 08:47:05 +02:00

73 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot.ide</groupId>
<artifactId>org.springframework.boot.ide</artifactId>
<version>4.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>org.springframework.boot.ide.branding</artifactId>
<packaging>eclipse-plugin</packaging>
<name>org.springframework.boot.ide.branding</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-version-details-about-dialog</id>
<phase>validate</phase>
<configuration>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<if>
<equals arg1="${p2.replaceQualifier}" arg2="true" />
<then>
<propertyregex property="shortQualifier" input="${buildQualifier}" regexp="[0-9a-z.A-Z]*\-(.*)" select="\1" casesensitive="false" />
<propertyregex property="build.id" input="${buildQualifier}" regexp="([0-9a-z.A-Z]*)\-.*" select="\1" casesensitive="false" />
<property name="qualifier" value="${unqualifiedVersion}.${shortQualifier}" />
<replace file="about.properties" token="@QUALIFIER@" value="${qualifier}" summary="yes" />
<replace file="about.properties" token="@BUILD_ID@" value="${build.id}" summary="yes" />
<replace file="plugin.properties" token="@QUALIFIER@" value="${qualifier}" summary="yes" />
<replace file="plugin.properties" token="@BUILD_ID@" value="${build.id}" summary="yes" />
</then>
</if>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>second-generate-p2-metadata</id>
<goals>
<goal>p2-metadata</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>