You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
737 lines
26 KiB
737 lines
26 KiB
<?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">
|
|
<parent>
|
|
<artifactId>base-parent</artifactId>
|
|
<groupId>com.dsideal</groupId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>common-utils-lhq</artifactId>
|
|
|
|
<!--项目属性-->
|
|
<properties>
|
|
|
|
<!-- version setting -->
|
|
<spring.version>4.0.0.RELEASE</spring.version>
|
|
<spring-data-jpa.version>1.6.2.RELEASE</spring-data-jpa.version>
|
|
<hibernate.version>4.1.12.Final</hibernate.version>
|
|
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
|
|
<hibernate-search.version>4.2.0.Final</hibernate-search.version>
|
|
<druid.version>0.2.19</druid.version>
|
|
<shiro.version>1.2.3</shiro.version>
|
|
<sitemesh.version>2.4.2</sitemesh.version>
|
|
<ehcache.version>2.8.1</ehcache.version>
|
|
<jackson.version>2.2.1</jackson.version>
|
|
<slf4j.version>1.7.5</slf4j.version>
|
|
<log4j.version>1.2.17</log4j.version>
|
|
<commons-lang3.version>3.1</commons-lang3.version>
|
|
<commons-io.version>2.4</commons-io.version>
|
|
<commons-codec.version>1.8</commons-codec.version>
|
|
<commons-fileupload.version>1.3</commons-fileupload.version>
|
|
<commons-beanutils.version>1.8.3</commons-beanutils.version>
|
|
<guava.version>14.0.1</guava.version>
|
|
<dozer.version>5.4.0</dozer.version>
|
|
<poi.version>3.9</poi.version>
|
|
<freemarker.version>2.3.19</freemarker.version>
|
|
<activiti.version>5.12.1</activiti.version>
|
|
<!--wechat-->
|
|
<logback.version>1.1.2</logback.version>
|
|
<httpclient.version>4.5</httpclient.version>
|
|
|
|
<!-- mysql driver setting <jdbc.driver.groupId>mysql</jdbc.driver.groupId> <jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId> <jdbc.driver.version>5.1.13</jdbc.driver.version> -->
|
|
|
|
<!-- oracle driver setting <jdbc.driver.groupId>com.oracle</jdbc.driver.groupId> <jdbc.driver.artifactId>ojdbc14</jdbc.driver.artifactId> <jdbc.driver.version>10.2.0.1.0</jdbc.driver.version> -->
|
|
|
|
<!-- mssql driver setting -->
|
|
<jdbc.driver.groupId>net.sourceforge.jtds</jdbc.driver.groupId>
|
|
<jdbc.driver.artifactId>jtds</jdbc.driver.artifactId>
|
|
<jdbc.driver.version>1.2.4</jdbc.driver.version>
|
|
|
|
<!-- other setting -->
|
|
<jdk.version>1.6</jdk.version>
|
|
<tomcat.version>2.1</tomcat.version>
|
|
<jetty.version>7.6.10.v20130312</jetty.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
</properties>
|
|
|
|
|
|
<!-- 设定除中央仓库(repo1.maven.org/maven2/)外的其他仓库,按设定顺序进行查找. -->
|
|
<repositories>
|
|
|
|
<!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. <repository> <id>nexus-repos</id> <name>Team Nexus Repository</name> <url>http://localhost:8081/nexus/content/groups/public</url> </repository> -->
|
|
|
|
<repository>
|
|
<id>central-repos</id>
|
|
<name>Central Repository</name>
|
|
<url>http://repo.maven.apache.org/maven2</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>springsource-repos</id>
|
|
<name>SpringSource Repository</name>
|
|
<url>http://repo.springsource.org/libs-milestone-local</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>bonecp-repos</id>
|
|
<name>BoneCP Repository</name>
|
|
<url>http://jolbox.com/bonecp/downloads/maven</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>activiti-repos</id>
|
|
<name>Activiti Repository</name>
|
|
<url>https://maven.alfresco.com/nexus/content/groups/public</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>thinkgem-repos</id>
|
|
<name>ThinkGem Repository</name><!-- <url>https://raw.github.com/thinkgem/repository/master</url> -->
|
|
<url>http://git.oschina.net/thinkgem/repos/raw/master</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
<!-- 依赖项定义 -->
|
|
<dependencies>
|
|
|
|
<!-- SPRING begin -->
|
|
<dependency>
|
|
<groupId>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>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-context-support</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aop</artifactId>
|
|
<version>${spring.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-tx</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<!-- spring orm -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-orm</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jdbc</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
<!-- spring data jpa -->
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-jpa</artifactId>
|
|
<version>${spring-data-jpa.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit-dep</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-redis</artifactId>
|
|
<version>1.1.0.RELEASE</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>redis.clients</groupId>
|
|
<artifactId>jedis</artifactId>
|
|
<version>2.1.0</version>
|
|
</dependency>
|
|
<!-- SPRING end -->
|
|
|
|
<!-- AOP begin -->
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjrt</artifactId>
|
|
<version>1.7.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjweaver</artifactId>
|
|
<version>1.6.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib</artifactId>
|
|
<version>2.2.2</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<!-- <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.3.1</version> <scope>runtime</scope> </dependency> -->
|
|
<!-- AOP end -->
|
|
|
|
<!-- 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>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
<version>${hibernate-validator.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-search</artifactId>
|
|
<version>${hibernate-search.version}</version>
|
|
</dependency>
|
|
<!-- 中文分词 -->
|
|
<dependency>
|
|
<groupId>org.wltea</groupId>
|
|
<artifactId>analyzer</artifactId>
|
|
<version>2012_u6</version>
|
|
</dependency>
|
|
|
|
<!-- connection pool -->
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid</artifactId>
|
|
<version>${druid.version}</version>
|
|
</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-web</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webmvc</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>opensymphony</groupId>
|
|
<artifactId>sitemesh</artifactId>
|
|
<version>${sitemesh.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>taglibs</groupId>
|
|
<artifactId>standard</artifactId>
|
|
<version>1.1.2</version>
|
|
<type>jar</type>
|
|
</dependency>
|
|
<!-- <dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>jstl</artifactId>
|
|
<version>1.2</version>
|
|
<type>jar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>2.5</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
<artifactId>jsp-api</artifactId>
|
|
<version>2.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>-->
|
|
<!-- WEB end -->
|
|
|
|
<!-- EHCACHE begin -->
|
|
<dependency>
|
|
<groupId>net.sf.ehcache.internal</groupId>
|
|
<artifactId>ehcache-core</artifactId>
|
|
<version>${ehcache.version}</version>
|
|
</dependency>
|
|
<!-- EHCACHE end -->
|
|
|
|
<!-- SECURITY begin -->
|
|
<dependency>
|
|
<groupId>com.dsideal.shiro</groupId>
|
|
<artifactId>shiro-core</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.dsideal.shiro</groupId>
|
|
<artifactId>shiro-spring</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.dsideal.shiro</groupId>
|
|
<artifactId>shiro-web</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.dsideal.shiro</groupId>
|
|
<artifactId>shiro-ehcache</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
<!-- SECURITY end -->
|
|
|
|
<!-- Activiti <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-engine</artifactId> <version>${activiti.version}</version> </dependency> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring</artifactId>
|
|
<version>${activiti.version}</version> </dependency> -->
|
|
|
|
<!-- LOGGING begin -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</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>
|
|
<!-- log4j -->
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
<!-- log4jdbc -->
|
|
<dependency>
|
|
<groupId>org.lazyluke</groupId>
|
|
<artifactId>log4jdbc-remix</artifactId>
|
|
<version>0.2.7</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>${commons-codec.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-fileupload</groupId>
|
|
<artifactId>commons-fileupload</artifactId>
|
|
<version>${commons-fileupload.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-beanutils</groupId>
|
|
<artifactId>commons-beanutils</artifactId>
|
|
<version>${commons-beanutils.version}</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>
|
|
|
|
<!-- jackson json -->
|
|
<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>
|
|
|
|
<!-- pojo copy -->
|
|
<dependency>
|
|
<groupId>net.sf.dozer</groupId>
|
|
<artifactId>dozer</artifactId>
|
|
<version>${dozer.version}</version>
|
|
</dependency>
|
|
|
|
<!-- freemarker engine -->
|
|
<dependency>
|
|
<groupId>org.freemarker</groupId>
|
|
<artifactId>freemarker</artifactId>
|
|
<version>${freemarker.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 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>
|
|
|
|
<!-- poi office -->
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi</artifactId>
|
|
<version>${poi.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-ooxml</artifactId>
|
|
<version>${poi.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-ooxml-schemas</artifactId>
|
|
<version>${poi.version}</version>
|
|
</dependency>
|
|
<!-- GENERAL UTILS end -->
|
|
|
|
<!-- CKFinder begin -->
|
|
<dependency>
|
|
<groupId>net.coobird</groupId>
|
|
<artifactId>thumbnailator</artifactId>
|
|
<version>0.4.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ckfinder</groupId>
|
|
<artifactId>apache-ant-zip</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ckfinder</groupId>
|
|
<artifactId>ckfinder</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ckfinder</groupId>
|
|
<artifactId>ckfinderplugin-fileeditor</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ckfinder</groupId>
|
|
<artifactId>ckfinderplugin-imageresize</artifactId>
|
|
<version>2.3</version>
|
|
</dependency>
|
|
<!-- CKFinder end -->
|
|
|
|
<!--wechat begin-->
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>${logback.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>fluent-hc</artifactId>
|
|
<version>${httpclient.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpmime</artifactId>
|
|
<version>${httpclient.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>2.2.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>1.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.4</version>
|
|
</dependency>
|
|
<!--wechat end-->
|
|
|
|
|
|
<!-- TEST begin -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.11</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<!-- TEST end -->
|
|
|
|
<dependency>
|
|
<groupId>com.belerweb</groupId>
|
|
<artifactId>pinyin4j</artifactId>
|
|
<version>2.5.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.11</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.inject</groupId>
|
|
<artifactId>guice</artifactId>
|
|
<version>3.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testng</groupId>
|
|
<artifactId>testng</artifactId>
|
|
<version>6.8.7</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-all</artifactId>
|
|
<version>1.9.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-server</artifactId>
|
|
<version>9.3.0.M0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-servlet</artifactId>
|
|
<version>9.3.0.M0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<distributionManagement>
|
|
<snapshotRepository>
|
|
<id>ossrh</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
</snapshotRepository>
|
|
<repository>
|
|
<id>ossrh</id>
|
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
</repository>
|
|
</distributionManagement>
|
|
|
|
<build>
|
|
<outputDirectory>${project.basedir}/src/main/webapp/WEB-INF/classes/</outputDirectory>
|
|
<plugins>
|
|
<!-- Compiler 插件, 设定JDK版本 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>2.5.1</version>
|
|
<configuration>
|
|
<source>${jdk.version}</source>
|
|
<target>${jdk.version}</target>
|
|
<showWarnings>true</showWarnings>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- war 打包插件, 设定war包名称不带版本号 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.3</version>
|
|
<configuration>
|
|
<warName>${project.artifactId}</warName>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Eclipse 插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-eclipse-plugin</artifactId>
|
|
<version>2.9</version>
|
|
<configuration>
|
|
<downloadSources>false</downloadSources>
|
|
<downloadJavadocs>false</downloadJavadocs>
|
|
<wtpversion>2.0</wtpversion>
|
|
<!-- 增加设置项目encoding的文件 -->
|
|
<additionalConfig>
|
|
<file>
|
|
<name>.settings/org.eclipse.core.resources.prefs</name>
|
|
<content>
|
|
<![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]>
|
|
</content>
|
|
</file>
|
|
</additionalConfig>
|
|
<additionalProjectnatures>
|
|
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
|
|
</additionalProjectnatures>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- tomcat6插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
<artifactId>tomcat6-maven-plugin</artifactId>
|
|
<version>${tomcat.version}</version>
|
|
<configuration>
|
|
<path>/${project.artifactId}</path>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- tomcat7插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
|
<version>${tomcat.version}</version>
|
|
<configuration>
|
|
<path>/${project.artifactId}</path>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- jetty插件 -->
|
|
<plugin>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty.version}</version>
|
|
<configuration>
|
|
<webAppConfig>
|
|
<contextPath>/${project.artifactId}</contextPath>
|
|
</webAppConfig>
|
|
<stopPort>9966</stopPort>
|
|
<stopKey>foo</stopKey>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- resource插件 -->
|
|
<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.4</version>
|
|
</plugin>
|
|
|
|
<!-- clean插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.5</version>
|
|
</plugin>
|
|
|
|
<!-- ant插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.7</version>
|
|
</plugin>
|
|
|
|
<!-- dependency插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.5.1</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |