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