<?xml version="1.0"?>
|
<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.by4cloud</groupId>
|
<artifactId>platform-processing</artifactId>
|
<version>4.2.0</version>
|
</parent>
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>platform-processing-biz</artifactId>
|
|
<dependencies>
|
<dependency>
|
<groupId>com.github.xiaoymin</groupId>
|
<artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
|
<version>4.0.0</version>
|
</dependency>
|
<dependency>
|
<groupId>org.springdoc</groupId>
|
<artifactId>springdoc-openapi-ui</artifactId>
|
<version>1.6.14</version>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.cloud</groupId>
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
</dependency>
|
<!--必备: undertow容器-->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
</dependency>
|
<!--必备: spring boot web-->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
</dependency>
|
<!--必备: 注册中心客户端-->
|
<dependency>
|
<groupId>com.alibaba.cloud</groupId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
</dependency>
|
<!--必备: 配置中心客户端-->
|
<dependency>
|
<groupId>com.alibaba.cloud</groupId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
</dependency>
|
<!--必备: 操作数据源相关-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-data-yj</artifactId>
|
<version>4.2.0</version>
|
</dependency>
|
<!--必备:platform安全模块-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-security</artifactId>
|
</dependency>
|
<!--必备:xss 过滤模块-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-xss</artifactId>
|
</dependency>
|
<!--必备: sentinel 依赖-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-sentinel</artifactId>
|
</dependency>
|
<!--必备: feign 依赖-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-feign</artifactId>
|
</dependency>
|
<!--必备: 依赖api模块-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-yunxiao-api</artifactId>
|
<version>4.2.0</version>
|
</dependency>
|
<!--必备: log 依赖-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-log</artifactId>
|
</dependency>
|
<!--选配: mybatis 依赖 -->
|
<dependency>
|
<groupId>com.baomidou</groupId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
</dependency>
|
<!--选配: druid 连接池 -->
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>druid-spring-boot-starter</artifactId>
|
</dependency>
|
<!--选配: mysql 数据库驱动 -->
|
<dependency>
|
<groupId>mysql</groupId>
|
<artifactId>mysql-connector-java</artifactId>
|
</dependency>
|
<!--选配: swagger文档-->
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-swagger</artifactId>
|
</dependency>
|
<!--测试: spring boot test-->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-common-job</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.by4cloud</groupId>
|
<artifactId>platform-processing-api</artifactId>
|
<version>4.2.0</version>
|
<scope>compile</scope>
|
</dependency>
|
</dependencies>
|
<build>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
</plugin>
|
<plugin>
|
<groupId>io.fabric8</groupId>
|
<artifactId>docker-maven-plugin</artifactId>
|
</plugin>
|
<!--上线部署 JAR启动分离依赖lib和配置-->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-resources-plugin</artifactId>
|
<version>3.1.0</version>
|
</plugin>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
</plugin>
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-jar-plugin</artifactId>
|
<configuration>
|
<!--不打包资源文件-->
|
<excludes>
|
<exclude>*.**</exclude>
|
</excludes>
|
<archive>
|
<manifest>
|
<addClasspath>true</addClasspath>
|
<classpathPrefix>lib/</classpathPrefix>
|
<!--jar包不包含唯一版本标识-->
|
<useUniqueVersions>false</useUniqueVersions>
|
<!--程序启动类application.java的路径-->
|
<mainClass>com.by4cloud.platform.processing.ProcessingApp</mainClass>
|
</manifest>
|
<!-- 指定配置文件目录,这样jar运行时会去找到同目录下的config文件夹下查找 -->
|
<manifestEntries>
|
<Class-Path>config/</Class-Path>
|
</manifestEntries>
|
</archive>
|
<outputDirectory>1-running/</outputDirectory>
|
</configuration>
|
</plugin>
|
<!--拷贝依赖 copy-dependencies-->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy-dependencies</id>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-dependencies</goal>
|
</goals>
|
<configuration>
|
<outputDirectory>
|
1-running/lib/
|
</outputDirectory>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
<!--拷贝资源文件 copy-resources-->
|
<plugin>
|
<artifactId>maven-resources-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy-resources</id>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-resources</goal>
|
</goals>
|
<configuration>
|
<resources>
|
<resource>
|
<directory>src/main/resources</directory>
|
<!-- 指定参与构建的resoures-->
|
<includes>
|
<include>*.**</include>
|
</includes>
|
</resource>
|
</resources>
|
<outputDirectory>1-running/config</outputDirectory>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
</plugins>
|
</build>
|
</project>
|