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