<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>2.0.3.RELEASE</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.yoho</groupId> <artifactId>parent</artifactId> <packaging>pom</packaging> <version>1.3.10-springboot-SNAPSHOT</version> <name>parent</name> <url>http://maven.apache.org</url> <properties> <java.version>1.8</java.version> <java.encoding>UTF-8</java.encoding> <!--<spring.boot.version>2.0.3.RELEASE</spring.boot.version>--> <!-- spring版本号 --> <spring.version>5.0.7.RELEASE</spring.version> <!-- mybatis版本号 --> <mybatis.version>3.2.6</mybatis.version> <!-- log4j日志文件管理包版本 --> <slf4j.version>1.7.7</slf4j.version> <!--<logback.version>1.1.7</logback.version>--> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <yoho.model.version>1.3.10-SNAPSHOT</yoho.model.version> <yoho.core.version>1.3.10-springboot-SNAPSHOT</yoho.core.version> <mysql.version>5.1.30</mysql.version> </properties> <dependencyManagement> <dependencies> <!-- ************************ yoho ****************************** --> <dependency> <groupId>com.yoho.common</groupId> <artifactId>error-code</artifactId> <version>${yoho.model.version}</version> </dependency> <!-- //////////////// start yoho core //////////////// --> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-common</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-dal</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-rest-server</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-rest-client-simple</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-redis</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-cache-clean</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-message</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-cache</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-config</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-trace</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-rabbitmq</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-alarm</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-transaction</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-redis-cluster</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-config-client</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-cache-clean-cluster</artifactId> <version>${yoho.core.version}</version> </dependency> <dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-config-center</artifactId> <version>${yoho.core.version}</version> </dependency> <!-- //////////////// start yoho model //////////////// --> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>sns-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>resource-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>promotion-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>users-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>product-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>order-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>message-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>union-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>activity-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>risk-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>task-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>shops-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>brower-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>social-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>bigdata-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <dependency> <groupId>com.yoho.service.model</groupId> <artifactId>uic-service-model</artifactId> <version>${yoho.model.version}</version> </dependency> <!-- ************************ end yoho 公共包 ****************************** --> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.8.7</version> </dependency> <dependency> <groupId>org.influxdb</groupId> <artifactId>influxdb-java</artifactId> <version>2.7</version> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <!-- swagger --> <dependency> <groupId>com.mangofactory</groupId> <artifactId>swagger-springmvc</artifactId> <version>1.0.2</version> </dependency> <!-- servlet --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>3.0-alpha-1</version> <scope>provided</scope> </dependency> <!-- spring核心包 --> <!--<dependency>--> <!--<groupId>org.springframework.boot</groupId>--> <!--<artifactId>spring-boot-dependencies</artifactId>--> <!--<version>${spring.boot.version}</version>--> <!--<type>pom</type>--> <!--<scope>import</scope>--> <!--</dependency>--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</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-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-web</artifactId>--> <!--<version>${spring.version}</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.springframework</groupId>--> <!--<artifactId>spring-oxm</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-jdbc</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-aop</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-test</artifactId>--> <!--<version>${spring.version}</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.springframework.amqp</groupId>--> <!--<artifactId>spring-rabbit</artifactId>--> <!--<version>1.5.1.RELEASE</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.springframework.amqp</groupId>--> <!--<artifactId>spring-amqp</artifactId>--> <!--<version>1.5.1.RELEASE</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.springframework</groupId>--> <!--<artifactId>spring-messaging</artifactId>--> <!--<version>${spring.version}</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.springframework.integration</groupId>--> <!--<artifactId>spring-integration-core</artifactId>--> <!--<version>${spring.version}</version>--> <!--</dependency>--> <!-- mybatis核心包 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</version> </dependency> <!-- mybatis/spring包 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>1.2.2</version> </dependency> <!-- 导入Mysql数据库链接jar包 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.version}</version> </dependency> <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 --> <!--********************************* apache commons ********************************* --> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.4</version> </dependency> <!--<dependency>--> <!--<groupId>org.apache.commons</groupId>--> <!--<artifactId>commons-dbcp2</artifactId>--> <!--<version>2.1.1</version>--> <!--</dependency>--> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1</version> </dependency> <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>3.3</version> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.2</version> </dependency> <!--<dependency>--> <!--<groupId>org.apache.httpcomponents</groupId>--> <!--<artifactId>httpclient</artifactId>--> <!--<version>4.5.1</version>--> <!--</dependency>--> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>18.0</version> </dependency> <!-- spring memcached--> <dependency> <groupId>net.spy</groupId> <artifactId>spymemcached</artifactId> <version>2.12.0</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.code.simple-spring-memcached</groupId> <artifactId>spring-cache</artifactId> <version>3.6.0</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.code.simple-spring-memcached</groupId> <artifactId>spymemcached-provider</artifactId> <version>3.6.0</version> </dependency> <!-- 读取yml --> <!--<dependency>--> <!--<groupId>org.yaml</groupId>--> <!--<artifactId>snakeyaml</artifactId>--> <!--<version>1.14</version>--> <!--</dependency>--> <!-- 日志文件管理包 --> <!-- 格式化对象,方便输出日志 --> <!--<dependency>--> <!--<groupId>org.slf4j</groupId>--> <!--<artifactId>slf4j-api</artifactId>--> <!--<version>${slf4j.version}</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.slf4j</groupId>--> <!--<artifactId>jcl-over-slf4j</artifactId>--> <!--<version>${slf4j.version}</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>ch.qos.logback</groupId>--> <!--<artifactId>logback-classic</artifactId>--> <!--<version>${logback.version}</version>--> <!--</dependency>--> <!-- 映入JSON --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.13.sec01</version> </dependency> <!-- zookeeper相关包 --> <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.4.6</version> <exclusions> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-framework</artifactId> <version>2.9.1</version> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-recipes</artifactId> <version>2.9.1</version> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-client</artifactId> <version>2.9.1</version> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-x-discovery</artifactId> <version>2.9.1</version> </dependency> <dependency> <groupId>com.netflix.archaius</groupId> <artifactId>archaius-zookeeper</artifactId> <version>0.7.3</version> </dependency> <!-- 工具包 --> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency> <!--<dependency>--> <!--<groupId>org.apache.commons</groupId>--> <!--<artifactId>commons-lang3</artifactId>--> <!--<version>3.5</version>--> <!--</dependency>--> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.1</version> </dependency> <dependency> <groupId>commons-configuration</groupId> <artifactId>commons-configuration</artifactId> <version>1.5</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.2</version> </dependency> <!--<dependency>--> <!--<groupId>commons-codec</groupId>--> <!--<artifactId>commons-codec</artifactId>--> <!--<version>1.10</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>com.fasterxml.jackson.core</groupId>--> <!--<artifactId>jackson-annotations</artifactId>--> <!--<version>2.6.3</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>com.fasterxml.jackson.core</groupId>--> <!--<artifactId>jackson-databind</artifactId>--> <!--<version>2.6.3</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>com.fasterxml.jackson.core</groupId>--> <!--<artifactId>jackson-core</artifactId>--> <!--<version>2.6.3</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>javax.servlet</groupId>--> <!--<artifactId>javax.servlet-api</artifactId>--> <!--<version>3.1.0</version>--> <!--<scope>provided</scope>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>javax.validation</groupId>--> <!--<artifactId>validation-api</artifactId>--> <!--<version>1.1.0.Final</version>--> <!--</dependency>--> <!--<dependency>--> <!--<groupId>org.hibernate</groupId>--> <!--<artifactId>hibernate-validator</artifactId>--> <!--<version>5.2.2.Final</version>--> <!--</dependency>--> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>2.6.9</version> </dependency> <!--<dependency>--> <!--<groupId>commons-pool</groupId>--> <!--<artifactId>commons-pool</artifactId>--> <!--<version>20030825.183949</version>--> <!--</dependency>--> <!--wiremock: Test http server --> <dependency> <groupId>com.github.tomakehurst</groupId> <artifactId>wiremock</artifactId> <version>1.57</version> <scope>test</scope> <!-- Include everything below here if you have dependency conflicts --> <classifier>standalone</classifier> <exclusions> <exclusion> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty</artifactId> </exclusion> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </exclusion> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </exclusion> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </exclusion> <exclusion> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </exclusion> <exclusion> <groupId>org.skyscreamer</groupId> <artifactId>jsonassert</artifactId> </exclusion> <exclusion> <groupId>xmlunit</groupId> <artifactId>xmlunit</artifactId> </exclusion> <exclusion> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> </exclusion> <exclusion> <groupId>net.sf.jopt-simple</groupId> <artifactId>jopt-simple</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.10.19</version> <scope>test</scope> </dependency> <dependency> <groupId>com.sina</groupId> <artifactId>weibo4j</artifactId> <version>3.1.1</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>2.0.8.RELEASE</version> </dependency> <!--<dependency>--> <!--<groupId>redis.clients</groupId>--> <!--<artifactId>jedis</artifactId>--> <!--<version>2.9.0</version>--> <!--</dependency>--> <!-- ali yun --> <dependency> <groupId>com.aliyun.oss</groupId> <artifactId>aliyun-sdk-oss</artifactId> <version>2.0.6</version> </dependency> <!-- 七牛--> <dependency> <groupId>com.qiniu</groupId> <artifactId>qiniu-java-sdk</artifactId> <version>7.0.5</version> <exclusions> <exclusion> <groupId>com.squareup.okio</groupId> <artifactId>okio</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.14.4</version> </dependency> <dependency> <groupId>com.github.jknack</groupId> <artifactId>handlebars</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.github.jknack</groupId> <artifactId>handlebars-springmvc</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-core</artifactId> <version>1.4.21</version> </dependency> <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-metrics-event-stream</artifactId> <version>1.4.21</version> <exclusions> <exclusion> <artifactId>jackson-databind</artifactId> <groupId>com.fasterxml.jackson.core</groupId> </exclusion> <exclusion> <artifactId>jackson-annotations</artifactId> <groupId>com.fasterxml.jackson.core</groupId> </exclusion> </exclusions> </dependency> <!--config --> <dependency> <groupId>com.netflix.archaius</groupId> <artifactId>archaius-core</artifactId> <version>0.7.3</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.0.16</version> </dependency> <dependency> <groupId>com.belerweb</groupId> <artifactId>pinyin4j</artifactId> <version>2.5.0</version> </dependency> </dependencies> </dependencyManagement> <!--<dependencies>--> <!--<dependency>--> <!--<groupId>org.springframework.boot</groupId>--> <!--<artifactId>spring-boot-starter-data-redis</artifactId>--> <!--<version>2.0.3.RELEASE</version>--> <!--</dependency>--> <!--</dependencies>--> <distributionManagement> <repository> <id>releases</id> <name>Internal Releases</name> <url>http://maven.yoho.cn/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>snapshots</id> <name>Internal snapshots</name> <url>http://maven.yoho.cn/nexus/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>${java.encoding}</encoding> <compilerArgument>-Xlint:unchecked</compilerArgument> </configuration> </plugin> <!-- resource插件, 设定编码 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>**/*Tests.java</include> </includes> <argLine>-Xmx256m</argLine> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> <!-- clean插件--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> </plugin> <!-- install插件--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> </plugin> <!-- deploy插件--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> </plugin> </plugins> <pluginManagement> <plugins> <!-- jetty --> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.16.v20140903</version> </plugin> <!-- compiler插件, 设定JDK版本 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> <showWarnings>true</showWarnings> </configuration> </plugin> <!-- test插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.8</version> <configuration> <includes> <include>**/*Test.java</include> </includes> </configuration> </plugin> <!-- cobertura插件 --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.4</version> </plugin> <!-- war插件--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <warName>${project.artifactId}</warName> <archive> <addMavenDescriptor>false</addMavenDescriptor> </archive> </configuration> </plugin> <!-- resource插件, 设定编码 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <!-- jar插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.6</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> </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.5</version> </plugin> <!-- install插件--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5</version> </plugin> <!-- deploy插件--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8</version> </plugin> <!-- eclipse插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.10</version> <configuration> <sourceExcludes> <sourceExclude>**/.svn/</sourceExclude> </sourceExcludes> <downloadSources>true</downloadSources> </configuration> </plugin> <!-- jetty插件 --> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.25</version> <configuration> <reload>manual</reload> </configuration> </plugin> <!-- dependency插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> </plugin> <!-- ant插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> </plugin> <!-- assembly plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5</version> </plugin> </plugins> </pluginManagement> </build> </project>