pom.xml 5.41 KB
Newer Older
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Matthias Betz's avatar
Matthias Betz committed
2
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
4

5
6
	<groupId>eu.simstadt</groupId>
	<artifactId>region-chooser</artifactId>
7
	<version>0.2.1-SNAPSHOT</version>
8

Matthias Betz's avatar
Matthias Betz committed
9
10
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Eric Duminil's avatar
Eric Duminil committed
11
12
13
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
		<junit-jupiter.version>5.6.0</junit-jupiter.version>
Matthias Betz's avatar
Matthias Betz committed
14
	</properties>
15
16
17
18
19
20

	<scm>
		<connection>scm:git:file://${project.baseUri}/.git</connection>
		<developerConnection>scm:git:file://${project.baseUri}/.git</developerConnection>
	</scm>

Matthias Betz's avatar
Matthias Betz committed
21
	<dependencies>
Eric Duminil's avatar
Eric Duminil committed
22

Matthias Betz's avatar
Matthias Betz committed
23
		<dependency>
Eric Duminil's avatar
Eric Duminil committed
24
25
26
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter-engine</artifactId>
			<version>${junit-jupiter.version}</version>
Matthias Betz's avatar
Matthias Betz committed
27
28
			<scope>test</scope>
		</dependency>
Eric Duminil's avatar
Eric Duminil committed
29

Matthias Betz's avatar
Matthias Betz committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
		<!-- https://mvnrepository.com/artifact/org.osgeo/proj4j -->
		<dependency>
			<groupId>org.osgeo</groupId>
			<artifactId>proj4j</artifactId>
			<version>0.1.0</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.locationtech.jts/jts-core -->
		<dependency>
			<groupId>org.locationtech.jts</groupId>
			<artifactId>jts-core</artifactId>
			<version>1.16.1</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/com.ximpleware/vtd-xml -->
		<dependency>
			<groupId>com.ximpleware</groupId>
			<artifactId>vtd-xml</artifactId>
			<version>2.13.4</version>
		</dependency>
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
		<!-- Test dependencies for JavaFX -->
		<dependency>
			<groupId>org.testfx</groupId>
			<artifactId>testfx-core</artifactId>
			<version>4.0.16-alpha</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testfx</groupId>
			<artifactId>testfx-junit5</artifactId>
			<version>4.0.16-alpha</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testfx</groupId>
			<artifactId>openjfx-monocle</artifactId>
			<version>8u76-b04</version> <!-- jdk-11+26 for Java 11, jdk-9+181 for Java 9, 8u76-b04 for Java 8 -->
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest</artifactId>
			<version>2.1</version>
			<scope>test</scope>
		</dependency>
Matthias Betz's avatar
Matthias Betz committed
73
74
75
	</dependencies>
	<build>
		<plugins>
76
			<!-- Gets info from git, e.g. hash and datetime -->
Matthias Betz's avatar
Matthias Betz committed
77
			<plugin>
78
79
80
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>1.4</version>
Matthias Betz's avatar
Matthias Betz committed
81
82
				<executions>
					<execution>
83
						<phase>validate</phase>
Matthias Betz's avatar
Matthias Betz committed
84
						<goals>
85
							<goal>create</goal>
Matthias Betz's avatar
Matthias Betz committed
86
87
88
						</goals>
					</execution>
				</executions>
89
90
91
92
93
94
				<configuration>
					<timestampFormat>{0,date,yyyyMMdd}</timestampFormat>
					<shortRevisionLength>7</shortRevisionLength>
					<doCheck>false</doCheck>
					<doUpdate>false</doUpdate>
				</configuration>
Matthias Betz's avatar
Matthias Betz committed
95
			</plugin>
96
97

			<!-- Packs everything in a zip -->
Matthias Betz's avatar
Matthias Betz committed
98
99
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
100
				<version>3.2.0</version>
Matthias Betz's avatar
Matthias Betz committed
101
102
				<executions>
					<execution>
103
104
						<id>regionchooser</id>
						<phase>package</phase>
Matthias Betz's avatar
Matthias Betz committed
105
106
107
						<goals>
							<goal>single</goal>
						</goals>
108
109
110
111
112
113
114
						<configuration>
							<descriptors>
								<descriptor>${basedir}/buildConfig/assemblyDesc.xml</descriptor>
							</descriptors>
							<finalName>RegionChooser_${project.version}_${scmBranch}_${timestamp}_${buildNumber}</finalName>
							<appendAssemblyId>false</appendAssemblyId>
						</configuration>
Matthias Betz's avatar
Matthias Betz committed
115
116
117
118
119
120
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
121
				<version>3.2.0</version>
Matthias Betz's avatar
Matthias Betz committed
122
123
124
				<configuration>
					<archive>
						<manifest>
125
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
Matthias Betz's avatar
Matthias Betz committed
126
127
							<mainClass>eu.simstadt.regionchooser.RegionChooserFX</mainClass>
						</manifest>
128
129
						<manifestEntries>
							<Implementation-URL>http://simstadt.hft-stuttgart.de/</Implementation-URL>
130
							<Implementation-Version>${project.version} (${scmBranch}, rev. ${buildNumber}, ${timestamp})</Implementation-Version>
131
						</manifestEntries>
Matthias Betz's avatar
Matthias Betz committed
132
133
134
					</archive>
				</configuration>
			</plugin>
Matthias Betz's avatar
Matthias Betz committed
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.0</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.22.2</version>
				<configuration>
					<testFailureIgnore>true</testFailureIgnore>
				</configuration>
				<executions>
					<execution>
						<id>default-test</id>
						<phase>test</phase>
						<goals>
							<goal>test</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.8.2</version>
				<executions>
					<execution>
						<id>default-prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
					<execution>
						<id>default-report</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>report</goal>
						</goals>
					</execution>
Matthias Betz's avatar
Matthias Betz committed
177

Matthias Betz's avatar
Matthias Betz committed
178
179
180
181
182
183
184
185
186
187
188
189
190

					<!-- attached to Maven test phase -->
					<execution>
						<id>report</id>
						<phase>test</phase>
						<goals>
							<goal>report</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
Eric Duminil's avatar
Eric Duminil committed
191
</project>