-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
194 lines (184 loc) · 6.77 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?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.14.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.emf.parsley.rap.repository</artifactId>
<packaging>eclipse-repository</packaging>
<properties>
<!-- The label for the Composite sites -->
<site.label>EMF Parsley RAP Target Components</site.label>
<updates.dir>${parsley.rap.updates.dir}</updates.dir>
<p2.mirrorsPrefix>/emf-parsley/${parsley.rap.updates.dir}</p2.mirrorsPrefix>
<p2.versionMajorMinor>1.14</p2.versionMajorMinor>
<p2.statsURL>http://download.eclipse.org/stats</p2.statsURL>
<p2.mirrorsURL>http://www.eclipse.org/downloads/download.php?format=xml&file=${p2.mirrorsPrefix}/${p2.versionMajorMinor}/${qualifiedVersion}/</p2.mirrorsURL>
<p2.statsTrackedArtifacts>org.eclipse.emf.parsley.rap.sdk,org.eclipse.emf.parsley.rap.cdo.sdk</p2.statsTrackedArtifacts>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<configuration>
<finalName>${project.artifactId}-${qualifiedVersion}</finalName>
<extraArtifactRepositoryProperties>
<p2.statsURI>${p2.statsURL}</p2.statsURI>
<p2.mirrorsURL>${p2.mirrorsURL}</p2.mirrorsURL>
</extraArtifactRepositoryProperties>
</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>
<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>
<!-- this will create a .target file pointing to the repository we've just built;
we'll use that during another maven build to test that we can compile
the our RAP examples (see org.eclipse.emf.parsley.rap.test.parent) -->
<id>prepare-target-platform-for-rap-tests</id>
<phase>package</phase>
<configuration>
<target>
<ant antfile="${basedir}/../../devtools/org.eclipse.emf.parsley.targetplatform/create_test_target.ant"
target="create-target-file" />
</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.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<!-- sets the following properties that we use in our Ant scripts parsedVersion.majorVersion
parsedVersion.minorVersion bound by default to the validate phase -->
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>add-p2-composite-repository</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>package</phase>
<configuration>
<applicationsArgs>
<arg>-application</arg>
<arg>org.eclipse.ant.core.antRunner</arg>
<arg>-buildfile</arg>
<arg>${project.basedir}/../org.eclipse.emf.parsley.parent/ant/packaging-p2composite.ant</arg>
<arg>p2.composite.add</arg>
<arg>-Dsoftware.download.area=${parsley.download.area}</arg>
<arg>-Dupdates.dir=${updates.dir}</arg>
<arg>-Dsite.label="${site.label}"</arg>
<arg>-Dproject.build.directory=${project.build.directory}</arg>
<arg>-DunqualifiedVersion=${unqualifiedVersion}</arg>
<arg>-DbuildQualifier=${buildQualifier}</arg>
<arg>-DparsedVersion.majorVersion=${parsedVersion.majorVersion}</arg>
<arg>-DparsedVersion.minorVersion=${parsedVersion.minorVersion}</arg>
</applicationsArgs>
<repositories>
<repository>
<id>2021-12</id>
<layout>p2</layout>
<url>https://download.eclipse.org/releases/2021-12</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.osgi.compatibility.state</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.ds</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.core.net</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>