Commit 4bc8dc65b4f23ff0380f4ecd33de53d32f247cb8

Authored by YunaiV
1 parent 638b8b1d

多模块重构 4:infra 模块的初始化

... ... @@ -16,6 +16,7 @@
16 16 <module>yudao-module-member</module>
17 17 <!-- <module>yudao-module-bpm</module>-->
18 18 <module>yudao-module-system</module>
  19 + <module>yudao-module-infra</module>
19 20 </modules>
20 21  
21 22 <name>${artifactId}</name>
... ...
yudao-admin-server/pom.xml
... ... @@ -32,6 +32,11 @@
32 32 <artifactId>yudao-module-system-impl</artifactId>
33 33 <version>${revision}</version>
34 34 </dependency>
  35 + <dependency>
  36 + <groupId>cn.iocoder.boot</groupId>
  37 + <artifactId>yudao-module-infra-impl</artifactId>
  38 + <version>${revision}</version>
  39 + </dependency>
35 40  
36 41 <!-- 业务组件 -->
37 42 <dependency>
... ...
yudao-module-infra/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <groupId>cn.iocoder.boot</groupId>
  7 + <artifactId>yudao</artifactId>
  8 + <version>${revision}</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 +
  12 + <artifactId>yudao-module-infra</artifactId>
  13 + <packaging>pom</packaging>
  14 +
  15 + <name>${artifactId}</name>
  16 + <description>
  17 + infra 包下,我们放基础设施的运维与管理,支撑上层的通用与核心业务。
  18 + 例如说:定时任务的管理、服务器的信息等等
  19 + </description>
  20 + <modules>
  21 + <module>yudao-module-infra-api</module>
  22 + <module>yudao-module-infra-impl</module>
  23 + </modules>
  24 +
  25 +
  26 +</project>
... ...
yudao-module-infra/yudao-module-infra-api/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <groupId>cn.iocoder.boot</groupId>
  7 + <artifactId>yudao-module-infra</artifactId>
  8 + <version>${revision}</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 + <artifactId>yudao-module-infra-api</artifactId>
  12 + <packaging>jar</packaging>
  13 +
  14 + <name>${artifactId}</name>
  15 + <description>
  16 + infra 模块 API,暴露给其它模块调用
  17 + </description>
  18 +
  19 + <dependencies>
  20 + <dependency>
  21 + <groupId>cn.iocoder.boot</groupId>
  22 + <artifactId>yudao-common</artifactId>
  23 + </dependency>
  24 + </dependencies>
  25 +
  26 +</project>
... ...
yudao-module-infra/yudao-module-infra-impl/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <groupId>cn.iocoder.boot</groupId>
  7 + <artifactId>yudao-module-infra</artifactId>
  8 + <version>${revision}</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 + <artifactId>yudao-module-infra-impl</artifactId>
  12 + <packaging>jar</packaging>
  13 +
  14 + <name>${artifactId}</name>
  15 + <description>
  16 + infra 包下,我们放基础设施的运维与管理,支撑上层的通用与核心业务。
  17 + 例如说:定时任务的管理、服务器的信息等等
  18 + </description>
  19 +
  20 + <dependencies>
  21 + <dependency>
  22 + <groupId>cn.iocoder.boot</groupId>
  23 + <artifactId>yudao-module-member-api</artifactId>
  24 + <version>${revision}</version>
  25 + </dependency>
  26 +
  27 + <dependency>
  28 + <groupId>cn.iocoder.boot</groupId>
  29 + <artifactId>yudao-module-system-api</artifactId>
  30 + <version>${revision}</version>
  31 + </dependency>
  32 +
  33 + <!-- 业务组件 -->
  34 +
  35 + <dependency>
  36 + <groupId>cn.iocoder.boot</groupId>
  37 + <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId>
  38 + </dependency>
  39 +
  40 + <!-- Web 相关 -->
  41 + <dependency>
  42 + <groupId>cn.iocoder.boot</groupId>
  43 + <artifactId>yudao-spring-boot-starter-security</artifactId>
  44 + </dependency>
  45 +
  46 + <!-- DB 相关 -->
  47 + <dependency>
  48 + <groupId>cn.iocoder.boot</groupId>
  49 + <artifactId>yudao-spring-boot-starter-mybatis</artifactId>
  50 + </dependency>
  51 +
  52 + <dependency>
  53 + <groupId>cn.iocoder.boot</groupId>
  54 + <artifactId>yudao-spring-boot-starter-redis</artifactId>
  55 + </dependency>
  56 +
  57 + <!-- 消息队列相关 -->
  58 + <dependency>
  59 + <groupId>cn.iocoder.boot</groupId>
  60 + <artifactId>yudao-spring-boot-starter-mq</artifactId>
  61 + </dependency>
  62 +
  63 + <!-- Test 测试相关 -->
  64 + <dependency>
  65 + <groupId>cn.iocoder.boot</groupId>
  66 + <artifactId>yudao-spring-boot-starter-test</artifactId>
  67 + <scope>test</scope>
  68 + </dependency>
  69 + <!-- 工具类相关 -->
  70 +
  71 + </dependencies>
  72 +
  73 + <build>
  74 + <!-- 设置构建的 jar 包名 -->
  75 + <finalName>${artifactId}</finalName>
  76 + <plugins>
  77 + <!-- 打包 -->
  78 + <plugin>
  79 + <groupId>org.springframework.boot</groupId>
  80 + <artifactId>spring-boot-maven-plugin</artifactId>
  81 + <configuration>
  82 + <fork>true</fork>
  83 + </configuration>
  84 + <executions>
  85 + <execution>
  86 + <goals>
  87 + <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  88 + </goals>
  89 + </execution>
  90 + </executions>
  91 + </plugin>
  92 + </plugins>
  93 + </build>
  94 +
  95 +</project>
... ...