|
@ -7,747 +7,4 @@
|
|
|
<version>1.0.0</version>
|
|
|
<packaging>pom</packaging>
|
|
|
<name>wlyy</name>
|
|
|
|
|
|
<properties>
|
|
|
<!-- 主要依赖库的版本定义 -->
|
|
|
<springside.version>4.2.3-GA</springside.version>
|
|
|
<spring.version>4.2.6.RELEASE</spring.version>
|
|
|
<hibernate.version>4.3.5.Final</hibernate.version>
|
|
|
<spring-data-jpa.version>1.6.0.RELEASE</spring-data-jpa.version>
|
|
|
<tomcat-jdbc.version>7.0.53</tomcat-jdbc.version>
|
|
|
<sitemesh.version>2.4.2</sitemesh.version>
|
|
|
<shiro.version>1.2.3</shiro.version>
|
|
|
<hibernate-validator.version>5.0.3.Final</hibernate-validator.version>
|
|
|
<jackson.version>2.4.0</jackson.version>
|
|
|
<aspectj.version>1.7.4</aspectj.version>
|
|
|
<slf4j.version>1.7.7</slf4j.version>
|
|
|
<logback.version>1.1.2</logback.version>
|
|
|
<commons-lang3.version>3.3.2</commons-lang3.version>
|
|
|
<guava.version>17.0</guava.version>
|
|
|
<junit.version>4.11</junit.version>
|
|
|
<assertj.version>1.6.1</assertj.version>
|
|
|
<mockito.version>1.9.5</mockito.version>
|
|
|
<selenium.version>2.42.2</selenium.version>
|
|
|
<jetty.version>7.6.15.v20140411</jetty.version>
|
|
|
<h2.version>1.3.176</h2.version>
|
|
|
|
|
|
<!-- Plugin的属性定义 -->
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<java.version>1.6</java.version>
|
|
|
|
|
|
<!-- 项目属性 -->
|
|
|
<!--
|
|
|
<jdbc.driver.groupId>com.h2database</jdbc.driver.groupId>
|
|
|
<jdbc.driver.artifactId>h2</jdbc.driver.artifactId>
|
|
|
<jdbc.driver.version>${h2.version}</jdbc.driver.version>
|
|
|
-->
|
|
|
<jdbc.driver.groupId>mysql</jdbc.driver.groupId>
|
|
|
<jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
|
|
|
<jdbc.driver.version>5.1.22</jdbc.driver.version>
|
|
|
</properties>
|
|
|
|
|
|
<prerequisites>
|
|
|
<maven>3.0.0</maven>
|
|
|
</prerequisites>
|
|
|
|
|
|
<!-- 设定插件仓库, 如有Nexus私服, 取消注释并指向正确的服务器地址.
|
|
|
<pluginRepositories>
|
|
|
<pluginRepository>
|
|
|
<id>nexus</id>
|
|
|
<name>Team Nexus Repository</name>
|
|
|
<url>http://localhost:8081/nexus/content/groups/public</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</pluginRepository>
|
|
|
</pluginRepositories>
|
|
|
-->
|
|
|
|
|
|
<!-- 依赖项定义 -->
|
|
|
<dependencies>
|
|
|
<!--Swagger-->
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
<version>2.4.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
<version>2.4.0</version>
|
|
|
</dependency>
|
|
|
<!--Spring-->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-context-support</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi</artifactId>
|
|
|
<version>3.15-beta1</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.axis</groupId>
|
|
|
<artifactId>axis</artifactId>
|
|
|
<version>1.4</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>axis</groupId>
|
|
|
<artifactId>axis-jaxrpc</artifactId>
|
|
|
<version>1.3</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
<version>4.5.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>sehrCrypto</groupId>
|
|
|
<artifactId>sehrCrypto</artifactId>
|
|
|
<version>1.0.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.jdom</groupId>
|
|
|
<artifactId>jdom</artifactId>
|
|
|
<version>1.1.3</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
<artifactId>bcprov-jdk16</artifactId>
|
|
|
<version>1.46</version>
|
|
|
</dependency>
|
|
|
<!-- Apache Commons fileupload -->
|
|
|
<dependency>
|
|
|
<groupId>commons-fileupload</groupId>
|
|
|
<artifactId>commons-fileupload</artifactId>
|
|
|
<version>1.2.1</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
<version>1.3.2</version>
|
|
|
</dependency>
|
|
|
<!-- SPRINGSIDE -->
|
|
|
<dependency>
|
|
|
<groupId>org.springside</groupId>
|
|
|
<artifactId>springside-core</artifactId>
|
|
|
<version>${springside.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- PERSISTENCE begin -->
|
|
|
<!-- hibernate -->
|
|
|
<dependency>
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
<artifactId>hibernate-entitymanager</artifactId>
|
|
|
<version>${hibernate.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.google.code.kaptcha</groupId>
|
|
|
<artifactId>kaptcha</artifactId>
|
|
|
<version>2.3</version>
|
|
|
</dependency>
|
|
|
<!-- spring data access -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
<artifactId>spring-data-jpa</artifactId>
|
|
|
<version>${spring-data-jpa.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- spring aop -->
|
|
|
<dependency>
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
<artifactId>aspectjrt</artifactId>
|
|
|
<version>${aspectj.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
<artifactId>aspectjweaver</artifactId>
|
|
|
<version>${aspectj.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- connection pool -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.tomcat</groupId>
|
|
|
<artifactId>tomcat-jdbc</artifactId>
|
|
|
<version>${tomcat-jdbc.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- jdbc driver -->
|
|
|
<dependency>
|
|
|
<groupId>${jdbc.driver.groupId}</groupId>
|
|
|
<artifactId>${jdbc.driver.artifactId}</artifactId>
|
|
|
<version>${jdbc.driver.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- PERSISTENCE end -->
|
|
|
|
|
|
<!-- WEB begin -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>opensymphony</groupId>
|
|
|
<artifactId>sitemesh</artifactId>
|
|
|
<version>${sitemesh.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>jstl</artifactId>
|
|
|
<version>1.2</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
<version>3.0.1</version>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<!-- WEB end -->
|
|
|
|
|
|
<!-- SECURITY begin -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
<artifactId>shiro-spring</artifactId>
|
|
|
<version>${shiro.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
<artifactId>shiro-ehcache</artifactId>
|
|
|
<version>${shiro.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>commons-codec</groupId>
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
<version>1.9</version>
|
|
|
</dependency>
|
|
|
<!-- SECURITY end -->
|
|
|
|
|
|
<!-- JSR303 BeanValidator -->
|
|
|
<dependency>
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
<artifactId>hibernate-validator</artifactId>
|
|
|
<version>${hibernate-validator.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- JSON begin -->
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
<version>${jackson.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
|
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
|
|
<version>${jackson.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.json</groupId>
|
|
|
<artifactId>json</artifactId>
|
|
|
<version>20160212</version>
|
|
|
</dependency>
|
|
|
<!-- JSON end -->
|
|
|
|
|
|
<!-- LOGGING begin -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
<version>${slf4j.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
<version>${logback.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 代码直接调用log4j会被桥接到slf4j -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
|
<version>${slf4j.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- 代码直接调用common-logging会被桥接到slf4j -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
|
<version>${slf4j.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- 代码直接调用java.util.logging会被桥接到slf4j -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>jul-to-slf4j</artifactId>
|
|
|
<version>${slf4j.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.googlecode.log4jdbc</groupId>
|
|
|
<artifactId>log4jdbc</artifactId>
|
|
|
<version>1.2</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- LOGGING end -->
|
|
|
|
|
|
<!-- GENERAL UTILS begin -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
<artifactId>guava</artifactId>
|
|
|
<version>${guava.version}</version>
|
|
|
</dependency>
|
|
|
<!-- GENERAL UTILS end -->
|
|
|
|
|
|
<!-- TEST begin -->
|
|
|
<dependency>
|
|
|
<groupId>org.springside</groupId>
|
|
|
<artifactId>springside-core</artifactId>
|
|
|
<version>${springside.version}</version>
|
|
|
<classifier>tests</classifier>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>${junit.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.assertj</groupId>
|
|
|
<artifactId>assertj-core</artifactId>
|
|
|
<version>${assertj.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.mockito</groupId>
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
<version>${mockito.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- selenium 2.0 -->
|
|
|
<dependency>
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
<artifactId>selenium-java</artifactId>
|
|
|
<version>${selenium.version}</version>
|
|
|
<scope>test</scope>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
<artifactId>selenium-htmlunit-driver</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
<artifactId>selenium-android-driver</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
<artifactId>selenium-iphone-driver</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
<artifactId>selenium-safari-driver</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>commons-logging</groupId>
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
<artifactId>selenium-remote-driver</artifactId>
|
|
|
<version>${selenium.version}</version>
|
|
|
<scope>test</scope>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>cglib</groupId>
|
|
|
<artifactId>cglib-nodep</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>commons-logging</groupId>
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- h2 如果生产数据库不是H2,解开下面的注释
|
|
|
<dependency>
|
|
|
<groupId>com.h2database</groupId>
|
|
|
<artifactId>h2</artifactId>
|
|
|
<version>${h2.version}</version>
|
|
|
</dependency>
|
|
|
-->
|
|
|
|
|
|
<!-- jetty -->
|
|
|
<dependency>
|
|
|
<groupId>org.eclipse.jetty.aggregate</groupId>
|
|
|
<artifactId>jetty-webapp</artifactId>
|
|
|
<version>${jetty.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
<artifactId>jetty-jsp</artifactId>
|
|
|
<version>${jetty.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.google.zxing</groupId>
|
|
|
<artifactId>core</artifactId>
|
|
|
<version>3.2.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.google.zxing</groupId>
|
|
|
<artifactId>javase</artifactId>
|
|
|
<version>3.1.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.quartz-scheduler</groupId>
|
|
|
<artifactId>quartz</artifactId>
|
|
|
<version>2.0.1</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.tomcat</groupId>
|
|
|
<artifactId>tomcat-jdbc</artifactId>
|
|
|
<version>8.0.28</version>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<!-- spring data的结合 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
<artifactId>spring-data-redis</artifactId>
|
|
|
<version>1.7.2.RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>redis.clients</groupId>
|
|
|
<artifactId>jedis</artifactId>
|
|
|
<version>2.8.1</version>
|
|
|
</dependency>
|
|
|
<!-- TEST end -->
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-framework-bom</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>net.sf.ehcache</groupId>
|
|
|
<artifactId>ehcache-core</artifactId>
|
|
|
<version>2.6.9</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<source>1.8</source>
|
|
|
<target>1.8</target>
|
|
|
<compilerArguments>
|
|
|
<verbose/>
|
|
|
<bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
|
|
|
</compilerArguments>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<!-- war打包插件, 设定war包名称不带版本号 -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
<!--<artifactId>maven-war-plugin</artifactId>-->
|
|
|
<!--<version>2.4</version>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<warName>${project.artifactId}</warName>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!-- test插件, 仅测试名称为*Test的类,使用支持分组测试的surefire-junit47 driver -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
<!--<artifactId>maven-surefire-plugin</artifactId>-->
|
|
|
<!--<version>2.16</version>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<includes>-->
|
|
|
<!--<include>**/*Test.java</include>-->
|
|
|
<!--</includes>-->
|
|
|
<!--<argLine>-Xmx256M</argLine>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--<dependencies>-->
|
|
|
<!--<dependency>-->
|
|
|
<!--<groupId>org.apache.maven.surefire</groupId>-->
|
|
|
<!--<artifactId>surefire-junit47</artifactId>-->
|
|
|
<!--<version>2.16</version>-->
|
|
|
<!--</dependency>-->
|
|
|
<!--</dependencies>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!-- 增加functional test的Source目录 -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.codehaus.mojo</groupId>-->
|
|
|
<!--<artifactId>build-helper-maven-plugin</artifactId>-->
|
|
|
<!--<version>1.8</version>-->
|
|
|
<!--<executions>-->
|
|
|
<!--<execution>-->
|
|
|
<!--<id>add-functional-source</id>-->
|
|
|
<!--<phase>generate-sources</phase>-->
|
|
|
<!--<goals>-->
|
|
|
<!--<goal>add-test-source</goal>-->
|
|
|
<!--</goals>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<sources>-->
|
|
|
<!--<source>src/test/functional</source>-->
|
|
|
<!--</sources>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--</execution>-->
|
|
|
<!--</executions>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!-- cobertura插件, 设置不需要计算覆盖率的类 -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.codehaus.mojo</groupId>-->
|
|
|
<!--<artifactId>cobertura-maven-plugin</artifactId>-->
|
|
|
<!--<version>2.6</version>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<instrumentation>-->
|
|
|
<!--<excludes>-->
|
|
|
<!--<exclude>**/entity/**/*.class</exclude>-->
|
|
|
<!--<exclude>**/*Controller.class</exclude>-->
|
|
|
<!--</excludes>-->
|
|
|
<!--</instrumentation>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!-- enforcer插件, 避免被依赖的依赖引入过期的jar�? -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
<!--<artifactId>maven-enforcer-plugin</artifactId>-->
|
|
|
<!--<version>1.3.1</version>-->
|
|
|
<!--<executions>-->
|
|
|
<!--<execution>-->
|
|
|
<!--<id>enforce-banned-dependencies</id>-->
|
|
|
<!--<goals>-->
|
|
|
<!--<goal>enforce</goal>-->
|
|
|
<!--</goals>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<rules>-->
|
|
|
<!--<requireMavenVersion>-->
|
|
|
<!--<version>3.0.3</version>-->
|
|
|
<!--</requireMavenVersion>-->
|
|
|
<!--<requireJavaVersion>-->
|
|
|
<!--<version>1.6</version>-->
|
|
|
<!--</requireJavaVersion>-->
|
|
|
<!--<bannedDependencies>-->
|
|
|
<!--<searchTransitive>true</searchTransitive>-->
|
|
|
<!--<excludes>-->
|
|
|
<!--<exclude>commons-logging</exclude>-->
|
|
|
<!--<exclude>aspectj:aspectj*</exclude>-->
|
|
|
<!--<exclude>org.springframework</exclude>-->
|
|
|
<!--</excludes>-->
|
|
|
<!--<includes>-->
|
|
|
<!--<include>org.springframework:*:4.0.*</include>-->
|
|
|
<!--</includes>-->
|
|
|
<!--</bannedDependencies>-->
|
|
|
<!--</rules>-->
|
|
|
<!--<fail>true</fail>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--</execution>-->
|
|
|
<!--</executions>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!-- jetty插件, 设定context path与spring profile -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.mortbay.jetty</groupId>-->
|
|
|
<!--<artifactId>jetty-maven-plugin</artifactId>-->
|
|
|
<!--<version>${jetty.version}</version>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<systemProperties>-->
|
|
|
<!--<systemProperty>-->
|
|
|
<!--<name>spring.profiles.active</name>-->
|
|
|
<!--<value>development</value>-->
|
|
|
<!--</systemProperty>-->
|
|
|
<!--</systemProperties>-->
|
|
|
<!--<useTestClasspath>true</useTestClasspath>-->
|
|
|
|
|
|
<!--<webAppConfig>-->
|
|
|
<!--<contextPath>/${project.artifactId}</contextPath>-->
|
|
|
<!--</webAppConfig>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!-- resources插件 -->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
<!--<artifactId>maven-resources-plugin</artifactId>-->
|
|
|
<!--<version>2.6</version>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!--<!– install插件 –>-->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
<!--<artifactId>maven-install-plugin</artifactId>-->
|
|
|
<!--<version>2.5.1</version>-->
|
|
|
<!--</plugin>-->
|
|
|
|
|
|
<!--<!– ant插件 –>-->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
|
<!--<artifactId>maven-antrun-plugin</artifactId>-->
|
|
|
<!--<version>1.7</version>-->
|
|
|
<!--</plugin>-->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
|
<version>2.4</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<phase>initialize</phase>
|
|
|
<goals>
|
|
|
<goal>install-file</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<groupId>com.google.code.kaptcha</groupId>
|
|
|
<artifactId>kaptcha</artifactId>
|
|
|
<version>2.3</version>
|
|
|
<packaging>jar</packaging>
|
|
|
<file>${basedir}/src/main/resources/kaptcha-2.3.2.jar</file>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
<!--<pluginManagement>-->
|
|
|
<!--<plugins>-->
|
|
|
<!--<!–This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.–>-->
|
|
|
<!--<plugin>-->
|
|
|
<!--<groupId>org.eclipse.m2e</groupId>-->
|
|
|
<!--<artifactId>lifecycle-mapping</artifactId>-->
|
|
|
<!--<version>1.0.0</version>-->
|
|
|
<!--<configuration>-->
|
|
|
<!--<lifecycleMappingMetadata>-->
|
|
|
<!--<pluginExecutions>-->
|
|
|
<!--<pluginExecution>-->
|
|
|
<!--<pluginExecutionFilter>-->
|
|
|
<!--<groupId>-->
|
|
|
<!--org.codehaus.mojo-->
|
|
|
<!--</groupId>-->
|
|
|
<!--<artifactId>-->
|
|
|
<!--build-helper-maven-plugin-->
|
|
|
<!--</artifactId>-->
|
|
|
<!--<versionRange>-->
|
|
|
<!--[1.8,)-->
|
|
|
<!--</versionRange>-->
|
|
|
<!--<goals>-->
|
|
|
<!--<goal>add-test-source</goal>-->
|
|
|
<!--</goals>-->
|
|
|
<!--</pluginExecutionFilter>-->
|
|
|
<!--<action>-->
|
|
|
<!--<ignore></ignore>-->
|
|
|
<!--</action>-->
|
|
|
<!--</pluginExecution>-->
|
|
|
<!--</pluginExecutions>-->
|
|
|
<!--</lifecycleMappingMetadata>-->
|
|
|
<!--</configuration>-->
|
|
|
<!--</plugin>-->
|
|
|
<!--</plugins>-->
|
|
|
<!--</pluginManagement>-->
|
|
|
</build>
|
|
|
|
|
|
<profiles>
|
|
|
<!-- 执行functional test -->
|
|
|
<profile>
|
|
|
<id>functional-test</id>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<argLine>-Xmx256M -XX:MaxPermSize=128m</argLine>
|
|
|
<includes>
|
|
|
<include>**/*FT.java</include>
|
|
|
</includes>
|
|
|
<!-- 支持taglib tld文件查找的必要设置 -->
|
|
|
<useSystemClassLoader>false</useSystemClassLoader>
|
|
|
<!-- 将mvn命令行传入的selenium driver参数传入surefire的JVM -->
|
|
|
<systemPropertyVariables>
|
|
|
<selenium.driver>${selenium.driver}</selenium.driver>
|
|
|
</systemPropertyVariables>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</profile>
|
|
|
|
|
|
<!-- 执行@Category(Smoke.class)的TestCase -->
|
|
|
<profile>
|
|
|
<id>run-smoke</id>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<groups>org.springside.modules.test.category.Smoke</groups>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</profile>
|
|
|
|
|
|
<!-- 刷新开发环境数据库 -->
|
|
|
<profile>
|
|
|
<id>refresh-db</id>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<target>
|
|
|
<property file="src/main/resources/application.development.properties"/>
|
|
|
<property file="src/main/resources/application.properties"/>
|
|
|
<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"
|
|
|
password="${jdbc.password}" onerror="continue"
|
|
|
encoding="${project.build.sourceEncoding}">
|
|
|
<classpath refid="maven.test.classpath"/>
|
|
|
<transaction src="src/main/resources/sql/h2/schema.sql"/>
|
|
|
<transaction src="src/test/resources/data/h2/import-data.sql"/>
|
|
|
</sql>
|
|
|
</target>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</profile>
|
|
|
</profiles>
|
|
|
</project>
|