<?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>cn.lovecyy</groupId>
    <artifactId>relaxed-parent</artifactId>
    <version>1.6.154</version>
    <relativePath>./relaxed-parent/pom.xml</relativePath>
  </parent>
  <groupId>cn.lovecyy</groupId>
  <artifactId>relaxed</artifactId>
  <version>1.6.154</version>
  <packaging>pom</packaging>
  <name>relaxed</name>
  <description>项目基本脚手架</description>
  <url>https://github.com/xiaoashuo/relaxed</url>
  <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>yakir</name>
      <email>1412844668@qq.com</email>
    </developer>
  </developers>
  <modules>
    <module>relaxed-dependencies</module>
    <module>relaxed-parent</module>
    <module>relaxed-oauth2</module>
    <module>relaxed-common</module>
    <module>relaxed-extends</module>
    <module>relaxed-starters</module>
    <module>sftp/relaxed-spring-boot-starter-sftp</module>
    <module>cache/redis/relaxed-redis-core</module>
    <module>cache/redis/relaxed-spring-boot-starter-redis</module>
    <module>excel/relaxed-spring-boot-starter-fastexcel</module>
    <module>database/relaxed-dynamic-datasource</module>
    <module>database/relaxed-common-tenant</module>
    <module>database/relaxed-mybatis-plus</module>
    <module>database/relaxed-mybatis-plus-encrypt</module>
    <module>database/relaxed-spring-boot-starter-datascope</module>
    <module>oss/relaxed-spring-boot-starter-s3</module>
    <module>log/relaxed-common-log</module>
    <module>log/relaxed-spring-boot-starter-log</module>
    <module>job/relaxed-spring-boot-starter-job</module>
    <module>idempotent/relaxed-common-idempotent</module>
    <module>mail/relaxed-extend-mail</module>
    <module>mail/relaxed-spring-boot-starter-mail</module>
    <module>thread/pool-monitor-starter</module>
    <module>relaxed-poi-tl</module>
    <module>relaxed-test</module>
  </modules>
  <scm>
    <connection>scm:git:https://github.com/xiaoashuo/relaxed.git</connection>
    <developerConnection>scm:git:https://github.com/xiaoashuo/relaxed.git</developerConnection>
    <url>https://github.com/xiaoashuo/relaxed</url>
  </scm>
  <issueManagement>
    <system>Github Issue</system>
    <url>https://github.com/xiaoashuo/relaxed/issues</url>
  </issueManagement>
  <properties>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
    <mapstruct-processor.version>1.4.2.Final</mapstruct-processor.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>${java.version}</maven.compiler.source>
    <maven.compiler.target>${java.version}</maven.compiler.target>
  </properties>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
        <excludes>
          <exclude>static/report/**</exclude>
          <exclude>**/*.woff</exclude>
          <exclude>**/*.woff2</exclude>
          <exclude>**/*.ttf</exclude>
          <exclude>**/*.ico</exclude>
        </excludes>
      </resource>
      <resource>
        <filtering>false</filtering>
        <directory>src/main/resources</directory>
        <includes>
          <include>static/report/**</include>
          <include>**/*.woff</include>
          <include>**/*.woff2</include>
          <include>**/*.ttf</include>
          <include>**/*.ico</include>
        </includes>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <executions>
            <execution>
              <goals>
                <goal>build-info</goal>
                <goal>repackage</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>io.spring.javaformat</groupId>
        <artifactId>spring-javaformat-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>validate</goal>
            </goals>
            <inherited>true</inherited>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <annotationProcessorPaths>
            <path>
              <groupId>org.projectlombok</groupId>
              <artifactId>lombok</artifactId>
              <version>${lombok.version}</version>
            </path>
            <path>
              <groupId>org.mapstruct</groupId>
              <artifactId>mapstruct-processor</artifactId>
              <version>${mapstruct-processor.version}</version>
            </path>
            <path>
              <groupId>org.springframework.boot</groupId>
              <artifactId>spring-boot-configuration-processor</artifactId>
              <version>${spring-boot.version}</version>
            </path>
          </annotationProcessorPaths>
          <encoding>${project.build.sourceEncoding}</encoding>
          <source>${maven.compiler.source}</source>
          <target>${maven.compiler.target}</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>dev</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <profiles.active>dev</profiles.active>
      </properties>
    </profile>
    <profile>
      <id>test</id>
      <properties>
        <profiles.active>test</profiles.active>
      </properties>
    </profile>
    <profile>
      <id>prod</id>
      <properties>
        <profiles.active>prod</profiles.active>
      </properties>
    </profile>
  </profiles>
</project>
