ea36eaf77e98deab1d85fda7983b65f6003f0374
[deliverable/tracecompass.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2011, Red Hat, Inc.
4
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9 -->
10
11 <project xmlns="http://maven.apache.org/POM/4.0.0"
12 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
14 <modelVersion>4.0.0</modelVersion>
15
16 <prerequisites>
17 <maven>${required-maven-version}</maven>
18 </prerequisites>
19
20 <groupId>org.eclipse.tracecompass</groupId>
21 <artifactId>org.eclipse.tracecompass</artifactId>
22 <version>2.1.0-SNAPSHOT</version>
23 <packaging>pom</packaging>
24 <name>Trace Compass Parent</name>
25
26 <licenses>
27 <license>
28 <name>Eclipse Public License v1.0</name>
29 <comments>
30 All rights reserved.
31
32 This program and the accompanying materials are made
33 available under the terms of the Eclipse Public License v1.0
34 which accompanies this distribution, and is available at
35 http://www.eclipse.org/legal/epl-v10.htm
36 </comments>
37 </license>
38 </licenses>
39
40 <properties>
41 <required-maven-version>3.3</required-maven-version>
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
44 <testArgLine></testArgLine>
45
46 <tycho-version>0.25.0</tycho-version>
47 <tycho-extras-version>0.25.0</tycho-extras-version>
48 <tycho.scmUrl>scm:git:git://git.eclipse.org/gitroot/tracecompass/org.eclipse.tracecompass.git</tycho.scmUrl>
49 <cbi-plugins.version>1.1.3</cbi-plugins.version>
50 <target-platform>tracecompass-e4.6</target-platform>
51 <help-docs-eclipserun-repo>http://download.eclipse.org/eclipse/updates/4.5</help-docs-eclipserun-repo>
52
53 <rcptt-version>2.1.0</rcptt-version>
54 <!-- Disable GTK3 because it's not quite usable yet and it can make the tests hang (bug in IcedTea http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1736) -->
55 <SWT_GTK3>0</SWT_GTK3>
56
57 <!-- Sonar rule configuration -->
58 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
59 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
60 <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
61 <sonar.java.source>1.8</sonar.java.source>
62 <sonar.exclusions>**/tests/**,**/test/**,**/stubs/**,**/Messages*,**/alltests/**</sonar.exclusions>
63 <sonar.skippedModules>org.eclipse.tracecompass.ctf.parser,org.eclipse.tracecompass.examples</sonar.skippedModules>
64 <sonar.issue.ignore.multicriteria>e1,e2,e3,e4,e5,e6,e7,e8</sonar.issue.ignore.multicriteria>
65 <sonar.issue.ignore.multicriteria.e1.ruleKey>findbugs:NP_STORE_INTO_NONNULL_FIELD</sonar.issue.ignore.multicriteria.e1.ruleKey>
66 <sonar.issue.ignore.multicriteria.e1.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e1.resourceKey>
67 <sonar.issue.ignore.multicriteria.e2.ruleKey>findbugs:RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE</sonar.issue.ignore.multicriteria.e2.ruleKey>
68 <sonar.issue.ignore.multicriteria.e2.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e2.resourceKey>
69 <sonar.issue.ignore.multicriteria.e3.ruleKey>findbugs:NP_NONNULL_PARAM_VIOLATION</sonar.issue.ignore.multicriteria.e3.ruleKey>
70 <sonar.issue.ignore.multicriteria.e3.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e3.resourceKey>
71 <sonar.issue.ignore.multicriteria.e4.ruleKey>findbugs:NP_NULL_PARAM_DEREF_NONVIRTUAL</sonar.issue.ignore.multicriteria.e4.ruleKey>
72 <sonar.issue.ignore.multicriteria.e4.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e4.resourceKey>
73 <sonar.issue.ignore.multicriteria.e5.ruleKey>findbugs:NP_NONNULL_RETURN_VIOLATION</sonar.issue.ignore.multicriteria.e5.ruleKey>
74 <sonar.issue.ignore.multicriteria.e5.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e5.resourceKey>
75 <sonar.issue.ignore.multicriteria.e6.ruleKey>findbugs:NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR</sonar.issue.ignore.multicriteria.e6.ruleKey>
76 <sonar.issue.ignore.multicriteria.e6.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e6.resourceKey>
77 <sonar.issue.ignore.multicriteria.e7.ruleKey>findbugs:NP_NULL_PARAM_DEREF</sonar.issue.ignore.multicriteria.e7.ruleKey>
78 <sonar.issue.ignore.multicriteria.e7.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e7.resourceKey>
79 <sonar.issue.ignore.multicriteria.e8.ruleKey>findbugs:RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE</sonar.issue.ignore.multicriteria.e8.ruleKey>
80 <sonar.issue.ignore.multicriteria.e8.resourceKey>**/*.java</sonar.issue.ignore.multicriteria.e8.resourceKey>
81 </properties>
82
83 <pluginRepositories>
84 <pluginRepository>
85 <id>repo.eclipse.org</id>
86 <url>https://repo.eclipse.org/content/groups/releases/</url>
87 </pluginRepository>
88 <pluginRepository>
89 <id>tycho-snapshots</id>
90 <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
91 </pluginRepository>
92 <pluginRepository>
93 <id>jboss-public-repository-group</id>
94 <name>JBoss Public Repository Group</name>
95 <url>http://repository.jboss.org/nexus/content/groups/public/</url>
96 </pluginRepository>
97 <pluginRepository>
98 <id>rcptt-snapshots</id>
99 <name>RCPTT Maven Snapshots repository</name>
100 <url>https://repo.eclipse.org/content/repositories/rcptt-snapshots/</url>
101 </pluginRepository>
102 <pluginRepository>
103 <id>rcptt-releases</id>
104 <name>RCPTT Maven repository</name>
105 <url>https://repo.eclipse.org/content/repositories/rcptt-releases/</url>
106 </pluginRepository>
107 </pluginRepositories>
108
109 <profiles>
110 <!-- Manually-set profile to sign the generated update sites -->
111 <profile>
112 <id>sign-update-site</id>
113 <build>
114 <plugins>
115 <plugin>
116 <groupId>org.eclipse.tycho.extras</groupId>
117 <artifactId>tycho-pack200a-plugin</artifactId>
118 <version>${tycho-extras-version}</version>
119 <executions>
120 <execution>
121 <id>pack200-normalize</id>
122 <goals>
123 <goal>normalize</goal>
124 </goals>
125 <phase>package</phase>
126 </execution>
127 </executions>
128 </plugin>
129
130 <plugin>
131 <groupId>org.eclipse.cbi.maven.plugins</groupId>
132 <artifactId>eclipse-jarsigner-plugin</artifactId>
133 <version>${cbi-plugins.version}</version>
134 <executions>
135 <execution>
136 <id>sign</id>
137 <phase>package</phase>
138 <goals>
139 <goal>sign</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
144
145 <plugin>
146 <groupId>org.eclipse.tycho.extras</groupId>
147 <artifactId>tycho-pack200b-plugin</artifactId>
148 <version>${tycho-extras-version}</version>
149 <executions>
150 <execution>
151 <id>pack200-pack</id>
152 <goals>
153 <goal>pack</goal>
154 </goals>
155 <phase>package</phase>
156 </execution>
157 </executions>
158 </plugin>
159 </plugins>
160 </build>
161 </profile>
162
163 <profile>
164 <id>use-jacoco</id>
165 <activation>
166 <property>
167 <name>!skip-jacoco</name>
168 </property>
169 </activation>
170 <properties>
171 <testArgLine>${tycho.testArgLine}</testArgLine>
172 </properties>
173 <build>
174 <plugins>
175 <plugin>
176 <groupId>org.jacoco</groupId>
177 <artifactId>jacoco-maven-plugin</artifactId>
178 <version>0.7.7.201606060606</version>
179 <executions>
180 <execution>
181 <id>pre-test</id>
182 <goals>
183 <goal>prepare-agent</goal>
184 </goals>
185 <configuration>
186 <!-- Where to put jacoco coverage report -->
187 <destFile>${sonar.jacoco.reportPath}</destFile>
188 <includes>
189 <include>org.eclipse.tracecompass.*</include>
190 </includes>
191 <append>true</append>
192 </configuration>
193 </execution>
194 <execution>
195 <id>post-test</id>
196 <phase>post-integration-test</phase>
197 <goals>
198 <goal>report</goal>
199 </goals>
200 <configuration>
201 <dataFile>${sonar.jacoco.reportPath}</dataFile>
202 </configuration>
203 </execution>
204 </executions>
205 </plugin>
206 </plugins>
207 </build>
208 </profile>
209
210 <!-- Automatic profile for Mac-specific settings -->
211 <profile>
212 <id>macosx</id>
213 <activation>
214 <os>
215 <family>mac</family>
216 </os>
217 </activation>
218 <properties>
219 <base.ui.test.vmargs>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -Djava.awt.headless=false</base.ui.test.vmargs>
220 </properties>
221 </profile>
222
223 <!-- Automatic profile for non-Mac platforms settings -->
224 <profile>
225 <id>not-macosx</id>
226 <activation>
227 <os>
228 <family>!mac</family>
229 </os>
230 </activation>
231 <properties>
232 <!-- Disable webkit integration, especially unstable on Linux -->
233 <base.ui.test.vmargs>-Dorg.eclipse.swt.browser.DefaultType=mozilla</base.ui.test.vmargs>
234 </properties>
235 </profile>
236
237 <!-- Automatic profile to define the settings for UI test plugins -->
238 <profile>
239 <id>ui-test-plugin</id>
240 <activation>
241 <file>
242 <exists>ui-test-plugin.properties</exists>
243 </file>
244 </activation>
245 <build>
246 <plugins>
247 <plugin>
248 <groupId>org.eclipse.tycho</groupId>
249 <artifactId>tycho-surefire-plugin</artifactId>
250 <configuration>
251 <useUIHarness>true</useUIHarness>
252 <useUIThread>true</useUIThread>
253 </configuration>
254 </plugin>
255 </plugins>
256 </build>
257 </profile>
258
259 <!-- Automatic profile to define the settings for SWTBot test plugins -->
260 <profile>
261 <id>swtbot-test-plugin</id>
262 <activation>
263 <file>
264 <exists>swtbot-test-plugin.properties</exists>
265 </file>
266 </activation>
267 <build>
268 <plugins>
269 <plugin>
270 <groupId>org.eclipse.tycho</groupId>
271 <artifactId>tycho-surefire-plugin</artifactId>
272 <configuration>
273 <useUIHarness>true</useUIHarness>
274 <useUIThread>false</useUIThread>
275 <environmentVariables>
276 <SWT_GTK3>${SWT_GTK3}</SWT_GTK3>
277 <LIBOVERLAY_SCROLLBAR>0</LIBOVERLAY_SCROLLBAR>
278 </environmentVariables>
279 </configuration>
280 </plugin>
281 </plugins>
282 </build>
283 </profile>
284
285 <!-- Automatic profile to skip sonar -->
286 <profile>
287 <id>skip-sonar</id>
288 <activation>
289 <file>
290 <exists>sonar.skip.properties</exists>
291 </file>
292 </activation>
293 <properties>
294 <sonar.skip>true</sonar.skip>
295 </properties>
296 </profile>
297 </profiles>
298
299 <modules>
300 <module>analysis</module>
301 <module>btf</module>
302 <module>common</module>
303 <module>ctf</module>
304 <module>doc</module>
305 <module>gdbtrace</module>
306 <module>lttng</module>
307 <module>pcap</module>
308 <module>rcp</module>
309 <module>releng</module>
310 <module>statesystem</module>
311 <module>tmf</module>
312 </modules>
313
314 <build>
315 <plugins>
316 <plugin>
317 <inherited>true</inherited>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-enforcer-plugin</artifactId>
320 <version>1.4.1</version>
321 <executions>
322 <execution>
323 <id>enforce-maven-version</id>
324 <goals>
325 <goal>enforce</goal>
326 </goals>
327 <configuration>
328 <rules>
329 <requireMavenVersion>
330 <version>${required-maven-version}</version>
331 </requireMavenVersion>
332 <requireJavaVersion>
333 <version>1.8</version>
334 </requireJavaVersion>
335 </rules>
336 <fail>true</fail>
337 </configuration>
338 </execution>
339 </executions>
340 </plugin>
341
342 <plugin>
343 <groupId>org.eclipse.tycho</groupId>
344 <artifactId>target-platform-configuration</artifactId>
345 <configuration>
346 <includePackedArtifacts>true</includePackedArtifacts>
347 <environments>
348 <environment>
349 <os>win32</os>
350 <ws>win32</ws>
351 <arch>x86</arch>
352 </environment>
353 <environment>
354 <os>win32</os>
355 <ws>win32</ws>
356 <arch>x86_64</arch>
357 </environment>
358 <environment>
359 <os>macosx</os>
360 <ws>cocoa</ws>
361 <arch>x86_64</arch>
362 </environment>
363 <environment>
364 <os>linux</os>
365 <ws>gtk</ws>
366 <arch>x86</arch>
367 </environment>
368 <environment>
369 <os>linux</os>
370 <ws>gtk</ws>
371 <arch>x86_64</arch>
372 </environment>
373 </environments>
374 <target>
375 <artifact>
376 <groupId>org.eclipse.tracecompass</groupId>
377 <artifactId>org.eclipse.tracecompass.target</artifactId>
378 <classifier>${target-platform}</classifier>
379 <version>2.1.0-SNAPSHOT</version>
380 </artifact>
381 </target>
382 </configuration>
383 </plugin>
384
385 <plugin>
386 <groupId>org.eclipse.tycho</groupId>
387 <artifactId>tycho-maven-plugin</artifactId>
388 <version>${tycho-version}</version>
389 <extensions>true</extensions>
390 </plugin>
391
392 <plugin>
393 <groupId>org.eclipse.tycho</groupId>
394 <artifactId>tycho-source-plugin</artifactId>
395 <version>${tycho-version}</version>
396 <executions>
397 <execution>
398 <id>plugin-source</id>
399 <goals>
400 <goal>plugin-source</goal>
401 </goals>
402 </execution>
403 </executions>
404 </plugin>
405
406 <plugin>
407 <groupId>org.eclipse.tycho.extras</groupId>
408 <artifactId>tycho-source-feature-plugin</artifactId>
409 <version>${tycho-extras-version}</version>
410 <configuration>
411 <includeBinaryFeature>false</includeBinaryFeature>
412 </configuration>
413 <executions>
414 <execution>
415 <id>source-feature</id>
416 <phase>package</phase>
417 <goals>
418 <goal>source-feature</goal>
419 </goals>
420 </execution>
421 </executions>
422 </plugin>
423
424 <plugin>
425 <groupId>org.eclipse.tycho.extras</groupId>
426 <artifactId>tycho-pack200b-plugin</artifactId>
427 <version>${tycho-extras-version}</version>
428 <executions>
429 <execution>
430 <id>pack200-pack</id>
431 <goals>
432 <goal>pack</goal>
433 </goals>
434 <phase>package</phase>
435 </execution>
436 </executions>
437 </plugin>
438
439 <plugin>
440 <groupId>org.eclipse.tycho</groupId>
441 <artifactId>tycho-p2-plugin</artifactId>
442 <executions>
443 <execution>
444 <id>p2-metadata</id>
445 <goals>
446 <goal>p2-metadata</goal>
447 </goals>
448 <phase>package</phase>
449 </execution>
450 </executions>
451 <configuration>
452 <defaultP2Metadata>false</defaultP2Metadata>
453 </configuration>
454 </plugin>
455 </plugins>
456
457 <pluginManagement>
458 <plugins>
459 <plugin>
460 <groupId>org.eclipse.tycho</groupId>
461 <artifactId>tycho-compiler-plugin</artifactId>
462 <version>${tycho-version}</version>
463 <configuration>
464 <source>1.8</source>
465 <target>1.8</target>
466 <encoding>UTF-8</encoding>
467 <useProjectSettings>true</useProjectSettings>
468 <compilerArguments>
469 <annotationpath>common/org.eclipse.tracecompass.common.core/annotations</annotationpath>
470 </compilerArguments>
471 </configuration>
472 </plugin>
473
474 <plugin>
475 <groupId>org.eclipse.tycho</groupId>
476 <artifactId>target-platform-configuration</artifactId>
477 <version>${tycho-version}</version>
478 </plugin>
479
480 <plugin>
481 <groupId>org.eclipse.tycho</groupId>
482 <artifactId>tycho-p2-plugin</artifactId>
483 <version>${tycho-version}</version>
484 </plugin>
485
486 <plugin>
487 <groupId>org.eclipse.tycho</groupId>
488 <artifactId>tycho-p2-publisher-plugin</artifactId>
489 <version>${tycho-version}</version>
490 </plugin>
491
492 <plugin>
493 <groupId>org.eclipse.tycho</groupId>
494 <artifactId>tycho-p2-repository-plugin</artifactId>
495 <version>${tycho-version}</version>
496 </plugin>
497
498 <plugin>
499 <groupId>org.eclipse.tycho</groupId>
500 <artifactId>tycho-surefire-plugin</artifactId>
501 <version>${tycho-version}</version>
502 <configuration>
503 <!-- Default configuration, UI tests may have to override these -->
504 <useUIHarness>false</useUIHarness>
505 <useUIThread>false</useUIThread>
506 <dependencies>
507 <dependency>
508 <type>p2-installable-unit</type>
509 <artifactId>org.eclipse.platform.feature.group</artifactId>
510 <version>${sdk-version}</version>
511 </dependency>
512 </dependencies>
513 <product>org.eclipse.platform.ide</product>
514 <argLine>${testArgLine} ${base.ui.test.vmargs} -Xms512m -Xmx1024m</argLine>
515 </configuration>
516 </plugin>
517
518 <plugin>
519 <groupId>org.eclipse.tycho</groupId>
520 <artifactId>tycho-versions-plugin</artifactId>
521 <version>${tycho-version}</version>
522 </plugin>
523
524 <plugin>
525 <groupId>org.eclipse.tycho</groupId>
526 <artifactId>tycho-packaging-plugin</artifactId>
527 <version>${tycho-version}</version>
528 <configuration>
529 <sourceReferences>
530 <generate>true</generate>
531 </sourceReferences>
532 </configuration>
533 <dependencies>
534 <dependency>
535 <groupId>org.eclipse.tycho.extras</groupId>
536 <artifactId>tycho-sourceref-jgit</artifactId>
537 <version>${tycho-extras-version}</version>
538 </dependency>
539 </dependencies>
540 </plugin>
541
542 <plugin>
543 <groupId>org.apache.maven.plugins</groupId>
544 <artifactId>maven-resources-plugin</artifactId>
545 <version>3.0.1</version>
546 <configuration>
547 <encoding>UTF-8</encoding>
548 </configuration>
549 </plugin>
550
551 <plugin>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-antrun-plugin</artifactId>
554 <version>1.8</version>
555 </plugin>
556
557 <plugin>
558 <groupId>org.apache.maven.plugins</groupId>
559 <artifactId>maven-dependency-plugin</artifactId>
560 <version>2.10</version>
561 </plugin>
562
563 <plugin>
564 <groupId>org.eclipse.rcptt</groupId>
565 <artifactId>rcptt-maven-plugin</artifactId>
566 <version>${rcptt-version}</version>
567 </plugin>
568
569 <plugin>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-site-plugin</artifactId>
572 <version>3.5.1</version>
573 </plugin>
574
575 <plugin>
576 <groupId>org.apache.maven.plugins</groupId>
577 <artifactId>maven-clean-plugin</artifactId>
578 <version>3.0.0</version>
579 </plugin>
580
581 <plugin>
582 <groupId>org.apache.maven.plugins</groupId>
583 <artifactId>maven-deploy-plugin</artifactId>
584 <version>2.8.2</version>
585 </plugin>
586
587 <plugin>
588 <groupId>org.apache.maven.plugins</groupId>
589 <artifactId>maven-install-plugin</artifactId>
590 <version>2.5.2</version>
591 </plugin>
592
593 <plugin>
594 <groupId>org.apache.maven.plugins</groupId>
595 <artifactId>maven-project-info-reports-plugin</artifactId>
596 <version>2.9</version>
597 </plugin>
598
599 <plugin>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-javadoc-plugin</artifactId>
602 <version>2.10.4</version>
603 <configuration>
604 <excludePackageNames>org.eclipse.tracecompass.internal.*:*.test*</excludePackageNames>
605 </configuration>
606 </plugin>
607
608 <plugin>
609 <groupId>org.jboss.tools.tycho-plugins</groupId>
610 <artifactId>repository-utils</artifactId>
611 <version>0.23.3</version>
612 </plugin>
613
614 <plugin>
615 <groupId>org.codehaus.mojo</groupId>
616 <artifactId>sonar-maven-plugin</artifactId>
617 <version>3.0.2</version>
618 </plugin>
619
620 <plugin>
621 <groupId>org.eclipse.tycho.extras</groupId>
622 <artifactId>tycho-eclipserun-plugin</artifactId>
623 <version>${tycho-extras-version}</version>
624 <configuration>
625 <dependencies>
626 <dependency>
627 <artifactId>org.apache.ant</artifactId>
628 <type>eclipse-plugin</type>
629 </dependency>
630 <dependency>
631 <artifactId>org.eclipse.help.base</artifactId>
632 <type>eclipse-plugin</type>
633 </dependency>
634 <dependency>
635 <artifactId>org.eclipse.ant.core</artifactId>
636 <type>eclipse-plugin</type>
637 </dependency>
638 </dependencies>
639 <!-- This needs to be explicitely set now, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=395281 -->
640 <repositories>
641 <repository>
642 <id>platform</id>
643 <layout>p2</layout>
644 <url>${help-docs-eclipserun-repo}</url>
645 </repository>
646 </repositories>
647 </configuration>
648 <executions>
649 <execution>
650 <goals>
651 <goal>eclipse-run</goal>
652 </goals>
653 <phase>compile</phase>
654 </execution>
655 </executions>
656 </plugin>
657 </plugins>
658 </pluginManagement>
659 </build>
660
661 </project>
This page took 0.061608 seconds and 5 git commands to generate.