1011 lines
29 KiB
XML
1011 lines
29 KiB
XML
<?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>
|
|
<parent>
|
|
<groupId>org.sonatype.oss</groupId>
|
|
<artifactId>oss-parent</artifactId>
|
|
<version>7</version>
|
|
</parent>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-parent</artifactId>
|
|
<version>4.3.0-SNAPSHOT</version>
|
|
<name>Springside :: Module :: Parent</name>
|
|
<packaging>pom</packaging>
|
|
|
|
<properties>
|
|
<!-- 主要依赖库的版本定义 -->
|
|
<springside.version>4.3.0-SNAPSHOT</springside.version>
|
|
<spring.version>4.1.3.RELEASE</spring.version>
|
|
<hibernate.version>4.3.7.Final</hibernate.version>
|
|
<mybatis.version>3.2.7</mybatis.version>
|
|
<spring-data-jpa.version>1.6.0.RELEASE</spring-data-jpa.version>
|
|
<tomcat-jdbc.version>7.0.57</tomcat-jdbc.version>
|
|
<sitemesh.version>2.4.2</sitemesh.version>
|
|
<shiro.version>1.2.3</shiro.version>
|
|
<cxf.version>2.7.11</cxf.version>
|
|
<activemq.version>5.7.0</activemq.version>
|
|
<quartz.version>2.2.1</quartz.version>
|
|
<jedis.version>2.6.1</jedis.version>
|
|
<ehcache.version>2.6.9</ehcache.version>
|
|
<spymemcached.version>2.11.5</spymemcached.version>
|
|
<hibernate-validator.version>5.0.3.Final</hibernate-validator.version>
|
|
<jolokia.version>1.2.3</jolokia.version>
|
|
<hystrix.version>1.3.16</hystrix.version>
|
|
<javasimon.version>3.5.2</javasimon.version>
|
|
<jackson.version>2.4.4</jackson.version>
|
|
<slf4j.version>1.7.8</slf4j.version>
|
|
<logback.version>1.1.2</logback.version>
|
|
<httpclient.version>4.3.6</httpclient.version>
|
|
<commons-lang3.version>3.3.2</commons-lang3.version>
|
|
<commons-io.version>2.4</commons-io.version>
|
|
<guava.version>18.0</guava.version>
|
|
<joda-time.version>2.3</joda-time.version>
|
|
<dozer.version>5.5.1</dozer.version>
|
|
<freemarker.version>2.3.21</freemarker.version>
|
|
<aspectj.version>1.8.4</aspectj.version>
|
|
<junit.version>4.11</junit.version>
|
|
<assertj.version>1.7.0</assertj.version>
|
|
<mockito.version>1.10.8</mockito.version>
|
|
<powermock.version>1.6.0</powermock.version>
|
|
<selenium.version>2.42.2</selenium.version>
|
|
<nosqlunit.version>0.8.0</nosqlunit.version>
|
|
<jetty.version>8.1.16.v20140903</jetty.version>
|
|
<h2.version>1.3.176</h2.version>
|
|
|
|
<!-- Plugin的属性 -->
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<java.version>1.6</java.version>
|
|
</properties>
|
|
|
|
<prerequisites>
|
|
<maven>3.0.0</maven>
|
|
</prerequisites>
|
|
|
|
<!-- 设定除中央仓库 (repo1.maven.org/maven2/)外的其他仓库,按设定顺序进行查询,如有Nexus私服, 取消注释并指向正确的服务器地址
|
|
<repositories>
|
|
<repository>
|
|
<id>nexus</id>
|
|
<name>Team Nexus Repository</name>
|
|
<url>http://localhost:8081/nexus/content/groups/public</url>
|
|
</repository>
|
|
</repositories>-->
|
|
|
|
<!-- 如有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> -->
|
|
|
|
<!-- 预定义依赖项的version,scope与exclusions,子项目中只需定义groupId 与 artifactId 即可 -->
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- SPRINGSIDE MODULES begin -->
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-utils</artifactId>
|
|
<version>${springside.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-core</artifactId>
|
|
<version>${springside.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-extension</artifactId>
|
|
<version>${springside.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-metrics</artifactId>
|
|
<version>${springside.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-redis</artifactId>
|
|
<version>${springside.version}</version>
|
|
</dependency>
|
|
<!-- SPRINGSIDE MODULES end -->
|
|
|
|
<!-- spring-->
|
|
<!-- 纯粹为了exclude commons-loging -->
|
|
<dependency>
|
|
<groupId>cn.org.springframework</groupId>
|
|
<artifactId>spring-core</artifactId>
|
|
<version>${spring.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
<version>${spring.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
|
|
<!-- PERSISTENCE begin -->
|
|
<!-- hibernate -->
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-core</artifactId>
|
|
<version>${hibernate.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-entitymanager</artifactId>
|
|
<version>${hibernate.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-ehcache</artifactId>
|
|
<version>${hibernate.version}</version>
|
|
</dependency>
|
|
|
|
<!-- spring data jpa -->
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-jpa</artifactId>
|
|
<version>${spring-data-jpa.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 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>
|
|
|
|
<!-- 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.2.2</version>
|
|
</dependency>
|
|
|
|
<!-- connection pool -->
|
|
<dependency>
|
|
<groupId>org.apache.tomcat</groupId>
|
|
<artifactId>tomcat-jdbc</artifactId>
|
|
<version>${tomcat-jdbc.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<!-- PERSISTENCE end -->
|
|
|
|
<!-- WEB begin -->
|
|
<!-- spring -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webmvc</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<!-- sitemesh -->
|
|
<dependency>
|
|
<groupId>opensymphony</groupId>
|
|
<artifactId>sitemesh</artifactId>
|
|
<version>${sitemesh.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- j2ee web spec -->
|
|
<!-- update to servlet 3.0 for spring 4.0 MockHttpServletRequest -->
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
<version>3.0.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>jstl</artifactId>
|
|
<version>1.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>jsp-api</artifactId>
|
|
<version>2.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- WEB end -->
|
|
|
|
<!-- SECURITY begin -->
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-core</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-spring</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-web</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-ehcache</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<!-- SECURITY end -->
|
|
|
|
<!-- SOAP begin -->
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-core</artifactId>
|
|
<version>${cxf.version}</version>
|
|
<exclusions>
|
|
<!-- use javax.mail.mail instead -->
|
|
<exclusion>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-javamail_1.4_spec</artifactId>
|
|
</exclusion>
|
|
<!-- use javax.activation.activation instead -->
|
|
<exclusion>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-activation_1.1_spec</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
|
<version>${cxf.version}</version>
|
|
<exclusions>
|
|
<!-- see above -->
|
|
<exclusion>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-javamail_1.4_spec</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-activation_1.1_spec</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-transports-http</artifactId>
|
|
<version>${cxf.version}</version>
|
|
</dependency>
|
|
<!-- SOAP end -->
|
|
|
|
<!-- JAX-RS begin -->
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
|
<version>${cxf.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.jaxrs</groupId>
|
|
<artifactId>jackson-jaxrs-json-provider</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<!-- JAX-RS end -->
|
|
|
|
<!-- JMS begin -->
|
|
<dependency>
|
|
<groupId>org.apache.activemq</groupId>
|
|
<artifactId>activemq-core</artifactId>
|
|
<version>${activemq.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.activemq.protobuf</groupId>
|
|
<artifactId>activemq-protobuf</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.springframework.osgi</groupId>
|
|
<artifactId>spring-osgi-core</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.osgi</groupId>
|
|
<artifactId>org.osgi.core</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.fusesource.mqtt-client</groupId>
|
|
<artifactId>mqtt-client</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- JMS end -->
|
|
|
|
<!-- TIMER -->
|
|
<dependency>
|
|
<groupId>org.quartz-scheduler</groupId>
|
|
<artifactId>quartz</artifactId>
|
|
<version>${quartz.version}</version>
|
|
</dependency>
|
|
|
|
<!-- NOSQL begin -->
|
|
<dependency>
|
|
<groupId>redis.clients</groupId>
|
|
<artifactId>jedis</artifactId>
|
|
<version>${jedis.version}</version>
|
|
</dependency>
|
|
<!-- NOSQL end -->
|
|
|
|
<!-- CACHE begin -->
|
|
<!-- memcached -->
|
|
<dependency>
|
|
<groupId>net.spy</groupId>
|
|
<artifactId>spymemcached</artifactId>
|
|
<version>${spymemcached.version}</version>
|
|
</dependency>
|
|
|
|
<!-- ehcache -->
|
|
<dependency>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache-core</artifactId>
|
|
<version>${ehcache.version}</version>
|
|
</dependency>
|
|
<!-- CACHE end -->
|
|
|
|
<!-- jolokia Restful JMX begin -->
|
|
<dependency>
|
|
<groupId>org.jolokia</groupId>
|
|
<artifactId>jolokia-core</artifactId>
|
|
<version>${jolokia.version}</version>
|
|
</dependency>
|
|
<!-- jolokia end -->
|
|
|
|
<!-- hystrix begin -->
|
|
<dependency>
|
|
<groupId>com.netflix.hystrix</groupId>
|
|
<artifactId>hystrix-core</artifactId>
|
|
<version>${hystrix.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- hystrix end -->
|
|
|
|
<!-- Monitor begin -->
|
|
<!-- javasimon -->
|
|
<dependency>
|
|
<groupId>org.javasimon</groupId>
|
|
<artifactId>javasimon-spring</artifactId>
|
|
<version>${javasimon.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.javasimon</groupId>
|
|
<artifactId>javasimon-jdbc4</artifactId>
|
|
<version>${javasimon.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.javasimon</groupId>
|
|
<artifactId>javasimon-console-embed</artifactId>
|
|
<version>${javasimon.version}</version>
|
|
</dependency>
|
|
<!-- Monitor end -->
|
|
|
|
<!-- JSR303 Bean Validator -->
|
|
<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-core</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<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>
|
|
<!-- JSON end -->
|
|
|
|
<!-- XML begin -->
|
|
<dependency>
|
|
<groupId>dom4j</groupId>
|
|
<artifactId>dom4j</artifactId>
|
|
<version>1.6.1</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>xml-apis</groupId>
|
|
<artifactId>xml-apis</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- 重新定义Java XPath Engine到最新版,避免旧版那些不必要的依赖 -->
|
|
<dependency>
|
|
<groupId>jaxen</groupId>
|
|
<artifactId>jaxen</artifactId>
|
|
<version>1.1.4</version>
|
|
</dependency>
|
|
<!-- XML end -->
|
|
|
|
<!-- LOGGING begin -->
|
|
<!-- slf4j -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- logback -->
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 代码直接调用log4j会被桥接到slf4j -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 代码直接调用commons-logging会被桥接到slf4j -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 代码直接调用java.util.logging会被桥接到slf4j -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jul-to-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- log4jdbc -->
|
|
<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>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>${commons-io.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>1.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-beanutils</groupId>
|
|
<artifactId>commons-beanutils</artifactId>
|
|
<version>1.9.2</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- google java library -->
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
|
|
<!-- joda -->
|
|
<dependency>
|
|
<groupId>joda-time</groupId>
|
|
<artifactId>joda-time</artifactId>
|
|
<version>${joda-time.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>joda-time</groupId>
|
|
<artifactId>joda-time-jsptags</artifactId>
|
|
<version>1.1.1</version>
|
|
</dependency>
|
|
<!-- joda for jackson -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-joda</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<!-- GENERAL UTILS end -->
|
|
|
|
<!-- OTHER TOOLS begin -->
|
|
<!-- pojo copy -->
|
|
<dependency>
|
|
<groupId>net.sf.dozer</groupId>
|
|
<artifactId>dozer</artifactId>
|
|
<version>${dozer.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- httpclient -->
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>${httpclient.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>fluent-hc</artifactId>
|
|
<version>${httpclient.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpcore</artifactId>
|
|
<version>4.3.2</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- template engine -->
|
|
<dependency>
|
|
<groupId>org.freemarker</groupId>
|
|
<artifactId>freemarker</artifactId>
|
|
<version>${freemarker.version}</version>
|
|
</dependency>
|
|
|
|
<!-- commons-pool -->
|
|
<!-- email -->
|
|
<dependency>
|
|
<groupId>javax.mail</groupId>
|
|
<artifactId>mail</artifactId>
|
|
<version>1.4.7</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.activation</groupId>
|
|
<artifactId>activation</artifactId>
|
|
<version>1.1.1</version>
|
|
</dependency>
|
|
<!-- OTHER TOOLS end -->
|
|
|
|
<!-- TEST begin -->
|
|
<!-- junit -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- assertj -->
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<version>${assertj.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- mockito -->
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.powermock</groupId>
|
|
<artifactId>powermock-module-junit4</artifactId>
|
|
<version>${powermock.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.powermock</groupId>
|
|
<artifactId>powermock-api-mockito</artifactId>
|
|
<version>${powermock.version}</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-all</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- springside -->
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-core</artifactId>
|
|
<version>${springside.version}</version>
|
|
<classifier>tests</classifier>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springside</groupId>
|
|
<artifactId>springside-extension</artifactId>
|
|
<version>${springside.version}</version>
|
|
<classifier>tests</classifier>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- spring -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<version>${spring.version}</version>
|
|
<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-android-driver</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>selenium-iphone-driver</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>selenium-htmlunit-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>
|
|
|
|
<!-- 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>
|
|
|
|
<!-- h2 -->
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>${h2.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- redis simulator -->
|
|
<dependency>
|
|
<groupId>com.lordofthejars</groupId>
|
|
<artifactId>nosqlunit-redis</artifactId>
|
|
<version>${nosqlunit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- memcached simulator -->
|
|
<dependency>
|
|
<groupId>com.thimbleware.jmemcached</groupId>
|
|
<artifactId>jmemcached-core</artifactId>
|
|
<version>1.0.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- smtp server simulator -->
|
|
<dependency>
|
|
<groupId>com.icegreen</groupId>
|
|
<artifactId>greenmail</artifactId>
|
|
<version>1.3.1b</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- TEST end -->
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<!-- 插件配置 -->
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<!-- compiler插件, 设定JDK版本 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.3</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<showWarnings>true</showWarnings>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- resource插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>2.7</version>
|
|
</plugin>
|
|
|
|
<!-- test插件, 仅测试名称为*Test的类, 使用支持分组测试的surefire-junit47 driver -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.18.1</version>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.maven.surefire</groupId>
|
|
<artifactId>surefire-junit47</artifactId>
|
|
<version>2.18.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<!-- 增加更多的Source和Test Source目录插件 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>1.9.1</version>
|
|
</plugin>
|
|
|
|
<!-- cobertura 测试覆盖率统计插插件 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
<version>2.6</version>
|
|
</plugin>
|
|
|
|
<!-- war打包插件, 设定war包名称不带版本号 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<warName>${project.artifactId}</warName>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- jar打包相关插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
</manifest>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>2.4</version>
|
|
</plugin>
|
|
|
|
<!-- clean插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.6.1</version>
|
|
</plugin>
|
|
|
|
<!-- install插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
</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>${java.version}</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.*</include>
|
|
</includes>
|
|
</bannedDependencies>
|
|
</rules>
|
|
<fail>true</fail>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
|
|
<!-- assembly插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
</plugin>
|
|
|
|
<!-- dependency相关插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.9</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>versions-maven-plugin</artifactId>
|
|
<version>2.1</version>
|
|
</plugin>
|
|
|
|
<!-- ant插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.7</version>
|
|
</plugin>
|
|
|
|
<!-- exec java 插件 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>1.3.2</version>
|
|
</plugin>
|
|
|
|
<!-- jetty -->
|
|
<plugin>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty.version}</version>
|
|
</plugin>
|
|
|
|
<!-- tomcat -->
|
|
<plugin>
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
|
<version>2.2</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<profiles>
|
|
<!-- 执行@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>
|
|
</profiles>
|
|
</project>
|