-
Notifications
You must be signed in to change notification settings - Fork 19
/
pom.xml
347 lines (334 loc) · 12.6 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013-2017 Lorenzo Bettini.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Lorenzo Bettini - Initial contribution and API
-->
<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.xsemantics.parent/pom.xml</relativePath>
<groupId>org.eclipse.xsemantics</groupId>
<artifactId>org.eclipse.xsemantics.parent</artifactId>
<version>1.12.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.xsemantics.repository</artifactId>
<packaging>eclipse-repository</packaging>
<properties>
<p2.mirrorsPrefix>/xsemantics/${xsemantics.updates.dir}</p2.mirrorsPrefix>
<p2.versionMajorMinor>2.0</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.xsemantics.sdk,org.eclipse.xsemantics.feature,org.eclipse.xsemantics.examples.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>
</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>
<!--
(1)
See <http://wiki.eclipse.org/Equinox/p2/p2.mirrorsURL>.
This will add the mirror and statistics properties to your
artifacts.jar, but NOT to artifacts.xml.xz,
since p2 can only read artifacts.xml.zx but now write into it
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=467779).
artifacts.xml.xz will be handled later (from (2) on). -->
<id>add-repo-properties</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>package</phase>
<configuration>
<applicationsArgs>
<arg>-application</arg>
<arg>org.eclipse.wtp.releng.tools.addRepoProperties</arg>
</applicationsArgs>
<jvmArgs>
<arg>-DartifactRepoDirectory=${project.build.directory}/repository</arg>
<arg>-Dp2MirrorsURL=${p2.mirrorsURL}</arg>
<arg>-Dp2StatsURI=${p2.statsURL}</arg>
<arg>-DstatsTrackedArtifacts=${p2.statsTrackedArtifacts}</arg>
<arg>-DstatsArtifactsSuffix=-${project.version}</arg>
</jvmArgs>
<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/neon</url>
<layout>p2</layout>
</repository>
</repositories>
</configuration>
</execution>
<execution>
<id>add-p2-composite-repository</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<!-- this must be executed after package, since during package we also
deal with XZ compressed artifacts -->
<phase>verify</phase>
<configuration>
<applicationsArgs>
<arg>-application</arg>
<arg>org.eclipse.ant.core.antRunner</arg>
<arg>-buildfile</arg>
<arg>${ant-files-path}/packaging-p2composite.ant</arg>
<arg>p2.composite.add</arg>
<arg>-Dsoftware.download.area=${xsemantics.download.area}</arg>
<arg>-Dupdates.dir=${xsemantics.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>
</applicationsArgs>
<repositories>
<repository>
<url>http://download.eclipse.org/releases/oxygen</url>
<layout>p2</layout>
</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>
</execution>
</executions>
</plugin>
<plugin>
<!-- copy the zipped p2 repository into download zips area -->
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<dependencies>
<!-- Needed for XZ compression -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-compress</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<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="${xsemantics.download.area}/${xsemantics.zips.dir}">
<fileset dir="${project.build.directory}">
<include name="*.zip" />
</fileset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<!-- (2)
Unpack artifacts.jar (which has already been processed) -->
<id>unjar-artifacts</id>
<phase>package</phase>
<configuration>
<target>
<unzip src="${project.build.directory}/repository/artifacts.jar"
dest="${project.build.directory}/repository/" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<!-- (3)
pack artifacts.xml into artifacts.xml.xz (rewrite) -->
<id>xz-artifacts</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="xz-artifacts-xml">
<taskdef resource="org/apache/ant/compress/antlib.xml"
classpathref="maven.plugin.classpath" />
<xz
srcfile="${project.build.directory}/repository/artifacts.xml"
destfile="${project.build.directory}/repository/artifacts.xml.xz" />
</target>
</configuration>
</execution>
<execution>
<!-- (4)
Remove artifacts.xml (we don't need that anymore) -->
<id>remove-artifacts-xml</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete file="${project.build.directory}/repository/artifacts.xml"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jacoco-report</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<id>prepare-reports</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<taskdef name="report" classname="org.jacoco.ant.ReportTask"
classpathref="maven.plugin.classpath" />
<echo message="Coverage report" />
<report>
<executiondata>
<file file="${sonar.jacoco.reportPath}" />
</executiondata>
<structure name="Xsemantics">
<group name="xsemantics.runtime">
<classfiles>
<!-- Process class files only, ignore jacocoagent.jar -->
<fileset dir="../../plugins/org.eclipse.xsemantics.runtime/target/classes"
includes="**/*.class"
excludes="**/*RuntimeModule*,**/*StandaloneSetup*,**/*Internal*,**/*Sequencer*,**/*Abstract*,**/*GrammarAccess*,**/antlr/*.*,**/internal/*.*,**/xsemantics/xsemantics/util/*.*,**/xsemantics/xsemantics/impl/*.*,**/xsemantics/dsl/formatting/*.*"
/>
</classfiles>
<sourcefiles>
<fileset dir="../../plugins/org.eclipse.xsemantics.runtime/src" />
<fileset dir="../../plugins/org.eclipse.xsemantics.runtime/xtend-gen" />
</sourcefiles>
</group>
<group name="xsemantics">
<classfiles>
<!-- Process class files only, ignore jacocoagent.jar -->
<fileset dir="../../plugins/org.eclipse.xsemantics.dsl/target/classes"
includes="**/*.class"
excludes="**/*RuntimeModule*,**/*StandaloneSetup*,**/*Internal*,**/*Sequencer*,**/*Abstract*,**/*GrammarAccess*,**/*TypeSystemGen*,**/antlr/*.*,**/internal/*.*,**/dsl/xsemantics/*.*,**/dsl/xsemantics/util/*.*,**/dsl/xsemantics/impl/*.*,**/xsemantics/dsl/formatting/*.*"
/>
</classfiles>
<sourcefiles>
<fileset dir="../../plugins/org.eclipse.xsemantics.dsl/src" />
<fileset dir="../../plugins/org.eclipse.xsemantics.dsl/xtend-gen" />
</sourcefiles>
</group>
<group name="xsemantics.ui">
<classfiles>
<fileset dir="../../plugins/org.eclipse.xsemantics.dsl.ui/target/classes"
includes="**/*.class"
excludes="**/*ExtensionFactory*,**/*UiModule*,**/*Internal*,**/*Sequencer*,**/*Abstract*,**/*GrammarAccess*,**/antlr/*.*,**/internal/*.*,**/xsemantics/xsemantics/util/*.*,**/xsemantics/xsemantics/impl/*.*,**/xsemantics/dsl/formatting/*.*"/>
</classfiles>
<sourcefiles>
<fileset dir="../../plugins/org.eclipse.xsemantics.dsl.ui/src" />
<fileset dir="../../plugins/org.eclipse.xsemantics.dsl.ui/xtend-gen" />
</sourcefiles>
</group>
</structure>
<html destdir="${jacoco.reportPath}"
footer="Code Coverage Report for Xsemantics ${project.version}"
locale="en" />
<xml destfile="${jacoco.xml.reportPath}" />
</report>
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.ant</artifactId>
<version>${jacoco-version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.8.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>