-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
543 lines (487 loc) · 19.1 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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
<?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>
<groupId>javamm</groupId>
<artifactId>javamm.releng</artifactId>
<version>1.4.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>../javamm.targetplatform</module>
<module>../javamm.runtime</module>
<module>../javamm</module>
<module>../javamm.selfassessment.builder</module>
<module>../javamm.ide</module>
<module>../javamm.ui</module>
<module>../javamm.examples</module>
<module>../javamm.ui.examples</module>
<module>../javamm.tests</module>
<module>../javamm.ui.tests</module>
<module>../javamm.sdk</module>
<module>../javamm.site</module>
</modules>
<properties>
<tycho-version>0.24.0</tycho-version>
<tycho-extras-version>0.24.0</tycho-extras-version>
<maven-surefire-plugin.version>2.17</maven-surefire-plugin.version>
<maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
<junit-version>4.11</junit-version>
<jacoco-version>0.7.4.201502262128</jacoco-version>
<findbugs-version>2.5.5</findbugs-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<os-jvm-flags />
<memoryArgs>-Xms256M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M -XX:+HeapDumpOnOutOfMemoryError</memoryArgs>
<xtext.version>2.10.0</xtext.version>
<xtext-version>${xtext.version}</xtext-version>
<xtextVersion>${xtext.version}</xtextVersion>
<platform-version>[3.9,4.0)</platform-version>
<fornax-oaw-m2-plugin-version>3.5.1</fornax-oaw-m2-plugin-version>
<target-file-name>mars-xtext-2.10</target-file-name>
<!-- <jacoco.reportPath>../target/jacoco.exec</jacoco.reportPath> -->
<!-- <findbugs.reportPath>../target/findbugs</findbugs.reportPath> -->
<!-- Sonar -->
<sonar.language>java</sonar.language>
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
<jacoco.reportPath>${project.basedir}/../target/coverage</jacoco.reportPath>
<jacoco.xml.reportPath>${jacoco.reportPath}/coverage.xml</jacoco.xml.reportPath>
<!-- <sonar.junit.reportsPath>../${project.artifactId}.tests/target/surefire-reports/</sonar.junit.reportsPath> -->
<sonar.exclusions>file:**/ui/launch/*.java,file:**/*SelfAssessmentNature.java,file:**/*JvmModelGenerator.java,file:**/New*FileWizard*.java,file:**/src-gen/**,file:**/emf-gen/**,file:**/impl/*ImplCustom.java,file:**/tests/**,**/*RuntimeModule.java,**/*UiModule.java,**/*XcoreReader.java,**/*UiExamples.java,**/*TypeSystemGen*.java,**/*StandaloneSetup*.java</sonar.exclusions>
<!-- see http://sonarqube.15.x6.nabble.com/sonar-issue-ignore-multicriteria-td5021722.html and
http://stackoverflow.com/questions/21825469/configure-sonar-sonar-issue-ignore-multicriteria-through-maven
for the multicriteria property -->
<sonar.issue.ignore.multicriteria>e11,e12,e13,e14,e2,e3,e4,e5,e6</sonar.issue.ignore.multicriteria>
<!-- standard convention for method names: in the outline tree provider we
must use methods that start with _ and they'd violate the rule squid:S00100 -->
<sonar.issue.ignore.multicriteria.e11.ruleKey>squid:S00100</sonar.issue.ignore.multicriteria.e11.ruleKey>
<sonar.issue.ignore.multicriteria.e11.resourceKey>**/*OutlineTreeProvider.java</sonar.issue.ignore.multicriteria.e11.resourceKey>
<sonar.issue.ignore.multicriteria.e12.ruleKey>squid:S00100</sonar.issue.ignore.multicriteria.e12.ruleKey>
<sonar.issue.ignore.multicriteria.e12.resourceKey>**/*AbstractXbaseProposalProvider.java</sonar.issue.ignore.multicriteria.e12.resourceKey>
<sonar.issue.ignore.multicriteria.e13.ruleKey>squid:S00100</sonar.issue.ignore.multicriteria.e13.ruleKey>
<sonar.issue.ignore.multicriteria.e13.resourceKey>**/*XbaseCompiler.java</sonar.issue.ignore.multicriteria.e13.resourceKey>
<sonar.issue.ignore.multicriteria.e14.ruleKey>squid:S00100</sonar.issue.ignore.multicriteria.e14.ruleKey>
<sonar.issue.ignore.multicriteria.e14.resourceKey>**/*ValueConverterService.java</sonar.issue.ignore.multicriteria.e14.resourceKey>
<!-- "Tabulation characters should not be used"
sorry... I don't agree :) -->
<sonar.issue.ignore.multicriteria.e2.ruleKey>squid:S00105</sonar.issue.ignore.multicriteria.e2.ruleKey>
<sonar.issue.ignore.multicriteria.e2.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e2.resourceKey>
<!-- Unused parameters are needed in these files for polymorphic dispatching -->
<sonar.issue.ignore.multicriteria.e3.ruleKey>squid:S1172</sonar.issue.ignore.multicriteria.e3.ruleKey>
<sonar.issue.ignore.multicriteria.e3.resourceKey>**/*XbaseCompiler.java</sonar.issue.ignore.multicriteria.e3.resourceKey>
<!-- Unused parameters are needed in these files for polymorphic dispatching -->
<sonar.issue.ignore.multicriteria.e4.ruleKey>squid:S1172</sonar.issue.ignore.multicriteria.e4.ruleKey>
<sonar.issue.ignore.multicriteria.e4.resourceKey>**/*AbstractXbaseProposalProvider.java</sonar.issue.ignore.multicriteria.e4.resourceKey>
<!-- Useless parenthesis; these files use code automatically generated -->
<sonar.issue.ignore.multicriteria.e5.ruleKey>squid:UselessParenthesesCheck</sonar.issue.ignore.multicriteria.e5.ruleKey>
<sonar.issue.ignore.multicriteria.e5.resourceKey>**/*AbstractXbaseProposalProvider.java</sonar.issue.ignore.multicriteria.e5.resourceKey>
<!-- Eclipse builder IProject[] build is expected to return null in some cases -->
<sonar.issue.ignore.multicriteria.e6.ruleKey>squid:S1168</sonar.issue.ignore.multicriteria.e6.ruleKey>
<sonar.issue.ignore.multicriteria.e6.resourceKey>**/*SelfAssessmentBuilder.java</sonar.issue.ignore.multicriteria.e6.resourceKey>
<!-- sonar.skippedModules is deprecated: https://jira.codehaus.org/browse/SONAR-5109 -->
<!-- instead we must use advanced reactor options: https://jira.codehaus.org/browse/MSONAR-61 -->
<!-- Example:
mvn sonar:sonar -pl :javamm.releng,:javamm.runtime,:javamm,:javamm.ui
-->
<!-- Otherwise we'll have problems due to generated sources, which are
not in the git repository (since Sonarqube 5) -->
<sonar.scm.disabled>true</sonar.scm.disabled>
<findbugs.skip>false</findbugs.skip>
<swtbot.tests.only>false</swtbot.tests.only>
<swtbot.tests.skip>false</swtbot.tests.skip>
<!-- properties for deploying the composite update site and zipped products on Sourceforge -->
<!-- since this could be used in the pluginManagement section, we need to make sure
the path always points to this pom's directory; project.basedir will always point
to the directory of the pom where the pluginManagement's plugins are used -->
<ant-files-path>${project.basedir}/../javamm.releng/ant</ant-files-path>
<!-- pass "-n" to perform a trial run with no changes made -->
<dryrun></dryrun>
<!-- for deployment on bintray -->
<!-- The name of your own Bintray repository -->
<bintray.repo>javamm</bintray.repo>
<!-- The name of your own Bintray repository's package for releases -->
<bintray.package>releases</bintray.package>
<!-- The label for the Composite sites -->
<site.label>Java-- Site</site.label>
<!-- If the Bintray repository is owned by someone different from your
user, then specify the bintray.owner explicitly -->
<bintray.owner>${bintray.user}</bintray.owner>
<!-- Define bintray.user and bintray.apikey in some secret place,
like .m2/settings.xml -->
<!-- Default values for remote directories -->
<bintray.base.path></bintray.base.path>
<bintray.releases.path>${bintray.base.path}releases</bintray.releases.path>
<bintray.composite.path>${bintray.base.path}updates</bintray.composite.path>
<bintray.zip.path>${bintray.base.path}zipped</bintray.zip.path>
<bintray.products.path>${bintray.base.path}products</bintray.products.path>
<!-- note that the following must be consistent with the path schema
used to publish child composite repositories and actual released p2 repositories -->
<child.repository.path.prefix>../../releases/</child.repository.path.prefix>
<!-- set it to true to have a self contained p2 repository https://wiki.eclipse.org/Tycho/eclipse-repository#Creating_a_self-contained_p2_repository -->
<!-- We handle that at .site and .ide.site level -->
<!-- <includeAllDependencies>true</includeAllDependencies> -->
</properties>
<profiles>
<profile>
<id>luna</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<target-file-name>luna</target-file-name>
</properties>
</profile>
<profile>
<id>local</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<target-file-name>local</target-file-name>
</properties>
</profile>
<profile>
<id>release-snapshots</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<includeAllDependencies>false</includeAllDependencies>
<updates.dir>javamm-snapshots</updates.dir>
<remote.updates.dir>snapshots/updates/releases</remote.updates.dir>
<remote.zips.dir>snapshots/zips</remote.zips.dir>
<site.label>Java-- Snapshot Site</site.label>
</properties>
</profile>
<profile>
<id>build-ide</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<findbugs.skip>true</findbugs.skip>
</properties>
<modules>
<module>../javamm.eclipse.sdk</module>
<module>../javamm.product.ui.feature</module>
<module>../javamm.product.site</module>
</modules>
<build>
<plugins>
<!-- specify all environments when building the IDE -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<target>
<artifact>
<groupId>javamm</groupId>
<artifactId>javamm.targetplatform</artifactId>
<version>${project.version}</version>
<classifier>${target-file-name}</classifier>
</artifact>
</target>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<!-- This is not present in Mars
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86</arch>
</environment>
-->
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ide-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<findbugs.skip>true</findbugs.skip>
</properties>
<modules>
<module>../javamm.eclipse.sdk</module>
<module>../javamm.product.ui.feature</module>
<module>../javamm.product.site</module>
<module>../javamm.swtbot.tests</module>
</modules>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<!-- xtend-maven-plugin is in pluginManagement instead of in plugins
so that it doesn't run before the exec-maven-plugin's *.mwe2 gen; this way
we can list it after. -->
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>${xtext.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>xtend-install-debug-info</goal>
<goal>testCompile</goal>
<goal>xtend-test-install-debug-info</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>xtend-gen</outputDirectory>
<xtendAsPrimaryDebugSource>true</xtendAsPrimaryDebugSource>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/xtend-gen</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs-version}</version>
<configuration>
<skip>${findbugs.skip}</skip>
<findbugsXmlOutput>true</findbugsXmlOutput>
<failOnError>false</failOnError>
<!-- <findbugsXmlOutputDirectory>${findbugs.reportPath}</findbugsXmlOutputDirectory> -->
<!-- Enables analysis which takes more memory but finds more bugs.
If you run out of memory, changes the value of the effort element to 'Low'. -->
<!-- <effort>Max</effort> -->
<!-- Low: Reports all bugs (other values are medium and max) -->
<!-- <threshold>Medium</threshold> -->
<maxRank>15</maxRank>
<jvmArgs>-Xmx1024m</jvmArgs>
<excludeFilterFile>${basedir}/../javamm.releng/findbugs/excludeFilter.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<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-source-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
<version>${tycho-extras-version}</version>
<executions>
<execution>
<id>source-feature</id>
<phase>package</phase>
<goals>
<goal>source-feature</goal>
</goals>
<configuration>
<excludes>
<!-- These are bundles and feature that do not have a corresponding
source version; NOT the ones that we do not want source versions -->
<plugin id="javamm.runtime" />
<plugin id="javamm.ui.examples" />
<plugin id="javamm.eclipse.sdk" />
<feature id="javamm.swtbot.tests.feature" />
<feature id="org.eclipse.swtbot.ide" />
<feature id="org.eclipse.xtext.sdk" />
<feature id="org.eclipse.xtend.sdk" />
<feature id="org.eclipse.pde" />
<feature id="org.eclipse.emf.mwe2.language.sdk" />
<feature id="org.eclipse.emf.mwe2.runtime.sdk" />
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>attach-p2-metadata</id>
<phase>package</phase>
<goals>
<goal>p2-metadata</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- in standard build, use only the current environment -->
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<target>
<artifact>
<groupId>javamm</groupId>
<artifactId>javamm.targetplatform</artifactId>
<version>${project.version}</version>
<classifier>${target-file-name}</classifier>
</artifact>
</target>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<format>'v'yyyyMMdd'-'HHmm</format>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<finalName>${project.artifactId}-${qualifiedVersion}</finalName>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>${sonar.jacoco.reportPath}</destFile>
<includes>
<include>javamm.*</include>
</includes>
<excludes>
<exclude>**/org/eclipse/**/*.class</exclude>
<exclude>**.antlr**</exclude>
<exclude>**.parseTree**</exclude>
<exclude>**Abstract*RuntimeModule.class</exclude>
<exclude>**/*SetupGenerated*.class</exclude>
<exclude>**/Abstract*Validator.class</exclude>
<exclude>**/*GrammarAccess*.class</exclude>
<exclude>**/Abstract*UiModule.class</exclude>
<exclude>**/Abstract*ProposalProvider.class</exclude>
<exclude>**/*Test.class</exclude>
<exclude>**/*Internal*</exclude>
<exclude>**/*Sequencer*</exclude>
<exclude>**/internal/*</exclude>
<exclude>**/javamm/javamm/util/*</exclude>
<exclude>**/javamm/javamm/impl/*</exclude>
</excludes>
<append>true</append>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.1.0</version>
<configuration>
<jacocoReports>
<jacocoReport>${jacoco.xml.reportPath}</jacocoReport>
</jacocoReports>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>codehaus-snapshots</id>
<name>disable dead 'Codehaus Snapshots' repository, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=481478</name>
<url>http://nexus.codehaus.org/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>sonatype_releases</id>
<url>https://oss.sonatype.org/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>sonatype_snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>