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