2016-04-21 07:28:28 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2018-04-26 08:37:47 -04:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2017-05-12 14:32:54 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>spring-security-rest</artifactId>
|
|
|
|
<version>0.1-SNAPSHOT</version>
|
|
|
|
|
|
|
|
<name>spring-security-rest</name>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
|
|
<parent>
|
2018-05-05 16:30:00 -04:00
|
|
|
<groupId>com.baeldung</groupId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<artifactId>parent-spring-4</artifactId>
|
2018-05-05 16:30:00 -04:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2018-06-02 10:44:15 -04:00
|
|
|
<relativePath>../parent-spring-4</relativePath>
|
2018-05-05 16:30:00 -04:00
|
|
|
</parent>
|
2017-05-12 14:32:54 -04:00
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<!-- Spring Security -->
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-web</artifactId>
|
|
|
|
<version>${org.springframework.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-config</artifactId>
|
|
|
|
<version>${org.springframework.security.version}</version>
|
|
|
|
</dependency>
|
2018-04-26 08:37:47 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<!-- Spring -->
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-core</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
|
<groupId>commons-logging</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-context</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-jdbc</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-beans</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-aop</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-tx</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-expression</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-web</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-webmvc</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Spring HATEOAS -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.hateoas</groupId>
|
|
|
|
<artifactId>spring-hateoas</artifactId>
|
|
|
|
<version>${org.springframework.hateoas.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- web -->
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
|
<version>${javax.servlet-api.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>jstl</artifactId>
|
|
|
|
<version>${jstl.version}</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.validation</groupId>
|
|
|
|
<artifactId>validation-api</artifactId>
|
|
|
|
<version>${javax.validation.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- marshalling -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
<version>${jackson.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- util -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<version>${guava.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- test scoped -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-test</artifactId>
|
2018-06-02 10:44:15 -04:00
|
|
|
<version>${spring.version}</version>
|
2017-05-12 14:32:54 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-test</artifactId>
|
|
|
|
<version>${org.springframework.security.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.jayway.restassured</groupId>
|
|
|
|
<artifactId>rest-assured</artifactId>
|
|
|
|
<version>${rest-assured.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
|
<groupId>commons-logging</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- swagger -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
|
<version>${springfox-swagger.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
|
<version>${springfox-swagger.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-fileupload</groupId>
|
|
|
|
<artifactId>commons-fileupload</artifactId>
|
|
|
|
<version>${commons-fileupload.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<finalName>spring-security-rest</finalName>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<version>${maven-war-plugin.version}</version>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.cargo</groupId>
|
|
|
|
<artifactId>cargo-maven2-plugin</artifactId>
|
|
|
|
<version>${cargo-maven2-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<container>
|
|
|
|
<containerId>jetty8x</containerId>
|
|
|
|
<type>embedded</type>
|
|
|
|
<systemProperties>
|
|
|
|
<!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
|
|
|
|
</systemProperties>
|
|
|
|
</container>
|
|
|
|
<configuration>
|
|
|
|
<properties>
|
|
|
|
<cargo.servlet.port>8082</cargo.servlet.port>
|
|
|
|
</properties>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>live</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.cargo</groupId>
|
|
|
|
<artifactId>cargo-maven2-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>start-server</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>stop-server</id>
|
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>stop</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>none</exclude>
|
|
|
|
</excludes>
|
|
|
|
<includes>
|
|
|
|
<include>**/*LiveTest.java</include>
|
|
|
|
</includes>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<webTarget>cargo</webTarget>
|
|
|
|
</systemPropertyVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- Spring -->
|
2018-06-02 10:44:15 -04:00
|
|
|
<org.springframework.security.version>4.2.6.RELEASE</org.springframework.security.version>
|
2017-05-12 14:32:54 -04:00
|
|
|
<org.springframework.hateoas.version>0.21.0.RELEASE</org.springframework.hateoas.version>
|
|
|
|
|
|
|
|
<!-- persistence -->
|
|
|
|
<hibernate.version>5.2.5.Final</hibernate.version>
|
|
|
|
<mysql-connector-java.version>5.1.40</mysql-connector-java.version>
|
|
|
|
|
|
|
|
<!-- various -->
|
|
|
|
<hibernate-validator.version>5.3.3.Final</hibernate-validator.version>
|
|
|
|
<javax.servlet-api.version>3.1.0</javax.servlet-api.version>
|
|
|
|
<javax.validation.version>1.1.0.Final</javax.validation.version>
|
|
|
|
<jstl.version>1.2</jstl.version>
|
|
|
|
<jackson.version>2.8.5</jackson.version>
|
|
|
|
|
|
|
|
<!-- util -->
|
|
|
|
<guava.version>19.0</guava.version>
|
|
|
|
<commons-lang3.version>3.5</commons-lang3.version>
|
|
|
|
<commons-fileupload.version>1.3.2</commons-fileupload.version>
|
|
|
|
|
|
|
|
<!-- testing -->
|
|
|
|
<rest-assured.version>2.9.0</rest-assured.version>
|
|
|
|
|
|
|
|
<!-- swagger -->
|
2017-07-15 11:26:13 -04:00
|
|
|
<springfox-swagger.version>2.7.0</springfox-swagger.version>
|
2017-05-12 14:32:54 -04:00
|
|
|
|
|
|
|
<httpcore.version>4.4.5</httpcore.version>
|
|
|
|
<httpclient.version>4.5.2</httpclient.version>
|
|
|
|
|
|
|
|
<rest-assured.version>2.9.0</rest-assured.version>
|
|
|
|
|
|
|
|
<!-- Maven plugins -->
|
|
|
|
<maven-war-plugin.version>2.6</maven-war-plugin.version>
|
|
|
|
<cargo-maven2-plugin.version>1.6.1</cargo-maven2-plugin.version>
|
|
|
|
|
|
|
|
</properties>
|
2013-05-26 11:42:50 -04:00
|
|
|
|
2016-04-06 23:50:08 -04:00
|
|
|
</project>
|