pom.xml 4.8 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>
Eric Duminil's avatar
Eric Duminil committed
7
	<version>0.3.0-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

Eric Duminil's avatar
Eric Duminil committed
30
31
32
33
34
35
		<dependency>
			<groupId>info.picocli</groupId>
			<artifactId>picocli</artifactId>
			<version>4.6.3</version>
		</dependency>

Matthias Betz's avatar
Matthias Betz committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
		<!-- 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>
57
			<!-- Gets info from git, e.g. hash and datetime -->
Matthias Betz's avatar
Matthias Betz committed
58
			<plugin>
59
60
61
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>1.4</version>
Matthias Betz's avatar
Matthias Betz committed
62
63
				<executions>
					<execution>
64
						<phase>validate</phase>
Matthias Betz's avatar
Matthias Betz committed
65
						<goals>
66
							<goal>create</goal>
Matthias Betz's avatar
Matthias Betz committed
67
68
69
						</goals>
					</execution>
				</executions>
70
71
72
73
74
75
				<configuration>
					<timestampFormat>{0,date,yyyyMMdd}</timestampFormat>
					<shortRevisionLength>7</shortRevisionLength>
					<doCheck>false</doCheck>
					<doUpdate>false</doUpdate>
				</configuration>
Matthias Betz's avatar
Matthias Betz committed
76
			</plugin>
77
78

			<!-- Packs everything in a zip -->
Matthias Betz's avatar
Matthias Betz committed
79
80
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
81
				<version>3.2.0</version>
Matthias Betz's avatar
Matthias Betz committed
82
83
				<executions>
					<execution>
84
85
						<id>regionchooser</id>
						<phase>package</phase>
Matthias Betz's avatar
Matthias Betz committed
86
87
88
						<goals>
							<goal>single</goal>
						</goals>
89
90
91
92
93
94
95
						<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
96
97
98
99
100
101
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
102
				<version>3.2.0</version>
Matthias Betz's avatar
Matthias Betz committed
103
104
105
				<configuration>
					<archive>
						<manifest>
106
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
Matthias Betz's avatar
Matthias Betz committed
107
108
							<mainClass>eu.simstadt.regionchooser.RegionChooserFX</mainClass>
						</manifest>
109
110
						<manifestEntries>
							<Implementation-URL>http://simstadt.hft-stuttgart.de/</Implementation-URL>
111
							<Implementation-Version>${project.version} (${scmBranch}, rev. ${buildNumber}, ${timestamp})</Implementation-Version>
112
						</manifestEntries>
Matthias Betz's avatar
Matthias Betz committed
113
114
115
					</archive>
				</configuration>
			</plugin>
Matthias Betz's avatar
Matthias Betz committed
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
153
154
155
156
157
			<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
158

Matthias Betz's avatar
Matthias Betz committed
159
160
161
162
163
164
165
166
167
168
169
170
171

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