Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cb2b826b4021309eb6128073bf1e3210d46c797d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<!--
 - Copyright (c) 2008, 2011 Sonatype Inc. and others.
 - All rights reserved. This program and the accompanying materials
 - are made available under the terms of the Eclipse Public License v1.0
 - which accompanies this distribution, and is available at
 - http://www.eclipse.org/legal/epl-v10.html
 -
 - Contributors:
 -    Sonatype Inc. - initial API and implementation
 -->

<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.eclipse.tycho</groupId>
		<artifactId>tycho</artifactId>
		<version>0.23.0</version>
	</parent>

	<artifactId>tycho-surefire</artifactId>
	<packaging>pom</packaging>

	<name>Tycho Surefire Parent (Incubation)</name>

	<properties>
		<surefire-version>2.17</surefire-version>
		<!-- NOTE: when updating surefire version above, run BND manually to find Import-Package 
		statements to JUnit packages required for org.eclipse.tycho.surefire.junit* OSGi wrappers.
		Surefire jars are shaded but not fully self-contained (various package dependencies to org.apache.maven.* 
		packages in classes we do not use) so we can't use BND (maven-bundle-plugin) for creating the wrappers -->
	</properties>

	<modules>
		<module>tycho-surefire-plugin</module>
		<module>org.eclipse.tycho.surefire.osgibooter</module>
		<module>org.eclipse.tycho.surefire.junit</module>
		<module>org.eclipse.tycho.surefire.junit4</module>
		<module>org.eclipse.tycho.surefire.junit47</module>
	</modules>

	<repositories>
		<repository>
			<id>eclipse</id>
			<layout>p2</layout>
			<url>http://download.eclipse.org/releases/indigo</url>
		</repository>
	</repositories>

	<build>
		<pluginManagement>
			<plugins>

				<!-- Copy surefire jars into folder 'jars' in wrappers -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<configuration>
						<outputDirectory>jars</outputDirectory>
					</configuration>
				</plugin>

				<!-- Have m2e execute the jar copy step for easy project import in Eclipse -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-dependency-plugin</artifactId>
										<versionRange>[2.1,)</versionRange>
										<goals>
											<goal>copy</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<execute />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>

				<plugin>
					<artifactId>maven-clean-plugin</artifactId>
					<configuration>
						<filesets>
							<fileset>
								<directory>jars</directory>
							</fileset>
						</filesets>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
</project>

Back to the top