|
@@ -0,0 +1,360 @@
|
|
|
|
+<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
+ <version>3.2.4</version>
|
|
|
|
+ <relativePath/> <!-- lookup parent from repository -->
|
|
|
|
+ </parent>
|
|
|
|
+
|
|
|
|
+ <groupId>com.yr.warehouse.admin</groupId>
|
|
|
|
+ <artifactId>yr-warehouse-admin</artifactId>
|
|
|
|
+ <name>yr-warehouse-admin</name>
|
|
|
|
+ <packaging>pom</packaging>
|
|
|
|
+ <version>${revision}</version>
|
|
|
|
+
|
|
|
|
+ <modules>
|
|
|
|
+ <module>warehouse-admin-component</module>
|
|
|
|
+ <module>warehouse-admin-data</module>
|
|
|
|
+ <module>warehouse-admin-server</module>
|
|
|
|
+ <module>warehouse-admin-web</module>
|
|
|
|
+ </modules>
|
|
|
|
+
|
|
|
|
+ <properties>
|
|
|
|
+ <revision>1.0.0-SNAPSHOT</revision>
|
|
|
|
+ <java.version>17</java.version>
|
|
|
|
+ <springboot.version>3.1.5</springboot.version>
|
|
|
|
+ <mapstruct.version>1.4.2.Final</mapstruct.version>
|
|
|
|
+ <bluecat.common.version>1.1.0-SNAPSHOT</bluecat.common.version>
|
|
|
|
+ <prism-auth-core.version>1.9.0-SNAPSHOT</prism-auth-core.version>
|
|
|
|
+ <prism-auth-support.version>1.9.0-SNAPSHOT</prism-auth-support.version>
|
|
|
|
+ <yr-supply-chain-api.version>1.1.8-SNAPSHOT</yr-supply-chain-api.version>
|
|
|
|
+ <dubbo.version>3.2.9</dubbo.version>
|
|
|
|
+ <nacos.version>2.2.4</nacos.version>
|
|
|
|
+ </properties>
|
|
|
|
+
|
|
|
|
+ <dependencyManagement>
|
|
|
|
+ <dependencies>
|
|
|
|
+ <!-- springboot-starter begin -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter</artifactId>
|
|
|
|
+ <version>${springboot.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
+ <version>${springboot.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
+ <version>${springboot.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-logging</artifactId>
|
|
|
|
+ <version>${springboot.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
+ <version>${springboot.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.ctrip.framework.apollo</groupId>
|
|
|
|
+ <artifactId>apollo-client</artifactId>
|
|
|
|
+ <version>2.2.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.dubbo</groupId>
|
|
|
|
+ <artifactId>dubbo-spring-boot-starter</artifactId>
|
|
|
|
+ <version>3.2.9</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.dubbo</groupId>
|
|
|
|
+ <artifactId>dubbo-registry-nacos</artifactId>
|
|
|
|
+ <version>3.2.9</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
+ <version>${springboot.version}</version>
|
|
|
|
+ <scope>test</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- springboot-starter end -->
|
|
|
|
+ <!-- dubbo -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.dubbo</groupId>
|
|
|
|
+ <artifactId>dubbo-registry-nacos</artifactId>
|
|
|
|
+ <version>${dubbo.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.dubbo</groupId>
|
|
|
|
+ <artifactId>dubbo-spring-boot-starter</artifactId>
|
|
|
|
+ <version>${dubbo.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba.nacos</groupId>
|
|
|
|
+ <artifactId>nacos-client</artifactId>
|
|
|
|
+ <version>${nacos.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- 内部引用 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.yr.bluecat.common</groupId>
|
|
|
|
+ <artifactId>bluecat-common-entity</artifactId>
|
|
|
|
+ <version>${bluecat.common.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.yr.bluecat.common</groupId>
|
|
|
|
+ <artifactId>bluecat-common-redis</artifactId>
|
|
|
|
+ <version>${bluecat.common.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.yr.bluecat.common</groupId>
|
|
|
|
+ <artifactId>bluecat-common-mq</artifactId>
|
|
|
|
+ <version>${bluecat.common.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.yr.bluecat.common</groupId>
|
|
|
|
+ <artifactId>bluecat-common-utils</artifactId>
|
|
|
|
+ <version>${bluecat.common.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- 权限引用 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.yr.prism.auth.core</groupId>
|
|
|
|
+ <artifactId>prism-auth-core</artifactId>
|
|
|
|
+ <version>${prism-auth-core.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.yr.prism</groupId>
|
|
|
|
+ <artifactId>prism-auth-support</artifactId>
|
|
|
|
+ <version>${prism-auth-support.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.supplychain.support</groupId>
|
|
|
|
+ <artifactId>yr-supply-chain-api</artifactId>
|
|
|
|
+ <version>${yr-supply-chain-api.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- 内部引用结束 -->
|
|
|
|
+ <!-- tools begin -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
|
+ <version>1.18.30</version>
|
|
|
|
+ <optional>true</optional>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
|
+ <version>5.8.23</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- apollo -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.ctrip.framework.apollo</groupId>
|
|
|
|
+ <artifactId>apollo-client</artifactId>
|
|
|
|
+ <version>2.2.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- apollo -->
|
|
|
|
+ <!-- 实体类对象赋值copy -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
|
+ <artifactId>mapstruct</artifactId>
|
|
|
|
+ <version>${mapstruct.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
|
|
+ <version>${mapstruct.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- 参数验证 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>jakarta.validation</groupId>
|
|
|
|
+ <artifactId>jakarta.validation-api</artifactId>
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- json -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
+ <artifactId>jackson-annotations</artifactId>
|
|
|
|
+ <version>2.15.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
|
+ <version>1.2.83</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- tools end -->
|
|
|
|
+ </dependencies>
|
|
|
|
+ </dependencyManagement>
|
|
|
|
+
|
|
|
|
+ <!-- profiles不同环境可以引入不同的jar包 隔离环境 -->
|
|
|
|
+ <!-- 比如在test环境下我们可以用别人的snapshot,生产则使用release包,自己推包也是同理 -->
|
|
|
|
+ <profiles>
|
|
|
|
+ <!-- dev -->
|
|
|
|
+ <profile>
|
|
|
|
+ <id>dev</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <!-- 开发环境固定1.0.2 -->
|
|
|
|
+ <revision>1.0.0-SNAPSHOT</revision>
|
|
|
|
+ <bluecat.common.version>1.1.0-SNAPSHOT</bluecat.common.version>
|
|
|
|
+ <prism-auth-support.version>1.9.0-SNAPSHOT</prism-auth-support.version>
|
|
|
|
+ <prism-auth-core.version>1.9.0-SNAPSHOT</prism-auth-core.version>
|
|
|
|
+ <yr-supply-chain-api.version>1.1.8-SNAPSHOT</yr-supply-chain-api.version>
|
|
|
|
+ </properties>
|
|
|
|
+ <distributionManagement>
|
|
|
|
+ <snapshotRepository>
|
|
|
|
+ <id>yrwl-snapshots</id>
|
|
|
|
+ <name>admin</name>
|
|
|
|
+ <url>http://47.109.64.210:8081/repository/yrwl-snapshot/</url>
|
|
|
|
+ </snapshotRepository>
|
|
|
|
+ </distributionManagement>
|
|
|
|
+ </profile>
|
|
|
|
+ <!-- dev -->
|
|
|
|
+ <profile>
|
|
|
|
+ <id>test</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <revision>1.0.0-SNAPSHOT</revision>
|
|
|
|
+ <bluecat.common.version>1.1.0-SNAPSHOT</bluecat.common.version>
|
|
|
|
+ <prism-auth-support.version>1.9.0-SNAPSHOT</prism-auth-support.version>
|
|
|
|
+ <prism-auth-core.version>1.9.0-SNAPSHOT</prism-auth-core.version>
|
|
|
|
+ <yr-supply-chain-api.version>1.1.8-SNAPSHOT</yr-supply-chain-api.version>
|
|
|
|
+ </properties>
|
|
|
|
+ <distributionManagement>
|
|
|
|
+ <snapshotRepository>
|
|
|
|
+ <id>yrwl-snapshots</id>
|
|
|
|
+ <name>yrwl-snapshot</name>
|
|
|
|
+ <url>http://47.109.64.210:8081/repository/yrwl-snapshot/</url>
|
|
|
|
+ </snapshotRepository>
|
|
|
|
+ </distributionManagement>
|
|
|
|
+ </profile>
|
|
|
|
+ <profile>
|
|
|
|
+ <id>prod</id>
|
|
|
|
+ <properties>
|
|
|
|
+ <revision>1.0.0-RELEASE</revision>
|
|
|
|
+ <bluecat.common.version>1.1.0-RELEASE</bluecat.common.version>
|
|
|
|
+ <prism-auth-support.version>1.9.0-RELEASE</prism-auth-support.version>
|
|
|
|
+ <prism-auth-core.version>1.9.0-RELEASE</prism-auth-core.version>
|
|
|
|
+ <yr-supply-chain-api.version>1.1.8-RELEASE</yr-supply-chain-api.version>
|
|
|
|
+ </properties>
|
|
|
|
+ <distributionManagement>
|
|
|
|
+ <repository>
|
|
|
|
+ <id>yrwl-releases</id>
|
|
|
|
+ <name>yrwl-release</name>
|
|
|
|
+ <url>http://47.109.64.210:8081/repository/yrwl-release/</url>
|
|
|
|
+ </repository>
|
|
|
|
+ </distributionManagement>
|
|
|
|
+ </profile>
|
|
|
|
+ </profiles>
|
|
|
|
+ <!-- 拉包 -->
|
|
|
|
+ <repositories>
|
|
|
|
+ <repository>
|
|
|
|
+ <id>yrwl-repository</id>
|
|
|
|
+ <url>http://47.109.64.210:8081/repository/yrwl-repository/</url>
|
|
|
|
+ <releases>
|
|
|
|
+ <enabled>true</enabled>
|
|
|
|
+ <updatePolicy>always</updatePolicy>
|
|
|
|
+ </releases>
|
|
|
|
+ <snapshots>
|
|
|
|
+ <enabled>true</enabled>
|
|
|
|
+ <updatePolicy>always</updatePolicy>
|
|
|
|
+ </snapshots>
|
|
|
|
+ </repository>
|
|
|
|
+ </repositories>
|
|
|
|
+
|
|
|
|
+ <build>
|
|
|
|
+ <plugins>
|
|
|
|
+ <!-- flatten-maven-plugin插件,用于打包时替换掉字模块中pom文件的引用父工程的变量, 比如revision变量 -->
|
|
|
|
+ <!-- 如果不添加此插件, 虽然打包时不会报错,
|
|
|
|
+ 但是别的系统引用时会出现类似Cloud not find artifac org.example:test:pom:${revision} in nexus-aliyun(http://maben.aliyun.com/nexus/content/groups/public)的错误,
|
|
|
|
+ 主要原因是子模块中引用的父工程的变量未被替换导致的} -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
+ <artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
+ <version>1.5.0</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <!-- 避免IDE将 .flattened-pom.xml自动识别为功能模块 -->
|
|
|
|
+ <flattenedPomFilename>pom-xml-flattened</flattenedPomFilename>
|
|
|
|
+ <updatePomFile>true</updatePomFile>
|
|
|
|
+ <flattenMode>resolveCiFriendliesOnly</flattenMode>
|
|
|
|
+ </configuration>
|
|
|
|
+ <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>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- Source attach plugin -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>attach-sources</id>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>jar</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>com.ly.smart-doc</groupId>
|
|
|
|
+ <artifactId>smart-doc-maven-plugin</artifactId>
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
|
|
|
|
+ <configFile>./src/main/resources/smart-doc.json</configFile>
|
|
|
|
+ <!--指定项目名称,推荐使用动态参数,例如${project.description}-->
|
|
|
|
+ <!--如果smart-doc.json中和此处都未设置projectName,2.3.4开始,插件自动采用pom中的projectName作为设置-->
|
|
|
|
+ <!--<projectName>${project.description}</projectName>-->
|
|
|
|
+ <!--smart-doc实现自动分析依赖树加载第三方依赖的源码,如果一些框架依赖库加载不到导致报错,这时请使用excludes排除掉-->
|
|
|
|
+ <!-- <excludes>-->
|
|
|
|
+ <!-- <!–格式为:groupId:artifactId;参考如下–>-->
|
|
|
|
+ <!-- <!–也可以支持正则式如:com.alibaba:.* –>-->
|
|
|
|
+ <!-- <exclude>com.alibaba:fastjson</exclude>-->
|
|
|
|
+ <!-- </excludes>-->
|
|
|
|
+ <!--includes配置用于配置加载外部依赖源码,配置后插件会按照配置项加载外部源代码而不是自动加载所有,因此使用时需要注意-->
|
|
|
|
+ <!--smart-doc能自动分析依赖树加载所有依赖源码,原则上会影响文档构建效率,因此你可以使用includes来让插件加载你配置的组件-->
|
|
|
|
+ <includes>
|
|
|
|
+ <!--格式为:groupId:artifactId;参考如下-->
|
|
|
|
+ <!--也可以支持正则式如:com.alibaba:.* -->
|
|
|
|
+ <include>com.yr.*</include>
|
|
|
|
+ <include>com.alibaba:fastjson</include>
|
|
|
|
+ </includes>
|
|
|
|
+ </configuration>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
|
|
|
|
+ <phase>compile</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
|
|
|
|
+ <goal>html</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ </build>
|
|
|
|
+
|
|
|
|
+</project>
|