<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.ynfy</groupId>
  <artifactId>exam</artifactId>
  <version>3.5.5</version>
  <packaging>pom</packaging>

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.7.10</version>
    <relativePath/>
  </parent>

  <properties>
    <jeecgboot.version>3.5.5</jeecgboot.version>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>


    <xxl-job-core.version>2.2.0</xxl-job-core.version>
    <fastjson.version>1.2.83</fastjson.version>
    <pegdown.version>1.6.0</pegdown.version>
    <knife4j-spring-boot-starter.version>3.0.3</knife4j-spring-boot-starter.version>
    <knife4j-spring-ui.version>2.0.9</knife4j-spring-ui.version>
    <!-- 数据库驱动 -->
    <mysql-connector-java.version>8.0.27</mysql-connector-java.version>
    <hutool.version>5.3.8</hutool.version>

    <!-- 持久层 -->
    <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
    <dynamic-datasource-spring-boot-starter.version>3.5.2</dynamic-datasource-spring-boot-starter.version>
    <druid.version>1.2.15</druid.version>
    <minidao.version>1.9.4</minidao.version>

    <commons.version>2.6</commons.version>
    <aliyun-java-sdk-dysmsapi.version>2.1.0</aliyun-java-sdk-dysmsapi.version>
    <aliyun.oss.version>3.11.2</aliyun.oss.version>
    <!-- shiro -->
    <shiro.version>1.12.0</shiro.version>
    <java-jwt.version>3.11.0</java-jwt.version>
    <shiro-redis.version>3.1.0</shiro-redis.version>
    <codegenerate.version>1.4.4</codegenerate.version>
    <autopoi-web.version>1.4.5</autopoi-web.version>
    <minio.version>8.0.3</minio.version>
    <justauth-spring-boot-starter.version>1.3.4</justauth-spring-boot-starter.version>
    <dom4j.version>1.6.1</dom4j.version>
    <qiniu-java-sdk.version>7.4.0</qiniu-java-sdk.version>
    <!-- Log4j2爆雷漏洞 -->
    <log4j2.version>2.17.0</log4j2.version>
    <logback.version>1.2.9</logback.version>
  </properties>

  <modules>
    <module>core</module>
    <module>web</module>
    <module>system</module>
  </modules>

  <repositories>
    <repository>
      <id>aliyun</id>
      <name>aliyun Repository</name>
      <url>https://maven.aliyun.com/repository/public</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Lombok -->
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
    </dependency>
    <!-- json -->
    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>fastjson</artifactId>
      <version>${fastjson.version}</version>
    </dependency>
    <!-- markdown -->
    <dependency>
      <groupId>org.pegdown</groupId>
      <artifactId>pegdown</artifactId>
      <version>${pegdown.version}</version>
    </dependency>
  </dependencies>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>cn.hutool</groupId>
        <artifactId>hutool-all</artifactId>
        <version>${hutool.version}</version>
      </dependency>
      <!-- system 模块-->
      <dependency>
        <groupId>com.ynfy</groupId>
        <artifactId>system-biz</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>

      <!-- jeecg tools -->
      <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>jeecg-boot-common</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>
      <!-- jeecg core -->
      <dependency>
        <groupId>com.ynfy</groupId>
        <artifactId>core</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>
      <!-- system 单体 api -->
      <dependency>
        <groupId>com.ynfy</groupId>
        <artifactId>system-local-api</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>

      <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>jeecg-boot-starter-job</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>
      <!--redis分布式锁-->
      <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>jeecg-boot-starter-lock</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>
      <!--rabbitmq消息队列-->
      <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>jeecg-boot-starter-rabbitmq</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>
      <!--分库分表shardingsphere-->
      <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>jeecg-boot-starter-shardingsphere</artifactId>
        <version>${jeecgboot.version}</version>
      </dependency>
      <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>5.6.7.Final</version>
        <exclusions>
          <exclusion>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.jeecgframework.boot</groupId>
        <artifactId>hibernate-re</artifactId>
        <version>3.5.3</version>
      </dependency>

      <!-- 七牛云SDK -->
      <dependency>
        <groupId>com.qiniu</groupId>
        <artifactId>qiniu-java-sdk</artifactId>
        <version>${qiniu-java-sdk.version}</version>
        <exclusions>
          <exclusion>
            <artifactId>okhttp</artifactId>
            <groupId>com.squareup.okhttp3</groupId>
          </exclusion>
        </exclusions>
      </dependency>
      <!-- dom4j -->
      <dependency>
        <groupId>dom4j</groupId>
        <artifactId>dom4j</artifactId>
        <version>${dom4j.version}</version>
      </dependency>
      <!-- fileupload -->
      <dependency>
        <groupId>commons-fileupload</groupId>
        <artifactId>commons-fileupload</artifactId>
        <version>1.5</version>
        <exclusions>
          <exclusion>
            <artifactId>commons-io</artifactId>
            <groupId>commons-io</groupId>
          </exclusion>
        </exclusions>
      </dependency>

      <!-- justauth第三方登录  -->
      <dependency>
        <groupId>com.xkcoding.justauth</groupId>
        <artifactId>justauth-spring-boot-starter</artifactId>
        <version>${justauth-spring-boot-starter.version}</version>
        <exclusions>
          <exclusion>
            <artifactId>hutool-core</artifactId>
            <groupId>cn.hutool</groupId>
          </exclusion>
          <exclusion>
            <artifactId>fastjson</artifactId>
            <groupId>com.alibaba</groupId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.squareup.okhttp3</groupId>
        <artifactId>okhttp</artifactId>
        <version>4.4.1</version>
      </dependency>
      <!--minio-->
      <dependency>
        <groupId>io.minio</groupId>
        <artifactId>minio</artifactId>
        <version>${minio.version}</version>
        <exclusions>
          <exclusion>
            <artifactId>okio</artifactId>
            <groupId>com.squareup.okio</groupId>
          </exclusion>
          <exclusion>
            <artifactId>okhttp</artifactId>
            <groupId>com.squareup.okhttp3</groupId>
          </exclusion>
        </exclusions>
      </dependency>
      <!-- 企业微信和钉钉 api -->
      <dependency>
        <groupId>org.jeecgframework</groupId>
        <artifactId>jeewx-api</artifactId>
        <version>1.5.2</version>
        <exclusions>
          <exclusion>
            <artifactId>commons-beanutils</artifactId>
            <groupId>commons-beanutils</groupId>
          </exclusion>
          <exclusion>
            <artifactId>commons-lang</artifactId>
            <groupId>commons-lang</groupId>
          </exclusion>
        </exclusions>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <!-- 指定JDK编译版本 -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <!-- 打包跳过测试 -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
      <!-- 避免font文件的二进制文件格式压缩破坏 -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
          <nonFilteredFileExtensions>
            <nonFilteredFileExtension>woff</nonFilteredFileExtension>
            <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
            <nonFilteredFileExtension>eot</nonFilteredFileExtension>
            <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
            <nonFilteredFileExtension>svg</nonFilteredFileExtension>
            <nonFilteredFileExtension>docx</nonFilteredFileExtension>
            <nonFilteredFileExtension>doc</nonFilteredFileExtension>
            <nonFilteredFileExtension>xls</nonFilteredFileExtension>
            <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
          </nonFilteredFileExtensions>
        </configuration>
      </plugin>
    </plugins>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
      <resource>
        <directory>src/main/java</directory>
        <includes>
          <include>**/*.xml</include>
          <include>**/*.json</include>
          <include>**/*.ftl</include>
          <include>**/*.docx</include>
          <include>**/*.xlsx</include>
        </includes>
      </resource>
    </resources>
  </build>

  <distributionManagement>
    <repository>
      <id>jeecg</id>
      <name>jeecg Repository</name>
      <url>http://maven.jeecg.com:8090/nexus/content/repositories/jeecg</url>
    </repository>
    <snapshotRepository>
      <id>jeecg-snapshots</id>
      <name>jeecg Snapshot Repository</name>
      <url>http://maven.jeecg.com:8090/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
</project>