|
|
@@ -0,0 +1,195 @@
|
|
|
+<?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">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+ <parent>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-stat</artifactId>
|
|
|
+ <version>1.1.0</version>
|
|
|
+ </parent>
|
|
|
+
|
|
|
+ <artifactId>kxs-stat-biz</artifactId>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <maven.compiler.source>17</maven.compiler.source>
|
|
|
+ <maven.compiler.target>17</maven.compiler.target>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ </properties>
|
|
|
+ <dependencies>
|
|
|
+ <!--注册中心客户端-->
|
|
|
+ <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>
|
|
|
+ <!--undertow容器-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-stat-api</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- 产品模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-product-api</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- 用户模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-user-api</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--core 工具类-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-common-core</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- excel 导入导出 https://github.com/sky-mesh/excel-spring-boot-starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.pig4cloud.excel</groupId>
|
|
|
+ <artifactId>excel-spring-boot-starter</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--日志处理-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-common-log</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--安全模块-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-common-security</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- orm 模块-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-j</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--多数据源-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--接口文档-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.kxs</groupId>
|
|
|
+ <artifactId>kxs-common-swagger</artifactId>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ <build>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ <!--打包java路径下的静态文件-->
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/java</directory>
|
|
|
+ <filtering>false</filtering>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.xml</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <plugins>
|
|
|
+ <!--该插件的作用是打包spring-boot的jar包-->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <!--不排除的话,systemScope的依赖包会自动被此插件打包进xxx.jar\BOOT-INF\lib,和外部依赖产生冲突 -->
|
|
|
+ <includeSystemScope>false</includeSystemScope>
|
|
|
+ <skip>false</skip>
|
|
|
+ <!--分离Jar包-->
|
|
|
+ <layout>ZIP</layout>
|
|
|
+ <includes>
|
|
|
+ <include>
|
|
|
+ <groupId>nothing</groupId>
|
|
|
+ <artifactId>nothing</artifactId>
|
|
|
+ </include>
|
|
|
+ </includes>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- 该插件的作用是复制依赖的jar包到指定的文件夹里 -->
|
|
|
+ <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>${project.build.directory}/lib/</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- 该插件的作用是复制指定的文件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <!-- 复制配置文件 -->
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <resources>
|
|
|
+ <!--复制资源文件到外部,注意这里先不做filtering处理,防止某些静态文件损坏-->
|
|
|
+ <resource>
|
|
|
+ <filtering>false</filtering>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ <!--仅针对配置文件filtering处理(占位符@@等)-->
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ <includes>
|
|
|
+ <include>*.xml</include>
|
|
|
+ <include>*.yml</include>
|
|
|
+ <include>*.properties</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <outputDirectory>${project.build.directory}/config</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <source>16</source>
|
|
|
+ <target>16</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+</project>
|