2018-11-12 13:21:15 +01:00
<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 > ch.ethz.seb</groupId>
<artifactId > seb-server</artifactId>
2018-11-13 13:18:45 +01:00
<version > 0.1.0-SNAPSHOT</version>
2018-11-12 13:21:15 +01:00
<name > seb-server</name>
<description > web-service for SEB maintenance and monitoring active SEB sessions</description>
2018-11-15 16:39:17 +01:00
<parent >
2018-11-12 13:21:15 +01:00
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-parent</artifactId>
2018-11-15 11:24:18 +01:00
<version > 2.1.0.RELEASE</version>
2018-11-12 13:21:15 +01:00
</parent>
<packaging > jar</packaging>
<properties >
<project.build.sourceEncoding > UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding > UTF-8</project.reporting.outputEncoding>
</properties>
2018-11-19 12:28:30 +01:00
<!-- NOTE: There currently are two profiles, a default one to build on
Java 11 (from eclipse and command-line) and one to build still on Java 8
to support the Jenkins build on CI-Server that still no Java 11 installed -->
2018-11-19 11:28:11 +01:00
<profiles >
<profile >
<id > Java 11</id>
<activation >
<activeByDefault > true</activeByDefault>
</activation>
<properties >
<java.version > 11</java.version>
</properties>
<build >
<plugins >
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-compiler-plugin</artifactId>
<configuration >
<release > ${java.version}</release>
</configuration>
</plugin>
</plugins>
</build>
<dependencies >
<dependency >
<groupId > org.glassfish.jaxb</groupId>
<artifactId > jaxb-runtime</artifactId>
2018-11-19 12:28:30 +01:00
<version > 2.4.0-b180830.0438</version> <!-- $NO - MVN - MAN - VER$ --> <!-- TODO move to stable version when available -->
2018-11-19 11:28:11 +01:00
</dependency>
</dependencies>
</profile>
2018-11-19 12:28:30 +01:00
2018-11-19 11:28:11 +01:00
<profile >
<id > let_reporting</id>
<properties >
<java.version > 1.8</java.version>
</properties>
<build >
<plugins >
2018-11-19 12:28:30 +01:00
2018-11-19 11:28:11 +01:00
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-compiler-plugin</artifactId>
<configuration >
<source > 1.8</source>
<target > 1.8</target>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-pmd-plugin</artifactId>
<version > 3.10.0</version>
<configuration >
<skipEmptyReport > false</skipEmptyReport>
<failOnViolation > false</failOnViolation>
<targetJdk > ${java.version}</targetJdk>
<linkXRef > false</linkXRef>
2018-11-19 12:28:30 +01:00
<excludes >
<exclude > .*/batis.mapper/*.*</exclude>
<exclude > .*/batis.model/*.*</exclude>
</excludes>
2018-11-19 11:28:11 +01:00
</configuration>
<executions >
<execution >
<goals >
<goal > check</goal>
<goal > cpd-check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.codehaus.mojo</groupId>
<artifactId > findbugs-maven-plugin</artifactId>
<version > 3.0.4</version>
<configuration >
<effort > Max</effort>
<failOnError > false</failOnError>
<threshold > Low</threshold>
<xmlOutput > true</xmlOutput>
2018-11-19 12:28:30 +01:00
<excludeFilterFile > findbugs-excludes.xml</excludeFilterFile>
2018-11-19 11:28:11 +01:00
</configuration>
<executions >
<execution >
<id > analyze-compile</id>
<phase > compile</phase>
<goals >
<goal > check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.jacoco</groupId>
<artifactId > jacoco-maven-plugin</artifactId>
<version > 0.8.2</version>
<configuration >
<includes >
<include > ch/ethz/seb/sebserver/*</include>
</includes>
</configuration>
<executions >
<execution >
<id > default-prepare-agent</id>
<goals >
<goal > prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
2018-11-12 13:21:15 +01:00
2018-11-15 16:29:49 +01:00
<build >
2018-11-12 13:21:15 +01:00
<plugins >
<plugin >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-maven-plugin</artifactId>
<executions >
<execution >
<goals >
<goal > repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2018-11-15 16:39:17 +01:00
2018-11-13 11:29:33 +01:00
<dependencies >
<!-- Data Base -->
<dependency >
<groupId > org.mariadb.jdbc</groupId>
<artifactId > mariadb-java-client</artifactId>
</dependency>
2018-11-15 16:39:17 +01:00
2018-11-13 11:29:33 +01:00
<!-- MyBatis -->
<dependency >
<groupId > org.mybatis</groupId>
<artifactId > mybatis</artifactId>
<version > 3.4.6</version>
</dependency>
<dependency >
<groupId > org.mybatis.dynamic-sql</groupId>
<artifactId > mybatis-dynamic-sql</artifactId>
<version > 1.1.0</version>
</dependency>
<dependency >
<groupId > org.mybatis</groupId>
<artifactId > mybatis-spring</artifactId>
<version > 1.3.2</version>
</dependency>
2018-11-15 16:39:17 +01:00
2018-11-13 11:29:33 +01:00
<!-- Spring / Spring Boot -->
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-web</artifactId>
</dependency>
2018-11-14 13:58:27 +01:00
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-actuator</artifactId>
</dependency>
2018-11-13 11:29:33 +01:00
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-tomcat</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-websocket</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-security</artifactId>
</dependency>
<!-- NOTE since org.springframework.security.oauth is not fully migrated
to spring-boot-starter-security we have to declare a separate version here.
This refers to the latest version of spring-security-oauth2 and should be
compatible with the overall version of spring boot SEE: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0.0-M5-Release-Notes#oauth-20-support
TODO: once spring-security-oauth2 is fully migrated we should be able to
remove this dependency -->
<dependency >
<groupId > org.springframework.security.oauth</groupId>
<artifactId > spring-security-oauth2</artifactId>
<version > [2.3.4,)</version>
</dependency>
<dependency >
<groupId > org.springframework.security</groupId>
<artifactId > spring-security-jwt</artifactId>
<version > 1.0.9.RELEASE</version>
</dependency>
2018-11-15 16:39:17 +01:00
2018-11-13 11:29:33 +01:00
<!-- Misc -->
<dependency >
<groupId > joda-time</groupId>
<artifactId > joda-time</artifactId>
</dependency>
<dependency >
<groupId > com.fasterxml.jackson.datatype</groupId>
<artifactId > jackson-datatype-joda</artifactId>
</dependency>
<dependency >
<groupId > org.apache.commons</groupId>
<artifactId > commons-lang3</artifactId>
</dependency>
2018-11-15 16:39:17 +01:00
2018-11-13 11:29:33 +01:00
<!-- Testing and Code generation -->
<dependency >
<groupId > junit</groupId>
<artifactId > junit</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-test</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.springframework.security</groupId>
<artifactId > spring-security-test</artifactId>
<scope > test</scope>
</dependency>
</dependencies>
2018-11-15 16:39:17 +01:00
2018-11-12 12:47:34 +01:00
</project>