<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.tydic.nicc</groupId>
    <artifactId>nicc-common</artifactId>
    <version>1.7.0</version>
  </parent>
  <groupId>com.tydic.nbchat</groupId>
  <artifactId>nbchat-user</artifactId>
  <version>1.9.4</version>
  <packaging>pom</packaging>
  <name>nbchat-user</name>
  <description>用户中心</description>
  <modules>
    <module>nbchat-user-api</module>
    <module>nbchat-user-service</module>
    <module>nbchat-user-core</module>
    <module>nbchat-user-mapper</module>
  </modules>
  <distributionManagement>
    <repository>
      <id>releases</id>
      <name>Nexus Release Repository</name>
      <url>http://118.190.78.212:8081/nexus/content/repositories/releases/</url>
    </repository>
    <snapshotRepository>
      <id>snapshots</id>
      <name>Nexus Snapshot Repository</name>
      <url>http://118.190.78.212:8081/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <jsckson-version>2.13.5</jsckson-version>
    <dingtalk.version>2.0.0</dingtalk.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <hutool.version>5.8.22</hutool.version>
    <revision>1.9.4</revision>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.tydic.nicc.dc</groupId>
        <artifactId>dc-boot-starter</artifactId>
        <exclusions>
          <exclusion>
            <artifactId>lettuce-core</artifactId>
            <groupId>io.lettuce</groupId>
          </exclusion>
          <exclusion>
            <artifactId>kryo</artifactId>
            <groupId>com.esotericsoftware</groupId>
          </exclusion>
          <exclusion>
            <artifactId>commons-logging</artifactId>
            <groupId>commons-logging</groupId>
          </exclusion>
          <exclusion>
            <artifactId>aws-java-sdk-s3</artifactId>
            <groupId>com.amazonaws</groupId>
          </exclusion>
          <exclusion>
            <artifactId>cos_api</artifactId>
            <groupId>com.qcloud</groupId>
          </exclusion>
          <exclusion>
            <artifactId>esdk-obs-java-bundle</artifactId>
            <groupId>com.huaweicloud</groupId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.tydic.nbchat</groupId>
        <artifactId>nbchat-user-api</artifactId>
        <version>1.9.4</version>
      </dependency>
      <dependency>
        <groupId>com.tydic.nbchat</groupId>
        <artifactId>nbchat-user-mapper</artifactId>
        <version>1.9.4</version>
      </dependency>
      <dependency>
        <groupId>com.tydic.nbchat</groupId>
        <artifactId>nbchat-user-core</artifactId>
        <version>1.9.4</version>
      </dependency>
      <dependency>
        <groupId>cn.hutool</groupId>
        <artifactId>hutool-captcha</artifactId>
        <version>${hutool.version}</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>${jsckson-version}</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${jsckson-version}</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.dataformat</groupId>
        <artifactId>jackson-dataformat-xml</artifactId>
        <version>${jsckson-version}</version>
      </dependency>
      <dependency>
        <groupId>com.aliyun</groupId>
        <artifactId>alibaba-dingtalk-service-sdk</artifactId>
        <version>${dingtalk.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.3.0</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
            <configuration>
              <updatePomFile>true</updatePomFile>
              <flattenMode>resolveCiFriendliesOnly</flattenMode>
            </configuration>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <inherited>true</inherited>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven-compiler.version}</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${maven-surefire.version}</version>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
