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>
<dependency> <dependency>
<groupId>com.belerweb</groupId> <groupId>org.elasticsearch</groupId>
<artifactId>pinyin4j</artifactId> <artifactId>elasticsearch</artifactId>
<version>${py4j.version}</version> <version>6.6.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>org.elasticsearch.client</groupId>
<artifactId>druid</artifactId> <artifactId>transport</artifactId>
<version>${druid.version}</version> <version>6.6.2</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.elasticsearch.plugin/transport-netty4-client -->
<dependency> <dependency>
<groupId>org.mybatis</groupId> <groupId>org.elasticsearch.plugin</groupId>
<artifactId>mybatis</artifactId> <artifactId>transport-netty4-client</artifactId>
<version>${mybatis.version}</version> <version>6.6.2</version>
</dependency> </dependency>
</dependencies>
</dependencyManagement>
<!--强制依赖-->
<dependencies>
<dependency> <dependency>
<groupId>org.mybatis</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>mybatis-spring</artifactId> <artifactId>spring-boot-starter-data-redis</artifactId>
<version>${mybatis.spring.integration}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.protostuff</groupId> <groupId>redis.clients</groupId>
<artifactId>protostuff-core</artifactId> <artifactId>jedis</artifactId>
<version>${protostuff.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.protostuff</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>protostuff-runtime</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<version>${protostuff.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jboss.netty</groupId> <groupId>org.springframework.kafka</groupId>
<artifactId>netty</artifactId> <artifactId>spring-kafka</artifactId>
<version>${netty.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.testng</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>testng</artifactId> <artifactId>spring-boot-starter-aop</artifactId>
<version>${testng.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.codehaus.jackson</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>jackson-core-asl</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<version>${codehaus.jackson.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.codehaus.jackson</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>jackson-mapper-asl</artifactId> <artifactId>spring-boot-configuration-processor</artifactId>
<version>${codehaus.jackson.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.modelmapper</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>modelmapper</artifactId> <artifactId>gson</artifactId>
<version>${modelmapper.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.hibernate</groupId> <groupId>org.apache.commons</groupId>
<artifactId>hibernate-validator</artifactId> <artifactId>commons-lang3</artifactId>
<version>${hibernate.validator.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.validation</groupId> <groupId>org.projectlombok</groupId>
<artifactId>validation-api</artifactId> <artifactId>lombok</artifactId>
<version>1.1.0.Final</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mybatis.generator</groupId> <groupId>joda-time</groupId>
<artifactId>mybatis-generator-core</artifactId> <artifactId>joda-time</artifactId>
<version>1.3.6</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.deepoove</groupId> <groupId>com.google.guava</groupId>
<artifactId>swagger-dubbo</artifactId> <artifactId>guava</artifactId>
<version>1.1.2</version> <version>${guava.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>org.apache.zookeeper</groupId>
<artifactId>swagger-core</artifactId> <artifactId>zookeeper</artifactId>
<version>1.5.16</version> <version>${zookeeper.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.pagehelper</groupId> <groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId> <artifactId>pagehelper-spring-boot-starter</artifactId>
<version>4.2.1</version> <version>${pagehelper.boot.version}</version>
<exclusions>
<exclusion>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>joda-time</groupId> <groupId>com.101tec</groupId>
<artifactId>joda-time</artifactId> <artifactId>zkclient</artifactId>
<version>2.10</version> <version>${zkClient.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>com.alibaba</groupId>
<artifactId>lombok</artifactId> <artifactId>druid</artifactId>
<version>1.16.4</version> <version>${druid.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jsoup</groupId> <groupId>com.alibaba.boot</groupId>
<artifactId>jsoup</artifactId> <artifactId>dubbo-spring-boot-starter</artifactId>
<version>1.11.2</version> <version>${dubbo.spring.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.aliyun.oss</groupId> <groupId>org.mortbay.jetty</groupId>
<artifactId>aliyun-sdk-oss</artifactId> <artifactId>jetty</artifactId>
<version>2.8.3</version> <version>${mortbay_jetty_version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.aliyun.openservices</groupId> <groupId>com.qianmi</groupId>
<artifactId>ons-client</artifactId> <artifactId>dubbo-rpc-jsonrpc</artifactId>
<version>1.8.0.Final</version> <version>${dubbo.rpc.jsonrpc}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>tomcat</groupId> <groupId>org.mortbay.jetty</groupId>
<artifactId>servlet-api</artifactId> <artifactId>jetty-threadpool</artifactId>
<version>5.5.23</version> <version>${mortbay.jetty.version}</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty -->
<dependency> <dependency>
<groupId>org.apache.bval</groupId> <groupId>org.mortbay.jetty</groupId>
<artifactId>bval-jsr303</artifactId> <artifactId>jetty</artifactId>
<version>0.5</version> <version>${mortbay.jetty.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement>
<build> <build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<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>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<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