<?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> <artifactId>m2pool-modules</artifactId> <groupId>com.m2pool</groupId> <version>3.5.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>m2pool-chat</artifactId> <!-- <packaging>war</packaging>--> <!-- <dependencies>--> <!-- <dependency>--> <!-- <groupId>junit</groupId>--> <!-- <artifactId>junit</artifactId>--> <!-- <version>4.13.1</version>--> <!-- <scope>test</scope>--> <!-- </dependency>--> <!-- </dependencies>--> <dependencies> <!-- SpringCloud Alibaba Nacos --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> <!-- SpringCloud Alibaba Nacos Config --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> </dependency> <!-- SpringCloud Alibaba Sentinel --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- SpringBoot Actuator --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <!-- Swagger UI --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>${swagger.fox.version}</version> </dependency> <!-- Mysql Connector --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <!-- Lombok --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId> <scope>provided</scope> </dependency> <!-- <!– Mybatis-Plus –>--> <!-- <dependency>--> <!-- <groupId>com.baomidou</groupId>--> <!-- <artifactId>mybatis-plus-boot-starter</artifactId>--> <!-- <exclusions>--> <!-- <exclusion>--> <!-- <artifactId>jsqlparser</artifactId>--> <!-- <groupId>com.github.jsqlparser</groupId>--> <!-- </exclusion>--> <!--<!– <exclusion>–>--> <!--<!– <artifactId>mybatis</artifactId>–>--> <!--<!– <groupId>org.mybatis</groupId>–>--> <!--<!– </exclusion>–>--> <!-- </exclusions>--> <!-- </dependency>--> <!-- M2Pool Common DataSource --> <dependency> <groupId>com.m2pool</groupId> <artifactId>common-datasource</artifactId> </dependency> <!-- M2Pool Common security --> <dependency> <groupId>com.m2pool</groupId> <artifactId>common-security</artifactId> </dependency> <dependency> <groupId>com.m2pool</groupId> <artifactId>common-log</artifactId> </dependency> <dependency> <groupId>com.m2pool</groupId> <artifactId>common-swagger</artifactId> </dependency> <!-- WebSocket--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.5</version> </dependency> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.6.2</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.7</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.5.3</version> </dependency> <!--google两步认证相关--> <dependency> <groupId>de.taimos</groupId> <artifactId>totp</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.10</version> </dependency> <dependency> <groupId>com.google.zxing</groupId> <artifactId>javase</artifactId> <version>3.3.0</version> </dependency> </dependencies> <profiles> <profile> <!-- 本地环境 --> <id>dev</id> <properties> <spring.profile>dev</spring.profile> <nacos.server.address>127.0.0.1:8808</nacos.server.address> </properties> <activation> <!-- 是否默认激活 --> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <!-- 测试环境 --> <id>test</id> <properties> <spring.profile>test</spring.profile> <nacos.server.address>127.0.0.1:8808</nacos.server.address> </properties> <activation> <activeByDefault>false</activeByDefault> </activation> </profile> <profile> <!-- 生产环境 --> <id>prod</id> <properties> <spring.profile>prod</spring.profile> <nacos.server.address>127.0.0.1:8808</nacos.server.address> </properties> <activation> <activeByDefault>false</activeByDefault> </activation> </profile> </profiles> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.5.6</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>