123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- <?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>
- <commons-collections.version>4.4</commons-collections.version>
- <commons-text.version>1.8</commons-text.version>
- <druid.version>1.2.20</druid.version>
- <fastjson.version>2.0.53</fastjson.version>
- <java.version>1.8</java.version>
- <jetcache.version>2.5.16</jetcache.version>
- <jpos.version>2.1.3</jpos.version>
- <nacos.client.version>2.4.3</nacos.client.version>
- <pagehelper.version>5.1.11</pagehelper.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <spring-cloud.version>2021.0.8</spring-cloud.version>
- <spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
- <spring-boot.version>2.7.16</spring-boot.version>
- <io.springfox>3.0.0</io.springfox>
- <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
- <mockito-core.version>2.28.2</mockito-core.version>
- <mysql.5.version>5.1.48</mysql.5.version>
- <os-maven-plugin.version>1.6.2</os-maven-plugin.version>
- <grpc.version>1.51.0</grpc.version>
- <protobuf.version>3.25.5</protobuf.version>
- <dubbo.version>3.3.2</dubbo.version>
- <lombok.version>1.18.26</lombok.version>
- <redisson.version>3.24.2</redisson.version>
- <hutool.version>5.8.22</hutool.version>
- <spring-kafka>2.9.13</spring-kafka>
- <commons-csv.version>1.6</commons-csv.version>
- <mybatis-spring.version>2.0.7</mybatis-spring.version>
- <xxl-job.version>2.4.0</xxl-job.version>
- <mybatis-plus.version>3.5.9</mybatis-plus.version>
- <rocketmq-spring-boot-starter>2.3.1</rocketmq-spring-boot-starter>
- </properties>
- <repositories>
- <repository>
- <id>nexus</id>
- <name>Team Nexus Repository</name>
- <url>http://nexus.ywtinfo.com/repository/maven-public/</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>nexus</id>
- <name>Team Nexus Repository</name>
- <url>http://nexus.ywtinfo.com/repository/maven-public/</url>
- </pluginRepository>
- </pluginRepositories>
- <!-- 只是定义,子模块 -->
- <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作为默认容器,可使用jetty作为容器-->
- <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>
- <!-- 统一定义dubbo 的版本-->
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-bom</artifactId>
- <version>${dubbo.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- 统一定义io-grpc 的版本-->
- <dependency>
- <groupId>io.grpc</groupId>
- <artifactId>grpc-bom</artifactId>
- <version>${grpc.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- 统一定义hutool的版本-->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-bom</artifactId>
- <version>${hutool.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-bom</artifactId>
- <version>${mybatis-plus.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- web 容器使用 undertow 性能更强 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- <version>${spring-boot.version}</version>
- </dependency>
- <dependency>
- <groupId>org.redisson</groupId>
- <artifactId>redisson</artifactId>
- <version>${redisson.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- <version>${spring-boot.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba.nacos</groupId>
- <artifactId>nacos-client</artifactId>
- <version>${nacos.client.version}</version>
- </dependency>
- <!-- swagger api -->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-boot-starter</artifactId>
- <version>${io.springfox}</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- <version>3.0.0</version>
- </dependency>
- <!-- mysql jdbc -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.5.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>${druid.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-collections4</artifactId>
- <version>${commons-collections.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>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>
- <exclusions>
- <exclusion>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.google.protobuf</groupId>
- <artifactId>protobuf-bom</artifactId>
- <version>${protobuf.version}</version>
- <scope>import</scope>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>${lombok.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.kafka</groupId>
- <artifactId>spring-kafka</artifactId>
- <version>${spring-kafka}</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
- <version>${javax.servlet-api.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-csv</artifactId>
- <version>${commons-csv.version}</version>
- </dependency>
- <!-- xxl-job-core -->
- <dependency>
- <groupId>com.xuxueli</groupId>
- <artifactId>xxl-job-core</artifactId>
- <version>${xxl-job.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.rocketmq</groupId>
- <artifactId>rocketmq-spring-boot-starter</artifactId>
- <version>${rocketmq-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>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>3.0.0-M1</version>
- </plugin>
- </plugins>
- </build>
- <!-- 工程的deploy地址,不要每个子模块都定义 -->
- <distributionManagement>
- <snapshotRepository>
- <id>snapshots</id>
- <name>Nexus Snapshot Repository</name>
- <url>http://nexus.ywtinfo.com/repository/maven-snapshots/</url>
- </snapshotRepository>
- <repository>
- <id>nexus</id>
- <name>Team Nexus Repository</name>
- <url>http://nexus.ywtinfo.com/repository/maven-public/</url>
- </repository>
- </distributionManagement>
- </project>
|