-
Notifications
You must be signed in to change notification settings - Fork 6
/
pom.xml
450 lines (430 loc) · 15.3 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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<?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>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>
<groupId>org.scala-ide</groupId>
<artifactId>plugin-profiles</artifactId>
<version>1.0.15-SNAPSHOT</version>
<name>Scala IDE plugin profiles</name>
<packaging>pom</packaging>
<description>
Inherit this pom file for developing Scala IDE pugins. It contains the right profiles and repositories for developing
plugins against Scala IDE stable, milestone and nightly versions.
</description>
<url>https://github.com/scala-ide/plugin-profiles</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/scala-ide/plugin-profiles</url>
<connection>scm:git:git://github.com/scala-ide/plugin-profiles.git</connection>
<developerConnection>scm:git:[email protected]:scala-ide/plugin-profiles.git</developerConnection>
</scm>
<developers>
<developer>
<id>dragos</id>
<name>Iulian Dragos</name>
<url>https://github.com/dragos</url>
</developer>
<developer>
<id>dotta</id>
<name>Mirco Dotta</name>
<url>https://github.com/dotta</url>
</developer>
<developer>
<id>skyluc</id>
<name>Luc Bourlier</name>
<url>https://github.com/skyluc</url>
</developer>
</developers>
<properties>
<encoding>UTF-8</encoding>
<!-- p2 repositories location -->
<repo.scala-ide.root>http://download.scala-ide.org</repo.scala-ide.root>
<!-- fixed versions -->
<tycho.version>1.0.0</tycho.version>
<scala.plugin.version>3.2.2</scala.plugin.version>
<!-- tycho test related -->
<tycho.test.OSspecific />
<!-- Partial workaround against JDT Weaving deadlocks. See #1000317 and the original ticket on https://issuetracker.springsource.com/browse/STS-1445 -->
<tycho.test.weaving>-XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dosgi.classloader.lock=classname</tycho.test.weaving>
<tycho.test.jvmArgs>-Xmx800m -XX:MaxPermSize=256m -Dsdtcore.headless ${tycho.test.weaving} ${tycho.test.OSspecific}</tycho.test.jvmArgs>
<!-- dependencies repos -->
<eclipse.codename>Specify an Eclipse profile!</eclipse.codename>
<repo.eclipse>Eclipse Repo missing. Specify an Eclipse profile!</repo.eclipse>
<repo.ajdt>AJDT Repo missing. Specify an Eclipse profile!</repo.ajdt>
<weaving.hook.plugin.version>Weaving hook version missing. Specify an Eclipse profile!</weaving.hook.plugin.version>
<!-- some default values, can be overwritten by profiles -->
<scala.version>2.12.3</scala.version>
<version.tag>local</version.tag>
<repo.scala-ide>Scala IDE repo missing. Specify a Scala IDE profile!</repo.scala-ide> <!-- repository is different for each profile -->
<!-- dependencies version number -->
<junit.version>4.12</junit.version>
<mockito.version>1.10.19</mockito.version>
</properties>
<profiles>
<profile>
<id>eclipse-oxygen</id>
<properties>
<eclipse.codename>oxygen</eclipse.codename>
<repo.eclipse>http://download.eclipse.org/releases/oxygen</repo.eclipse>
<repo.ajdt>http://download.eclipse.org/tools/ajdt/47/dev/update</repo.ajdt>
<weaving.hook.plugin.version>1.2.0.v20170105-1446</weaving.hook.plugin.version>
<ecosystem-eclipse-version>e47</ecosystem-eclipse-version>
</properties>
</profile>
<profile>
<id>scala-2.12.x</id>
<properties>
<scala.version>2.12.3</scala.version>
<version.suffix>2_12</version.suffix>
<scala.version.short>2.12</scala.version.short>
<ecosystem-scala-version>212</ecosystem-scala-version>
<scala-ide-branch>4.0.x</scala-ide-branch>
</properties>
<repositories>
<repository>
<id>typesafe-ide</id>
<name>Typesafe IDE repository</name>
<url>https://proxy-ch.typesafe.com:8082/artifactory/ide-2.12/</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>scala-ide-nightly</id> <!-- Update site for Scala IDE Nighlties -->
<properties>
<repo.scala-ide>${repo.scala-ide.root}/nightly-scala-ide-${scala-ide-branch}-${ecosystem-scala-version}x</repo.scala-ide>
</properties>
</profile>
<profile>
<id>scala-ide-dev</id> <!-- Update site for Scala IDE Milestones and RCs releases -->
<properties>
<repo.scala-ide>${repo.scala-ide.root}/sdk/lithium/${ecosystem-eclipse-version}/scala${ecosystem-scala-version}/dev/site</repo.scala-ide>
</properties>
</profile>
<profile>
<id>scala-ide-stable</id> <!-- Update site for Scala IDE Stable/Final releases -->
<properties>
<repo.scala-ide>${repo.scala-ide.root}/sdk/lithium/${ecosystem-eclipse-version}/scala${ecosystem-scala-version}/stable/site</repo.scala-ide>
</properties>
</profile>
<profile>
<!-- some configuration for tests run by tycho on Mac OS -->
<id>macOs</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<tycho.test.OSspecific>-Dosgi.ws=cocoa -XstartOnFirstThread</tycho.test.OSspecific>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<dependencies>
<dependency>
<artifactId>org.eclipse.jdt.launching.macosx</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<!-- jar signing -->
<profile>
<id>sign</id>
<activation>
<property>
<name>jarsigner.keystore</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<alias>typesafe</alias>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- pull the data needed to add the version numbers to the manifests -->
<id>set-versions</id>
<dependencies>
<dependency>
<groupId>org.scala-ide</groupId>
<artifactId>build-tools_2.11</artifactId>
<version>0.5.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>copy.reflect</id>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<classpathScope>compile</classpathScope>
<mainClass>org.scalaide.buildtools.UpdateAddonManifests</mainClass>
<arguments>
<argument>${repo.scala-ide}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<!-- extra repository containing the build package -->
<id>typesafe-ide</id>
<name>Typesafe IDE repository</name>
<url>https://proxy-ch.typesafe.com:8082/artifactory/ide-2.11/</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${mockito.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>sonatype.release</id>
<name>Sonatype maven release repository</name>
<url>https://oss.sonatype.org/content/repositories/releases/</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
<repository>
<id>sonatype.snapshot</id>
<name>Sonatype maven snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
<repository>
<id>scala-ide</id>
<name>Scala IDE p2 repository</name>
<layout>p2</layout>
<url>${repo.scala-ide}</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
<repository>
<id>eclipse.${eclipse.codename}</id>
<name>Eclipse p2 repository</name>
<layout>p2</layout>
<url>${repo.eclipse}</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
<repository>
<id>ajdt.${eclipse.codename}</id>
<name>AJDT for Eclipse p2 repository</name>
<layout>p2</layout>
<url>${repo.ajdt}</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
<!-- Enable JDT weaving -->
<systemProperties combine.children="append">
<aj.weaving.verbose>true</aj.weaving.verbose>
<org.aspectj.weaver.showWeaveInfo>true</org.aspectj.weaver.showWeaveInfo>
<org.aspectj.osgi.verbose>true</org.aspectj.osgi.verbose>
</systemProperties>
<frameworkExtensions>
<frameworkExtension>
<groupId>p2.osgi.bundle</groupId>
<artifactId>org.eclipse.equinox.weaving.hook</artifactId>
<version>${weaving.hook.plugin.version}</version>
</frameworkExtension>
</frameworkExtensions>
<bundleStartLevel>
<bundle>
<id>org.eclipse.equinox.weaving.aspectj</id>
<level>2</level>
<autoStart>true</autoStart>
</bundle>
</bundleStartLevel>
<argLine>${tycho.test.jvmArgs}</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Sets a minimum maven version, see https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.5.0</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<excludeResources>
<excludeResource>**/*.scala</excludeResource>
</excludeResources>
</configuration>
</plugin>
<plugin>
<!-- configuration of the scala compiler -->
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<jvmArgs>
<jvmArg>-Xms512m</jvmArg>
<jvmArg>-Xmx1024m</jvmArg>
</jvmArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>attach-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- for setting a better qualifier -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<format>'${version.tag}-${version.suffix}-'yyyyMMddHHmm'-${buildNumber}'</format>
<archiveSite>true</archiveSite>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-versions-plugin</artifactId>
<version>${tycho.version}</version>
</plugin>
<!-- plugin used to extract the git hash-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<shortRevisionLength>7</shortRevisionLength>
</configuration>
</plugin>
</plugins>
</build>
</project>