pom.xml 15.8 KB
Newer Older
1 2 3 4
<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>de.thm.arsnova</groupId>
5
	<artifactId>arsnova-backend</artifactId>
6
	<version>3.0.0-SNAPSHOT</version>
7
	<packaging>war</packaging>
8

9
	<properties>
10
		<io.spring.platform-version>Brussels-SR5</io.spring.platform-version>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
11
		<io.netty-version>4.1.16.Final</io.netty-version>
12
		<org.aspectj-version>1.8.10</org.aspectj-version>
13
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
14
		<timestamp>${maven.build.timestamp}</timestamp>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
15
		<sonar.language>java</sonar.language>
16 17 18
		<mobile.production.path>../arsnova-mobile/src/main/webapp/build/production/ARSnova</mobile.production.path>
		<mobile.testing.path>../arsnova-mobile/src/main/webapp/build/testing/ARSnova</mobile.testing.path>
		<mobile.path>${mobile.production.path}</mobile.path>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
19
		<customization.path>${basedir}/../arsnova-customization/src/main/webapp</customization.path>
20
	</properties>
21

22 23 24 25
	<developers>
		<developer>
			<name>Klaus Quibeldey-Cirkel</name>
			<organization>Technische Hochschule Mittelhessen</organization>
26
			<organizationUrl>https://www.thm.de</organizationUrl>
27
		</developer>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
28 29 30
		<developer>
			<name>Daniel Gerhardt</name>
			<organization>Technische Hochschule Mittelhessen</organization>
31
			<organizationUrl>https://www.thm.de</organizationUrl>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
32 33
			<email>daniel.gerhardt@mni.thm.de</email>
		</developer>
34
		<developer>
35
			<name>Tom Käsler</name>
36
			<organization>Technische Hochschule Mittelhessen</organization>
37
			<organizationUrl>https://www.thm.de</organizationUrl>
38
			<email>tom.kaesler@mni.thm.de</email>
39 40
		</developer>
	</developers>
41

42
	<issueManagement>
43 44
		<system>GitLab</system>
		<url>https://git.thm.de/arsnova/arsnova/issues</url>
45 46 47
	</issueManagement>

	<ciManagement>
48 49
		<system>GitLab CI</system>
		<url>https://git.thm.de/arsnova/arsnova-backend/pipelines</url>
50 51 52
	</ciManagement>

	<scm>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
53
		<url>https://github.com/thm-projects/arsnova-backend</url>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
54
		<connection>scm:git:https://github.com/thm-projects/arsnova-backend.git</connection>
55
		<developerConnection>scm:git:ssh://git@git.thm.de/arsnova/arsnova-backend.git</developerConnection>
56
	</scm>
57

58 59 60
	<licenses>
		<license>
			<name>GNU General Public License v3.0 or later</name>
61
			<url>https://www.gnu.org/licenses/gpl.txt</url>
62 63
		</license>
	</licenses>
64

65 66 67 68 69
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
70
				<version>2.9</version>
71 72 73 74
				<configuration>
					<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
					<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
				</configuration>
75 76 77 78
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
79
				<version>2.10.4</version>
80 81
				<configuration></configuration>
			</plugin>
82 83
		</plugins>
	</reporting>
84

85 86
	<repositories>
		<repository>
87
			<id>thmrepo</id>
88
			<name>THM Maven Repository</name>
89
			<url>https://maven.mni.thm.de/content/repositories</url>
90
		</repository>
91
		<repository>
92
			<id>thmreposnapshots</id>
93
			<name>THM Maven Snapshot Repository</name>
94
			<url>https://maven.mni.thm.de/content/repositories/snapshots</url>
95
		</repository>
96 97 98
		<repository>
			<id>thmmirror</id>
			<name>THM Maven Mirror</name>
99
			<url>https://maven.mni.thm.de/content/groups/public</url>
100
		</repository>
101
		<repository>
102
			<id>sonatypesnapshots</id>
