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