Commit 22e0ce3b by yubg

框架版本控制项目

parent 498590b6
...@@ -5,462 +5,284 @@ ...@@ -5,462 +5,284 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.ydl</groupId> <groupId>com.ydl</groupId>
<artifactId>ydl-parent</artifactId> <artifactId>ydl-parent</artifactId>
<version>1.0.1</version> <version>2.0.0-SNAPSHOT</version>
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<!-- project -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Spring --> <spring.boot.version>2.0.5.RELEASE</spring.boot.version>
<spring.version>4.3.11.RELEASE</spring.version> <mapper.boot.version>2.0.4</mapper.boot.version>
<springboot.version>1.5.7.RELEASE</springboot.version> <mybatis.boot.version>1.3.2</mybatis.boot.version>
<!-- dubbo --> <pinyin4j.version>2.5.1</pinyin4j.version>
<dubbo.version>2.5.10</dubbo.version> <swagger.version>2.7.0</swagger.version>
<!-- zookeeper --> <guava.version>26.0-jre</guava.version>
<zookeeper.version>3.3.6</zookeeper.version> <zookeeper.version>3.4.10</zookeeper.version>
<zkclient.version>0.1</zkclient.version> <pagehelper.boot.version>1.2.7</pagehelper.boot.version>
<brave.version>4.9.1</brave.version> <zkClient.version>0.10</zkClient.version>
<zipkin-reporter.version>2.1.3</zipkin-reporter.version> <druid.version>1.1.10</druid.version>
<swagger.version>2.5.0</swagger.version> <dubbo.spring.version>0.2.0</dubbo.spring.version>
<mapper.version>3.4.3</mapper.version> <mortbay_jetty_version>6.1.26</mortbay_jetty_version>
<druid.version>1.0.4</druid.version> <dubbo.rpc.jsonrpc>1.0.1</dubbo.rpc.jsonrpc>
<mybatis.spring.integration>1.2.0</mybatis.spring.integration> <aliyun.dypnsapi.version>1.0.0</aliyun.dypnsapi.version>
<mybatis.version>3.3.0</mybatis.version> <brave.version>5.4.2</brave.version>
<mysql.version>5.1.25</mysql.version> <zipkin-reporter.version>2.7.9</zipkin-reporter.version>
<brave.instrumentation.version>4.19.1</brave.instrumentation.version>
<zipkin.version>2.2.1</zipkin.version>
<dubbo.zipkin.spring.version>1.0.2</dubbo.zipkin.spring.version> <dubbo.zipkin.spring.version>1.0.2</dubbo.zipkin.spring.version>
<jsonrpc.version>1.0.1</jsonrpc.version>
<mortbay.jetty.version>7.0.0pre2</mortbay.jetty.version> <mortbay.jetty.version>7.0.0pre2</mortbay.jetty.version>
<hystrix.version>1.5.12</hystrix.version>
<fastjson.version>1.2.31</fastjson.version>
<ibatis.version>3.0</ibatis.version>
<py4j.version>2.5.0</py4j.version>
<protostuff.version>1.5.2</protostuff.version>
<testng.version>6.8.5</testng.version>
<netty.version>3.2.5.Final</netty.version>
<codehaus.jackson.version>1.9.13</codehaus.jackson.version>
<modelmapper.version>0.7.5</modelmapper.version>
<hibernate.validator.version>5.0.2.Final</hibernate.validator.version>
</properties> </properties>
<!--选择性依赖-->
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.dianping.cat</groupId>
<artifactId>cat-client</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId> <artifactId>spring-boot-dependencies</artifactId>
<version>${springboot.version}</version> <version>${spring.boot.version}</version>
<type>pom</type> <type>pom</type>
<!--导入所有可选依赖-->
<scope>import</scope> <scope>import</scope>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- spring -->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>tk.mybatis</groupId>
<artifactId>dubbo</artifactId> <artifactId>mapper-spring-boot-starter</artifactId>
<version>${dubbo.version}</version> <version>${mapper.boot.version}</version>
<exclusions>
<exclusion>
<artifactId>curator-framework</artifactId>
<groupId>org.apache.curator</groupId>
</exclusion>
<exclusion>
<artifactId>curator-client</artifactId>
<groupId>org.apache.curator</groupId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
<exclusion>
<artifactId>spring-web</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-beans</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- zookeeper -->
<dependency> <dependency>
<groupId>org.apache.zookeeper</groupId> <groupId>org.mybatis.spring.boot</groupId>
<artifactId>zookeeper</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>${zookeeper.version}</version> <version>${mybatis.boot.version}</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.sgroschupf</groupId> <groupId>com.belerweb</groupId>
<artifactId>zkclient</artifactId> <artifactId>pinyin4j</artifactId>
<version>${zkclient.version}</version> <version>${pinyin4j.version}</version>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId> <artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version> <version>${swagger.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId> <artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version> <version>${swagger.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.zipkin.reporter2</groupId> <groupId>com.aliyun</groupId>
<artifactId>zipkin-sender-okhttp3</artifactId> <artifactId>aliyun-java-sdk-dypnsapi</artifactId>
<version>${zipkin-reporter.version}</version> <version>${aliyun.dypnsapi.version}</version>
</dependency> </dependency>
<!-- 引入 zipkin brave 的 BOM 文件 -->
<dependency> <dependency>
<groupId>io.zipkin.brave</groupId> <groupId>io.zipkin.brave</groupId>
<artifactId>brave-instrumentation-spring-webmvc</artifactId> <artifactId>brave-bom</artifactId>
<version>${brave.version}</version> <version>${brave.version}</version>
</dependency> <type>pom</type>
<dependency> <scope>import</scope>
<groupId>io.zipkin.brave</groupId>
<artifactId>brave-instrumentation-dubbo-rpc</artifactId>
<version>${brave.instrumentation.version}</version>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin</artifactId>
<version>${zipkin.version}</version>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-server</artifactId>
<version>${zipkin.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-autoconfigure-ui</artifactId>
<version>${zipkin.version}</version>
</dependency> </dependency>
<!-- 引入 zipkin repoter 的 BOM 文件 -->
<dependency> <dependency>
<groupId>com.github.jessyZu</groupId> <groupId>io.zipkin.reporter2</groupId>
<artifactId>dubbo-zipkin-spring-starter</artifactId> <artifactId>zipkin-reporter-bom</artifactId>
<version>${dubbo.zipkin.spring.version}</version> <version>${zipkin-reporter.version}</version>
</dependency> <type>pom</type>
<dependency> <scope>import</scope>
<groupId>com.qianmi</groupId>
<artifactId>dubbo-rpc-jsonrpc</artifactId>
<version>${jsonrpc.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty-threadpool -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-threadpool</artifactId>
<version>${mortbay.jetty.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${mortbay.jetty.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.netflix.hystrix/hystrix-core -->
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
<version>${hystrix.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>${mapper.version}</version>
</dependency>
<dependency>
<groupId>org.apache.ibatis</groupId>
<artifactId>ibatis-core</artifactId>
<version>${ibatis.version}</version>
</dependency>
<dependency>
<groupId>com.belerweb</groupId>
<artifactId>pinyin4j</artifactId>
<version>${py4j.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis.spring.integration}</version>
</dependency>
<dependency>
<groupId>io.protostuff</groupId>
<artifactId>protostuff-core</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>io.protostuff</groupId>
<artifactId>protostuff-runtime</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${codehaus.jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${codehaus.jackson.version}</version>
</dependency>
<dependency>
<groupId>org.modelmapper</groupId>
<artifactId>modelmapper</artifactId>
<version>${modelmapper.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate.validator.version}</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.6</version>
</dependency>
<dependency>
<groupId>com.deepoove</groupId>
<artifactId>swagger-dubbo</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-core</artifactId>
<version>1.5.16</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.10</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.4</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.11.2</version>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.8.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.aliyun.openservices</groupId> <groupId>org.elasticsearch</groupId>
<artifactId>ons-client</artifactId> <artifactId>elasticsearch</artifactId>
<version>1.8.0.Final</version> <version>6.6.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>tomcat</groupId> <groupId>org.elasticsearch.client</groupId>
<artifactId>servlet-api</artifactId> <artifactId>transport</artifactId>
<version>5.5.23</version> <version>6.6.2</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.elasticsearch.plugin/transport-netty4-client -->
<dependency> <dependency>
<groupId>org.apache.bval</groupId> <groupId>org.elasticsearch.plugin</groupId>
<artifactId>bval-jsr303</artifactId> <artifactId>transport-netty4-client</artifactId>
<version>0.5</version> <version>6.6.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<build> <!--强制依赖-->
<resources> <dependencies>
<resource> <dependency>
<directory>src/main/resources</directory> <groupId>org.springframework.boot</groupId>
<filtering>true</filtering> <artifactId>spring-boot-starter-data-redis</artifactId>
</resource> </dependency>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>props/jdbc.properties</include>
<include>*.xml</include>
</includes>
</testResource>
<testResource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>props/jdbc.properties</exclude>
</excludes>
</testResource>
</testResources>
<pluginManagement> <dependency>
<plugins> <groupId>redis.clients</groupId>
<plugin> <artifactId>jedis</artifactId>
<groupId>org.apache.maven.plugins</groupId> </dependency>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins> <dependency>
</pluginManagement> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zookeeper.version}</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper.boot.version}</version>
<exclusions>
<exclusion>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId>
<version>${zkClient.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>${dubbo.spring.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${mortbay_jetty_version}</version>
</dependency>
<dependency>
<groupId>com.qianmi</groupId>
<artifactId>dubbo-rpc-jsonrpc</artifactId>
<version>${dubbo.rpc.jsonrpc}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-threadpool</artifactId>
<version>${mortbay.jetty.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${mortbay.jetty.version}</version>
</dependency>
</dependencies>
<build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.2.3</version>
<configuration>
<imageName>${docker.image.prefix}/${project.artifactId}:${project.version}-${git.commit.id.abbrev}</imageName>
<dockerDirectory>${project.build.directory}/classes/build</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
<include>*/Dockerfile</include>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration> <configuration>
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>
<compilerArgument>-Xlint:all</compilerArgument> <compilerArgument>-parameters</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.9.v20150224</version>
<configuration> <configuration>
<reload>manual</reload> <encoding>${project.build.sourceEncoding}</encoding>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
<httpConnector>
<port>8080</port>
<host>127.0.0.1</host>
</httpConnector>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<distributionManagement> <distributionManagement>
<repository> <repository>
...@@ -475,4 +297,5 @@ ...@@ -475,4 +297,5 @@
<url>http://nexus.yidianling.com/repository/snapshots/</url> <url>http://nexus.yidianling.com/repository/snapshots/</url>
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment