pom.xml 4.67 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
			<!-- 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
74
75
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
76
				<version>3.2.0</version>
Matthias Betz's avatar
Matthias Betz committed
77
78
				<executions>
					<execution>
79
80
						<id>regionchooser</id>
						<phase>package</phase>
Matthias Betz's avatar
Matthias Betz committed
81
82
83
						<goals>
							<goal>single</goal>
						</goals>
84
85
86
87
88
89
90
						<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
91
92
93
94
95
96
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
97
				<version>3.2.0</version>
Matthias Betz's avatar
Matthias Betz committed
98
99
100
				<configuration>
					<archive>
						<manifest>
101
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
Matthias Betz's avatar
Matthias Betz committed
102
103
							<mainClass>eu.simstadt.regionchooser.RegionChooserFX</mainClass>
						</manifest>
104
105
						<manifestEntries>
							<Implementation-URL>http://simstadt.hft-stuttgart.de/</Implementation-URL>
106
							<Implementation-Version>${project.version} (${scmBranch}, rev. ${buildNumber}, ${timestamp})</Implementation-Version>
107
						</manifestEntries>
Matthias Betz's avatar
Matthias Betz committed
108
109
110
					</archive>
				</configuration>
			</plugin>
Matthias Betz's avatar
Matthias Betz committed
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
			<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
153

Matthias Betz's avatar
Matthias Betz committed
154
155
156
157
158
159
160
161
162
163
164
165
166

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