103 104 105 106
			<name>Sonatype Snapshot Repository</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
		</repository>
	</repositories>
107

108 109 110 111 112 113 114 115 116
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>io.spring.platform</groupId>
				<artifactId>platform-bom</artifactId>
				<version>${io.spring.platform-version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
117 118 119 120 121 122 123
			<dependency>
				<groupId>io.netty</groupId>
				<artifactId>netty-bom</artifactId>
				<version>${io.netty-version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
124 125 126
		</dependencies>
	</dependencyManagement>

127
	<dependencies>
128 129 130 131
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
		</dependency>
132 133 134 135 136 137
		<!-- While commons-logging is not a required dependency, AJC fails without it. -->
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<scope>provided</scope>
		</dependency>
138
		<!-- Spring -->
139
		<dependency>
140 141 142 143 144 145 146 147 148
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<exclusions>
				<!-- Exclude Commons Logging in favor of SLF4j -->
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
149 150
		</dependency>
		<dependency>
151 152
			<groupId>org.springframework</groupId>
			<artifactId>spring-webmvc</artifactId>
153
		</dependency>
154 155 156 157
		<dependency>
			<groupId>org.springframework.data</groupId>
			<artifactId>spring-data-commons</artifactId>
		</dependency>
158 159 160 161
		<dependency>
			<groupId>org.springframework.integration</groupId>
			<artifactId>spring-integration-mail</artifactId>
		</dependency>
162
		<!-- Security -->
163 164 165 166
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-aspects</artifactId>
		</dependency>
167 168 169 170 171 172
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-config</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.security</groupId>
173
			<artifactId>spring-security-web</artifactId>
174 175
		</dependency>
		<dependency>
176 177
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-taglibs</artifactId>
178 179
		</dependency>
		<dependency>
180 181
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-cas</artifactId>
182 183 184 185 186 187 188
			<exclusions>
				<!-- Exclude log4j-over-slf4j to prevent delegation loop -->
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>log4j-over-slf4j</artifactId>
				</exclusion>
			</exclusions>
189
		</dependency>
190 191 192 193
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-ldap</artifactId>
		</dependency>
194 195 196 197
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</dependency>
198 199 200 201 202 203
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
204
			<artifactId>slf4j-log4j12</artifactId>
205
		</dependency>
206
		<dependency>
207 208 209
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
		</dependency>
210 211 212 213 214 215 216 217 218 219
		<dependency>
			<groupId>org.ektorp</groupId>
			<artifactId>org.ektorp</artifactId>
			<version>1.4.4</version>
		</dependency>
		<dependency>
			<groupId>org.ektorp</groupId>
			<artifactId>org.ektorp.spring</artifactId>
			<version>1.4.4</version>
		</dependency>
220 221
		<dependency>
			<groupId>javax.servlet</groupId>
222
			<artifactId>javax.servlet-api</artifactId>
223
			<scope>provided</scope>
224
		</dependency>
225
		<dependency>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
226 227
			<groupId>com.sun.mail</groupId>
			<artifactId>javax.mail</artifactId>
228
			<version>1.6.0</version>
229
		</dependency>
230
		<dependency>
231 232
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
233
			<scope>test</scope>
234
		</dependency>
235 236 237 238 239
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-test</artifactId>
			<scope>test</scope>
		</dependency>
240 241 242 243 244
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
245
		<dependency>
246 247
			<groupId>org.pac4j</groupId>
			<artifactId>spring-security-pac4j</artifactId>
248
			<version>3.0.0</version>
249 250 251 252
		</dependency>
		<dependency>
			<groupId>org.pac4j</groupId>
			<artifactId>pac4j-oauth</artifactId>
253
			<version>2.1.0</version>
254
		</dependency>
255 256 257
		<dependency>
			<groupId>com.corundumstudio.socketio</groupId>
			<artifactId>netty-socketio</artifactId>
258
			<version>1.7.13</version>
259
		</dependency>
260 261 262 263 264
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<scope>test</scope>
		</dependency>
265 266
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
267
			<artifactId>jackson-annotations</artifactId>
268 269 270 271
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
272 273 274 275
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
276
		</dependency>
277 278 279 280 281 282 283 284 285 286 287 288
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</artifactId>
		</dependency>
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aspects</artifactId>
		</dependency>
289 290 291
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
292
			<version>1.10.19</version>
293 294
			<scope>test</scope>
		</dependency>
295 296 297
		<dependency>
			<groupId>de.thm.arsnova.connector</groupId>
			<artifactId>connector-client</artifactId>
298
			<version>0.73.0</version>
299
		</dependency>
300 301 302 303 304
		<dependency>
			<groupId>com.jayway.jsonpath</groupId>
			<artifactId>json-path-assert</artifactId>
			<scope>test</scope>
		</dependency>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
305 306 307 308 309 310 311 312 313 314
		<dependency>
			<groupId>org.apache.directory.server</groupId>
			<artifactId>apacheds-core</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.directory.server</groupId>
			<artifactId>apacheds-server-jndi</artifactId>
			<scope>runtime</scope>
		</dependency>
315
		<dependency>
316 317
			<groupId>io.swagger</groupId>
			<artifactId>swagger-annotations</artifactId>
318
			<version>1.5.16</version>
319
		</dependency>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
320
		<dependency>
321 322 323
			<groupId>com.codahale.metrics</groupId>
			<artifactId>metrics-annotation</artifactId>
			<version>3.0.2</version>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
324
		</dependency>
325 326 327
		<dependency>
			<groupId>org.checkerframework</groupId>
			<artifactId>checker-qual</artifactId>
328
			<version>2.2.0</version>
329
		</dependency>
330
	</dependencies>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
331

332
	<build>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
				<excludes>
					<exclude>version.properties</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
				<includes>
					<include>version.properties</include>
				</includes>
			</resource>
		</resources>

350
		<plugins>
351 352 353 354 355 356 357 358 359 360 361 362 363
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>aspectj-maven-plugin</artifactId>
				<version>1.10</version>
				<configuration>
					<complianceLevel>1.8</complianceLevel>
					<source>1.8</source>
					<target>1.8</target>
					<aspectLibraries>
						<aspectLibrary>
							<groupId>org.springframework</groupId>
							<artifactId>spring-aspects</artifactId>
						</aspectLibrary>
364 365 366 367
						<dependency>
							<groupId>org.springframework.security</groupId>
							<artifactId>spring-security-aspects</artifactId>
						</dependency>
368 369 370 371 372 373 374 375 376 377 378
					</aspectLibraries>
					<showWeaveInfo>true</showWeaveInfo>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<goal>test-compile</goal>
						</goals>
					</execution>
				</executions>
379 380 381 382 383 384 385 386 387 388 389 390
				<dependencies>
					<dependency>
						<groupId>org.aspectj</groupId>
						<artifactId>aspectjrt</artifactId>
						<version>${org.aspectj-version}</version>
					</dependency>
					<dependency>
						<groupId>org.aspectj</groupId>
						<artifactId>aspectjtools</artifactId>
						<version>${org.aspectj-version}</version>
					</dependency>
				</dependencies>
391
			</plugin>
392 393 394
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
395
				<version>3.7.0</version>
396
				<configuration>
397 398
					<source>1.8</source>
					<target>1.8</target>
399 400
				</configuration>
			</plugin>
401
			<plugin>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
402
				<groupId>org.eclipse.jetty</groupId>
403
				<artifactId>jetty-maven-plugin</artifactId>
404
				<version>9.4.7.v20170914</version>
405 406
				<configuration>
					<scanIntervalSeconds>1</scanIntervalSeconds>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
407
					<webApp>
408
						<overrideDescriptor>src/main/webapp/WEB-INF/web-dev.xml</overrideDescriptor>
409
						<webInfIncludeJarPattern>^$</webInfIncludeJarPattern>
410
					</webApp>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
411
					<contextHandlers>
412
						<contextHandler implementation="org.eclipse.jetty.maven.plugin.JettyWebAppContext">
Daniel Gerhardt's avatar
Daniel Gerhardt committed
413 414 415
							<contextPath>/mobile</contextPath>
							<resourceBase>${mobile.path}</resourceBase>
						</contextHandler>
416
						<contextHandler implementation="org.eclipse.jetty.maven.plugin.JettyWebAppContext">
Daniel Gerhardt's avatar
Daniel Gerhardt committed
417 418 419 420
							<contextPath>/customization</contextPath>
							<resourceBase>${customization.path}</resourceBase>
						</contextHandler>
					</contextHandlers>
421
				</configuration>
422
			</plugin>
423 424 425
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
426
				<version>3.6</version>
427 428 429 430
				<configuration>
					<locales>en</locales>
				</configuration>
			</plugin>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
431
			<plugin>
432
				<groupId>org.sonarsource.scanner.maven</groupId>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
433
				<artifactId>sonar-maven-plugin</artifactId>
434
				<version>3.3.0.603</version>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
435
			</plugin>
436 437 438
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
439
				<version>2.20.1</version>
440
			</plugin>
441
			<plugin>
442 443
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
444
				<version>0.7.9</version>
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
				<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>
				</executions>
460
			</plugin>
461 462 463
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
464
				<version>2.17</version>
465 466 467 468
				<configuration>
					<configLocation>ARSnova-checkstyle-checker.xml</configLocation>
				</configuration>
			</plugin>
469 470 471
			<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat7-maven-plugin</artifactId>
472
				<version>2.2</version>
473 474 475
				<configuration>
					<url>http://localhost:8080/manager/text</url>
					<server>arsnova</server>
476
					<path>/api</path>
477 478
				</configuration>
			</plugin>
479 480 481
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
482
				<version>3.1.0</version>
483
			</plugin>
484 485 486
			<plugin>
				<groupId>com.github.kongchen</groupId>
				<artifactId>swagger-maven-plugin</artifactId>
487
				<version>3.1.5</version>
488 489 490 491
				<configuration>
					<apiSources>
						<apiSource>
							<springmvc>true</springmvc>
492 493 494 495 496 497 498 499
							<locations>
								<location>de.thm.arsnova.controller</location>
								<location>de.thm.arsnova.entities</location>
							</locations>
							<schemes>
								<scheme>http</scheme>
								<scheme>https</scheme>
							</schemes>
Tom Käsler's avatar
Tom Käsler committed
500
							<basePath>/api</basePath>
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
							<info>
								<title>ARSnova API Documentation</title>
								<version>${project.version}</version>
								<description>This is the documentation of the ARSnova API</description>
								<contact>
									<email>info@arsnova.eu</email>
								</contact>
							</info>
							<swaggerDirectory>${project.build.directory}/classes</swaggerDirectory>
						</apiSource>
					</apiSources>
				</configuration>
				<executions>
					<execution>
						<phase>compile</phase>
						<goals>
							<goal>generate</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
522 523 524
			<plugin>
				<groupId>pl.project13.maven</groupId>
				<artifactId>git-commit-id-plugin</artifactId>
525
				<version>2.2.3</version>
Daniel Gerhardt's avatar
Daniel Gerhardt committed
526 527 528 529 530 531 532 533
				<executions>
					<execution>
						<goals>
							<goal>revision</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
534 535
		</plugins>
	</build>
536

Daniel Gerhardt's avatar
Daniel Gerhardt committed
537
	<name>ARSnova Backend</name>
538
	<description>ARSnova is a great audience response system</description>
539
	<url>https://arsnova.github.eu</url>
540 541
	<organization>
		<name>Technische Hochschule Mittelhessen</name>
542
		<url>https://www.thm.de</url>
543
	</organization>
544
</project>