pom.xml 5.41 KB
Newer Older
Matthias Betz's avatar
Matthias Betz committed
1
2
3
4
5
<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">
	<modelVersion>4.0.0</modelVersion>
	<groupId>eu.simstadt</groupId>
6

Matthias Betz's avatar
Matthias Betz committed
7
	<artifactId>RegionChooser</artifactId>
Eric Duminil's avatar
Eric Duminil committed
8
	<version>0.1.0-SNAPSHOT</version>
Eric Duminil's avatar
Eric Duminil committed
9

Matthias Betz's avatar
Matthias Betz committed
10
11
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Eric Duminil's avatar
Eric Duminil committed
12
13
14
		<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
15
	</properties>
16
17
18
19
20
21

	<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
22
	<dependencies>
Eric Duminil's avatar
Eric Duminil committed
23

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

Matthias Betz's avatar
Matthias Betz committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
		<!-- 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>
	</dependencies>
	<build>
		<plugins>
52
			<!-- Is it really needed? -->
Matthias Betz's avatar
Matthias Betz committed
53
54
55
56
57
58
59
60
61
62
63
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
Eric Duminil's avatar
Eric Duminil committed
64
							<outputDirectory>${project.build.directory}/lib</outputDirectory>
Matthias Betz's avatar
Matthias Betz committed
65
66
67
68
						</configuration>
					</execution>
				</executions>
			</plugin>
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91

			<!-- Gets info from git, e.g. hash and datetime -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>1.4</version>
				<executions>
					<execution>
						<phase>validate</phase>
						<goals>
							<goal>create</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<timestampFormat>{0,date,yyyyMMdd}</timestampFormat>
					<shortRevisionLength>7</shortRevisionLength>
					<doCheck>false</doCheck>
					<doUpdate>false</doUpdate>
				</configuration>
			</plugin>

			<!-- Packs everything in a zip -->
Matthias Betz's avatar
Matthias Betz committed
92
93
94
95
96
97
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
Eric Duminil's avatar
Eric Duminil committed
98
							<classpathPrefix>lib/</classpathPrefix>
Matthias Betz's avatar
Matthias Betz committed
99
100
101
102
103
104
							<mainClass>eu.simstadt.regionchooser.RegionChooserFX</mainClass>
						</manifest>
					</archive>
					<descriptors>
						<descriptor>${basedir}/buildConfig/assemblyDesc.xml</descriptor>
					</descriptors>
105
106
					<finalName>RegionChooser_${project.version}_${scmBranch}_${timestamp}_${buildNumber}</finalName>
					<appendAssemblyId>false</appendAssemblyId>
Matthias Betz's avatar
Matthias Betz committed
107
108
109
110
111
112
113
114
115
116
117
118
119
120
				</configuration>
				<executions>
					<execution>
						<id>make-assembly</id> <!-- this is used for inheritance merges -->
						<phase>package</phase> <!-- bind to the packaging phase -->
						<goals>
							<goal>single</goal>
						</goals>
					</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
125
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
Eric Duminil's avatar
Eric Duminil committed
126
							<classpathPrefix>lib/</classpathPrefix>
Matthias Betz's avatar
Matthias Betz committed
127
128
							<mainClass>eu.simstadt.regionchooser.RegionChooserFX</mainClass>
						</manifest>
129
130
						<manifestEntries>
							<Implementation-URL>http://simstadt.hft-stuttgart.de/</Implementation-URL>
Eric Duminil's avatar
Eric Duminil committed
131
132
							<Implementation-Version>${project.version} (${scmBranch}, rev.
								${buildNumber}, ${timestamp})</Implementation-Version>
133
						</manifestEntries>
Matthias Betz's avatar
Matthias Betz committed
134
135
136
					</archive>
				</configuration>
			</plugin>
Matthias Betz's avatar
Matthias Betz committed
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
177
178
			<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
179

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

					<!-- 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
193
</project>