|
@@ -0,0 +1,359 @@
|
|
|
+<?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>
|
|
|
+
|
|
|
+ <!-- spring boot 作为项目的父parent 的pom,保持当前一个产品线的基础spring boot版本一致 -->
|
|
|
+ <parent>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <version>2.7.16</version>
|
|
|
+ </parent>
|
|
|
+
|
|
|
+ <!--
|
|
|
+ groupId命名: com.公司.项目[.模块]
|
|
|
+ artifactId: 项目或是项目模块
|
|
|
+ -->
|
|
|
+ <groupId>com.ywt</groupId>
|
|
|
+ <artifactId>ywt-parent</artifactId>
|
|
|
+ <name>ywt-parent</name>
|
|
|
+ <description>医务通-父POM</description>
|
|
|
+ <packaging>pom</packaging>
|
|
|
+ <version>1.0.0-SNAPSHOT</version>
|
|
|
+ <!-- 公共属性,所有用到的jar包版本,全部定义在properties当中 -->
|
|
|
+ <properties>
|
|
|
+ <aviator.version>4.2.9</aviator.version>
|
|
|
+ <cglib.version>3.2.5</cglib.version>
|
|
|
+ <commons-collections.version>4.4</commons-collections.version>
|
|
|
+ <commons-dbutils.version>1.7</commons-dbutils.version>
|
|
|
+ <commons-text.version>1.8</commons-text.version>
|
|
|
+ <disruptor.version>3.4.2</disruptor.version>
|
|
|
+ <druid.version>1.1.21</druid.version>
|
|
|
+ <fastjson.version>1.2.62</fastjson.version>
|
|
|
+ <jasypt.version>2.1.2</jasypt.version>
|
|
|
+ <java.version>1.8</java.version>
|
|
|
+ <jetcache.version>2.5.16</jetcache.version>
|
|
|
+ <jpos.version>2.1.3</jpos.version>
|
|
|
+ <nacos.version>2021.0.5.0</nacos.version>
|
|
|
+ <nacos.client.version>2.2.1</nacos.client.version>
|
|
|
+ <pagehelper.version>5.1.11</pagehelper.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <spring-cloud.version>Hoxton.SR12</spring-cloud.version>
|
|
|
+ <spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
|
|
|
+ <spring-boot.version>2.7.16</spring-boot.version>
|
|
|
+ <spring-boot-starter-redis.version>1.4.7.RELEASE</spring-boot-starter-redis.version>
|
|
|
+ <swagger.version>2.9.2</swagger.version>
|
|
|
+ <swagger-annotations.version>1.5.20</swagger-annotations.version>
|
|
|
+ <swagger.bootstrap.ui.version>1.9.2</swagger.bootstrap.ui.version>
|
|
|
+ <powermock.version>2.0.7</powermock.version>
|
|
|
+ <mockito-core.version>2.28.2</mockito-core.version>
|
|
|
+ <plume.log.version>3.1.0-SNAPSHOT</plume.log.version>
|
|
|
+ <mysql.5.version>5.1.48</mysql.5.version>
|
|
|
+ <os-maven-plugin.version>1.6.2</os-maven-plugin.version>
|
|
|
+ <protobuf-plugin.version>0.6.1</protobuf-plugin.version>
|
|
|
+ <grpc.version>1.51.0</grpc.version>
|
|
|
+ <protobuf-java.version>3.19.6</protobuf-java.version>
|
|
|
+ <grpc-spring-boot-starter>2.14.0.RELEASE</grpc-spring-boot-starter>
|
|
|
+ <dubbo-spring-boot-starter>3.2.7</dubbo-spring-boot-starter>
|
|
|
+ <dubbo.version>3.2.7</dubbo.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <!-- 只是定义,子模块 -->
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <!--剔除的依赖包都在dependencyManagement中定义,不在依赖配置中定义-->
|
|
|
+ <!--剔除logback的日志使用,使用log4j2..-->
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-logging</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 不使用 tomcat作为默认容器,可使用undertow作为容器-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-jetty</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-redis</artifactId>
|
|
|
+ <version>${spring-boot-starter-redis.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.dubbo</groupId>
|
|
|
+ <artifactId>dubbo-spring-boot-starter</artifactId>
|
|
|
+ <version>${dubbo-spring-boot-starter}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.nacos</groupId>
|
|
|
+ <artifactId>nacos-client</artifactId>
|
|
|
+ <version>${nacos.client.versionn}</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.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- swagger api -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
+ <artifactId>springfox-swagger2</artifactId>
|
|
|
+ <version>${swagger.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
+ <artifactId>swagger-annotations</artifactId>
|
|
|
+ <version>${swagger-annotations.version}</version>
|
|
|
+ <scope>compile</scope>
|
|
|
+ </dependency>
|
|
|
+ <!-- swagger ui页面 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
+ <artifactId>springfox-swagger-ui</artifactId>
|
|
|
+ <version>${swagger.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- swagger 自定义页面 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.github.xiaoymin</groupId>
|
|
|
+ <artifactId>swagger-bootstrap-ui</artifactId>
|
|
|
+ <version>${swagger.bootstrap.ui.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- mysql jdbc -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>${mysql.5.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>cglib</groupId>
|
|
|
+ <artifactId>cglib</artifactId>
|
|
|
+ <version>${cglib.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 高速内存队列,log4j异步处理时使用 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.lmax</groupId>
|
|
|
+ <artifactId>disruptor</artifactId>
|
|
|
+ <version>${disruptor.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>${fastjson.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
+ <artifactId>commons-collections4</artifactId>
|
|
|
+ <version>${commons-collections.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.googlecode.aviator</groupId>
|
|
|
+ <artifactId>aviator</artifactId>
|
|
|
+ <version>${aviator.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- spring cloud的jar包版本依赖管理 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
|
+ <version>${spring-cloud.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
|
+ <version>${spring-cloud-alibaba.version}</version>
|
|
|
+ <scope>import</scope>
|
|
|
+ <type>pom</type>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
+ <artifactId>commons-text</artifactId>
|
|
|
+ <version>${commons-text.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
+ <version>${druid.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-dbutils</groupId>
|
|
|
+ <artifactId>commons-dbutils</artifactId>
|
|
|
+ <version>${commons-dbutils.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.powermock</groupId>
|
|
|
+ <artifactId>powermock-api-mockito2</artifactId>
|
|
|
+ <version>${powermock.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.mockito</groupId>
|
|
|
+ <artifactId>mockito-core</artifactId>
|
|
|
+ <version>${mockito-core.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <!--<scope>test</scope>-->
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.mockito</groupId>
|
|
|
+ <artifactId>mockito-core</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.plumelog</groupId>
|
|
|
+ <artifactId>plumelog-log4j2</artifactId>
|
|
|
+ <version>${plume.log.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- protobuf -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.grpc</groupId>
|
|
|
+ <artifactId>grpc-stub</artifactId>
|
|
|
+ <version>${grpc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.grpc</groupId>
|
|
|
+ <artifactId>grpc-protobuf</artifactId>
|
|
|
+ <version>${grpc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.protobuf</groupId>
|
|
|
+ <artifactId>protobuf-java</artifactId>
|
|
|
+ <version>${protobuf-java.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>net.devh</groupId>
|
|
|
+ <artifactId>grpc-spring-boot-starter</artifactId>
|
|
|
+ <version>${grpc-spring-boot-starter}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <!-- 代码编译指定jdk版本 -->
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <source>${java.version}</source>
|
|
|
+ <target>${java.version}</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <!-- 打包编译跳过测试类执行 -->
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <skipTests>true</skipTests>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <!-- 生成maven打包编译时的时间字段,这里为build.time字段 -->
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
+ <version>3.0.0</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>timestamp-property</id>
|
|
|
+ <goals>
|
|
|
+ <goal>timestamp-property</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <name>build.time</name>
|
|
|
+ <pattern>yyyy-MM-dd'T'HH:mm</pattern>
|
|
|
+ <timeZone>GMT+8</timeZone>
|
|
|
+ <locale>zh_CN</locale>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <!-- spring boot的maven包,不执行repackage的打包命令,不打包成fat可执行jar,如果需要fat可执行jar,在对应的子模块pom中重新定义覆盖父类的定义 -->
|
|
|
+ <execution>
|
|
|
+ <id>repackage</id>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <skip>true</skip>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <!-- 在包的META-INFO目录下面生成编译的build-info.properties文件,作为包的编译信息描述,此信息可通过actuator/info接口查看 -->
|
|
|
+ <execution>
|
|
|
+ <id>build-info</id>
|
|
|
+ <goals>
|
|
|
+ <goal>build-info</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <additionalProperties>
|
|
|
+ <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
+ <time>${build.time}</time>
|
|
|
+ </additionalProperties>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+ <!-- 工程的deploy地址,不要每个子模块都定义 -->
|
|
|
+ <distributionManagement>
|
|
|
+ <repository>
|
|
|
+ <id>nexus</id>
|
|
|
+ <name>Team Nexus Repository</name>
|
|
|
+ <url>http://nexus.ywtinfo.com/repository/maven-public/</url>
|
|
|
+ </repository>
|
|
|
+ </distributionManagement>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|