|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<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>wdcy.cc</groupId>
|
|
|
|
<artifactId>spring-oauth-server</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<name>spring-oauth-server</name>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
<description>Spring Oauth Server (WDCY)</description>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<spring.version>3.1.1.RELEASE</spring.version>
|
|
|
|
<spring.security.version>3.1.0.RELEASE</spring.security.version>
|
|
|
|
<aspectj.version>1.6.10</aspectj.version>
|
|
|
|
<mybatis.version>3.2.1</mybatis.version>
|
|
|
|
|
|
|
|
<!--jdbc execute sql config-->
|
|
|
|
<jdbc.driver>com.mysql.jdbc.Driver</jdbc.driver>
|
|
|
|
<jdbc.url>jdbc:mysql://localhost:3306/wdcy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8</jdbc.url>
|
|
|
|
<jdbc.user>wdcy</jdbc.user>
|
|
|
|
<jdbc.pass>wdcy</jdbc.pass>
|
|
|
|
<!--if do not use execute sql, change the value to true-->
|
|
|
|
<jdbc.execute.skip>false</jdbc.execute.skip>
|
|
|
|
<test.skip>false</test.skip>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<ciManagement>
|
|
|
|
<system>Jenkins</system>
|
|
|
|
<url>https://honyee.ci.cloudbees.com/</url>
|
|
|
|
</ciManagement>
|
|
|
|
|
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<name>shengzhao</name>
|
|
|
|
<email>shengzhao@wdcy.cc</email>
|
|
|
|
</developer>
|
|
|
|
<!--more developer-->
|
|
|
|
</developers>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<finalName>spring-oauth-server</finalName>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>2.3.2</version>
|
|
|
|
<configuration>
|
|
|
|
<encoding>utf-8</encoding>
|
|
|
|
<source>1.7</source>
|
|
|
|
<target>1.7</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<version>2.0.2</version>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifestEntries>
|
|
|
|
<Implementation-BuildNumber>
|
|
|
|
${project.version}
|
|
|
|
</Implementation-BuildNumber>
|
|
|
|
<Specification-Vendor>
|
|
|
|
wdcy.cc
|
|
|
|
</Specification-Vendor>
|
|
|
|
<Implementation-Vendor>
|
|
|
|
wdcy.cc
|
|
|
|
</Implementation-Vendor>
|
|
|
|
<Implementation-Title>
|
|
|
|
${project.name}
|
|
|
|
</Implementation-Title>
|
|
|
|
<Implementation-Version>
|
|
|
|
${project.version}
|
|
|
|
</Implementation-Version>
|
|
|
|
</manifestEntries>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>sql-maven-plugin</artifactId>
|
|
|
|
<version>1.4</version>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
<version>5.1.6</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
<driver>${jdbc.driver}</driver>
|
|
|
|
<url>${jdbc.url}</url>
|
|
|
|
<username>${jdbc.user}</username>
|
|
|
|
<password>${jdbc.pass}</password>
|
|
|
|
<skip>${jdbc.execute.skip}</skip>
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>init db</id>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>execute</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<url>${jdbc.url}</url>
|
|
|
|
<autocommit>true</autocommit>
|
|
|
|
<srcFiles>
|
|
|
|
<srcFile>others/database/initial_db.ddl</srcFile>
|
|
|
|
<srcFile>others/database/oauth.ddl</srcFile>
|
|
|
|
</srcFiles>
|
|
|
|
<onError>continue</onError>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
|
|
|
<skip>${test.skip}</skip>
|
|
|
|
<forkMode>none</forkMode>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Test.java</include>
|
|
|
|
</includes>
|
|
|
|
<systemProperties>
|
|
|
|
<property>
|
|
|
|
<name>jdbc.url</name>
|
|
|
|
<value>${jdbc.url}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>jdbc.username</name>
|
|
|
|
<value>${jdbc.user}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>jdbc.password</name>
|
|
|
|
<value>${jdbc.pass}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*</include>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<!--exclude file list-->
|
|
|
|
<exclude>database.properties</exclude>
|
|
|
|
<exclude>mail.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- provided dependency -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
|
|
<artifactId>jsp-api</artifactId>
|
|
|
|
<version>2.1</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!--public compile dependencies-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sf.ehcache</groupId>
|
|
|
|
<artifactId>ehcache-web</artifactId>
|
|
|
|
<version>2.0.4</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>opensymphony</groupId>
|
|
|
|
<artifactId>sitemesh</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
|
<artifactId>aspectjrt</artifactId>
|
|
|
|
<version>${aspectj.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
|
<artifactId>aspectjweaver</artifactId>
|
|
|
|
<version>${aspectj.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-dbcp</groupId>
|
|
|
|
<artifactId>commons-dbcp</artifactId>
|
|
|
|
<version>1.4</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
</dependency>
|
|
|
|
<!--spring-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-aop</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-beans</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-context</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--<dependency>-->
|
|
|
|
<!--<groupId>org.springframework</groupId>-->
|
|
|
|
<!--<artifactId>spring-orm</artifactId>-->
|
|
|
|
<!--<version>${spring.version}</version>-->
|
|
|
|
<!--</dependency>-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-tx</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-expression</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-web</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-context-support</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--spring security-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-core</artifactId>
|
|
|
|
<version>${spring.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-web</artifactId>
|
|
|
|
<version>${spring.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-taglibs</artifactId>
|
|
|
|
<version>${spring.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-acl</artifactId>
|
|
|
|
<version>${spring.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-crypto</artifactId>
|
|
|
|
<version>${spring.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-config</artifactId>
|
|
|
|
<version>${spring.security.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security.oauth</groupId>
|
|
|
|
<artifactId>spring-security-oauth2</artifactId>
|
|
|
|
<version>1.0.5.RELEASE</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
<version>5.1.6</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
|
<version>1.0.13</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.logback-extensions</groupId>
|
|
|
|
<artifactId>logback-ext-spring</artifactId>
|
|
|
|
<version>0.1.2-SNAPSHOT</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>jul-to-slf4j</artifactId>
|
|
|
|
<version>1.7.5</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!--mybatis-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
|
<version>${mybatis.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
|
<version>1.1.1</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>jstl</artifactId>
|
|
|
|
<version>1.1.2</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>taglibs</groupId>
|
|
|
|
<artifactId>standard</artifactId>
|
|
|
|
<version>1.1.2</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!--public test dependencies-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testng</groupId>
|
|
|
|
<artifactId>testng</artifactId>
|
|
|
|
<version>6.1.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>basedir</id>
|
|
|
|
<url>file://${project.basedir}/lib/</url>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
</project>
|