赞
踩
- <?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>
- <groupId>com.xxxx.xxxx</groupId>
- <artifactId>xxxx-parent</artifactId>
- <version>1.0</version>
- <packaging>pom</packaging>
- <name>xxxx-parent</name>
- <description>xxxx</description>
- <properties>
- <!-- 项目版本 -->
- <revision>1.0</revision>
- <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <fastjson.version>1.2.76</fastjson.version>
- <lombok.version>1.18.20</lombok.version>
- <spring-boot-dependencies.version>2.4.5</spring-boot-dependencies.version>
- <tio.version>3.7.2.v20210316-RELEASE</tio.version>
- <protostuff.version>1.7.4</protostuff.version>
-
- <postgresql.version>42.2.20</postgresql.version>
- <pagehelper-spring-boot-starter.version>1.3.0</pagehelper-spring-boot-starter.version>
- <pinyin4j.version>2.5.1</pinyin4j.version>
- <hibernate-validator.version>7.0.1.Final</hibernate-validator.version>
- <springfox-boot-starter.version>3.0.0</springfox-boot-starter.version>
-
- <hutool.version>5.7.2</hutool.version>
- <kaptcha.version>2.3.2</kaptcha.version>
-
- <mybatis-spring-boot-starter.version>2.2.0</mybatis-spring-boot-starter.version>
- <rocketmq-spring-boot-starter.version>2.2.0</rocketmq-spring-boot-starter.version>
- <rocketmq-client.version>4.9.0</rocketmq-client.version>
- <querydsl.version>4.4.0</querydsl.version>
- <druid-spring-boot-starter.version>1.2.6</druid-spring-boot-starter.version>
- <mybatis.generator.core>1.3.2</mybatis.generator.core>
- <mybatis.generator.maven.plugin>1.3.2</mybatis.generator.maven.plugin>
- <ip2region.version>1.7.2</ip2region.version>
- <common.lange3>3.12.0</common.lange3>
- <redisson.version>3.16.8</redisson.version>
- <springfox.version>2.9.2</springfox.version>
- <swagger.models.version>1.5.22</swagger.models.version>
- <jim.version>3.0.0.v20200501-RELEASE</jim.version>
- <easyexcel.version>3.0.5</easyexcel.version>
- <log4j2.version>2.17.0</log4j2.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <!-- 工具类(包含日志 、POI文档操作、缓存、数据库、表达式、日志、基础工具类、验证码、socket等等) -->
- <!-- API文档参考:https://apidoc.gitee.com/dromara/hutool/ -->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>${hutool.version}</version>
- </dependency>
- </dependencies>
-
- <dependencyManagement>
- <dependencies>
- <!-- 验证码 -->
- <dependency>
- <groupId>com.github.penggle</groupId>
- <artifactId>kaptcha</artifactId>
- <version>${kaptcha.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>easyexcel</artifactId>
- <version>${easyexcel.version}</version>
- </dependency>
- <!--分页插件-->
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-starter</artifactId>
- <version>${pagehelper-spring-boot-starter.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>${common.lange3}</version>
- </dependency>
-
- <!-- spring boot 家族 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring-boot-dependencies.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <!-- 数据库 -->
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgresql.version}</version>
- </dependency>
-
- <!-- springfox -->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- <version>${springfox.version}</version>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger2</artifactId>
- <version>${springfox.version}</version>
- </dependency>
-
- <dependency>
- <groupId>io.swagger</groupId>
- <artifactId>swagger-models</artifactId>
- <!--1.5.22-->
- <version>${swagger.models.version}</version>
- </dependency>
-
- <!-- alibaba-druid -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>${druid-spring-boot-starter.version}</version>
- </dependency>
-
- <!-- 拼音工具类 -->
- <dependency>
- <groupId>com.belerweb</groupId>
- <artifactId>pinyin4j</artifactId>
- <version>${pinyin4j.version}</version>
- </dependency>
- <!-- 验证框架 -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>${hibernate-validator.version}</version>
- </dependency>
- <!-- mybatis框架 -->
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>${mybatis-spring-boot-starter.version}</version>
- </dependency>
- <!-- Rocketmq -->
- <dependency>
- <groupId>org.apache.rocketmq</groupId>
- <artifactId>rocketmq-spring-boot-starter</artifactId>
- <version>${rocketmq-spring-boot-starter.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.rocketmq</groupId>
- <artifactId>rocketmq-client</artifactId>
- <version>${rocketmq-client.version}</version>
- </dependency>
- <!-- tio系列 -->
- <dependency>
- <groupId>org.t-io</groupId>
- <artifactId>tio-core</artifactId>
- <version>${tio.version}</version>
- </dependency>
- <dependency>
- <groupId>org.t-io</groupId>
- <artifactId>tio-websocket-server</artifactId>
- <version>${tio.version}</version>
- </dependency>
- <!--ip转地址-->
- <dependency>
- <groupId>org.lionsoul</groupId>
- <artifactId>ip2region</artifactId>
- <version>${ip2region.version}</version>
- </dependency>
- <!-- 分布式锁 适配 https://github.com/redisson/redisson/tree/master/redisson-spring-boot-starter -->
- <!-- 示例: https://blog.csdn.net/vistaed/article/details/107026758 -->
- <dependency>
- <groupId>org.redisson</groupId>
- <artifactId>redisson-spring-boot-starter</artifactId>
- <version>${redisson.version}</version>
- </dependency>
- </dependencies>
-
-
- </dependencyManagement>
-
- <modules>
- <module>xxxx</module>
- <module>chat-server</module>
- <module>im</module>
- <module>xxxx_mq</module>
- </modules>
- </project>
包含springboot启动
- <?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">
- <parent>
- <groupId>com.xxxx.xxxx</groupId>
- <artifactId>xxxx-parent</artifactId>
- <version>1.0</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>chat-server</artifactId>
- <properties>
- <j-im.version>3.0.0.v20200501-RELEASE</j-im.version>
- <jedis.version>2.9.3</jedis.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <!-- 移除掉默认支持的 Tomcat -->
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- 添加 Undertow 容器 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- </dependency>
- <!-- <dependency>
- <groupId>org.j-im</groupId>
- <artifactId>jim-server</artifactId>
- <version>${j-im.version}</version>
- </dependency> -->
- <!--引入mq-->
- <dependency>
- <groupId>com.xxxx.xxxx</groupId>
- <artifactId>xxxx_mq</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.xxxx.xxxx</groupId>
- <artifactId>im-server</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>redis.clients</groupId>
- <artifactId>jedis</artifactId>
- <version>${jedis.version}</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>8</source>
- <target>8</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。