blob: fb3ec4c047f19204342c440cebcf22772a0b3a66 [file] [log] [blame]
Stephan Herrmann415903e2012-05-26 15:53:02 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmannfdc9d1a2017-03-26 17:35:22 +02003 Copyright (c) 2012, 2017 Eclipse Foundation and others.
Stephan Herrmann415903e2012-05-26 15:53:02 +02004 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Distribution License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/org/documents/edl-v10.php
Stephan Herrmann7941b7c2013-11-03 16:07:28 +01008
Stephan Herrmann415903e2012-05-26 15:53:02 +02009 Contributors:
10 Igor Fedorenko - initial implementation
Stephan Herrmann7941b7c2013-11-03 16:07:28 +010011 Mickael Istria (Red Hat Inc.) - 416912: tycho-surefire-plugin configuration
Stephan Herrmann415903e2012-05-26 15:53:02 +020012-->
Stephan Herrmannc7600d82013-04-28 22:48:05 +020013<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Stephan Herrmann415903e2012-05-26 15:53:02 +020014 <modelVersion>4.0.0</modelVersion>
15 <parent>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020016 <artifactId>tests-pom</artifactId>
Stephan Herrmann415903e2012-05-26 15:53:02 +020017 <groupId>eclipse.jdt.core</groupId>
Stephan Herrmannd0fe0622018-07-26 19:10:48 +020018 <version>4.9.0-SNAPSHOT</version>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020019 <relativePath>../tests-pom/</relativePath>
Stephan Herrmann415903e2012-05-26 15:53:02 +020020 </parent>
Stephan Herrmann396f3342013-03-14 14:31:57 +010021 <groupId>org.eclipse.jdt</groupId>
Stephan Herrmann415903e2012-05-26 15:53:02 +020022 <artifactId>org.eclipse.jdt.core.tests.model</artifactId>
Stephan Herrmannd0fe0622018-07-26 19:10:48 +020023 <version>3.10.600-SNAPSHOT</version>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020024 <packaging>eclipse-test-plugin</packaging>
25
26 <properties>
27 <defaultSigning-excludeInnerJars>true</defaultSigning-excludeInnerJars>
Stephan Herrmannd4cbc682016-10-28 20:51:00 +020028 <code.ignoredWarnings>-warn:+fieldHiding,-unavoidableGenericProblems</code.ignoredWarnings>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020029 </properties>
Stephan Herrmann918c05c2012-12-16 20:09:49 +010030
31 <build>
32 <plugins>
33 <plugin>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +010034 <groupId>org.eclipse.tycho</groupId>
35 <artifactId>tycho-surefire-plugin</artifactId>
36 <version>${tycho.version}</version>
37 <configuration>
Stephan Herrmann5e087fb2018-05-12 15:02:06 +020038 <argLine>-Djdt.default.test.compliance=1.8 ${tycho.surefire.argLine}</argLine>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +010039 <includes>
40 <include>org/eclipse/jdt/core/tests/model/AllJavaModelTests.class</include>
41 <include>org/eclipse/jdt/core/tests/dom/RunAllTests.class</include>
42 <include>org/eclipse/jdt/core/tests/RunFormatterTests.class</include>
43 </includes>
44 </configuration>
45 </plugin>
Stephan Herrmann918c05c2012-12-16 20:09:49 +010046 </plugins>
47 </build>
Stephan Herrmann3442b522018-01-25 21:18:41 +010048
49 <profiles>
50 <profile>
51 <id>test-on-javase-9</id>
52 <build>
53 <plugins>
54 <plugin>
55 <groupId>org.apache.maven.plugins</groupId>
56 <artifactId>maven-toolchains-plugin</artifactId>
57 <version>1.1</version>
58 <executions>
59 <execution>
60 <phase>validate</phase>
61 <goals>
62 <goal>toolchain</goal>
63 </goals>
64 </execution>
65 </executions>
66 <configuration>
67 <toolchains>
68 <jdk>
69 <id>JavaSE-9</id>
70 </jdk>
71 </toolchains>
72 </configuration>
73 </plugin>
74 </plugins>
75 </build>
Stephan Herrmann5e087fb2018-05-12 15:02:06 +020076 <properties>
77 <tycho.surefire.argLine>--add-modules ALL-SYSTEM</tycho.surefire.argLine>
78 </properties>
Stephan Herrmann3442b522018-01-25 21:18:41 +010079 </profile>
Stephan Herrmannd0fe0622018-07-26 19:10:48 +020080 <profile>
81 <id>test-on-javase-10</id>
82 <build>
83 <plugins>
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-toolchains-plugin</artifactId>
87 <version>1.1</version>
88 <executions>
89 <execution>
90 <phase>validate</phase>
91 <goals>
92 <goal>toolchain</goal>
93 </goals>
94 </execution>
95 </executions>
96 <configuration>
97 <toolchains>
98 <jdk>
99 <id>JavaSE-10</id>
100 </jdk>
101 </toolchains>
102 </configuration>
103 </plugin>
104 </plugins>
105 </build>
106 <properties>
107 <!-- Overridden in https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-10/configure -->
108 <tycho.surefire.argLine>--add-modules ALL-SYSTEM -Dcompliance=1.4,1.7,1.8,10</tycho.surefire.argLine>
109 </properties>
110 </profile>
Stephan Herrmann3442b522018-01-25 21:18:41 +0100111 </profiles>
112
Stephan Herrmann415903e2012-05-26 15:53:02 +0200113</project>