Procházet zdrojové kódy

增加消息的公共common

bing před 1 rokem
rodič
revize
152c8e6f44

+ 0 - 1
pom.xml

@@ -424,7 +424,6 @@
         <module>ruoyi-common</module>
         <module>ruoyi-example</module>
         <module>ruoyi-server</module>
-        <module>ruoyi-common/ruoyi-common-message</module>
     </modules>
     <packaging>pom</packaging>
 

+ 1 - 0
ruoyi-common/pom.xml

@@ -44,6 +44,7 @@
         <module>ruoyi-common-social</module>
         <module>ruoyi-common-nacos</module>
         <module>ruoyi-common-bus</module>
+        <module>ruoyi-common-message</module>
     </modules>
 
     <artifactId>ruoyi-common</artifactId>

+ 2 - 8
ruoyi-common/ruoyi-common-message/pom.xml

@@ -3,20 +3,14 @@
          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>
-        <artifactId>ruoyi-cloud-plus</artifactId>
         <groupId>org.dromara</groupId>
-        <version>2.2.0</version>
-        <relativePath>../../pom.xml</relativePath>
+        <artifactId>ruoyi-common</artifactId>
+        <version>${revision}</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>ruoyi-common-message</artifactId>
 
-    <properties>
-        <maven.compiler.source>17</maven.compiler.source>
-        <maven.compiler.target>17</maven.compiler.target>
-    </properties>
-
     <dependencies>
 
         <dependency>

+ 5 - 0
ruoyi-modules/ruoyi-backstage/pom.xml

@@ -117,6 +117,11 @@
             <groupId>org.springframework.kafka</groupId>
             <artifactId>spring-kafka</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.dromara</groupId>
+            <artifactId>ruoyi-common-message</artifactId>
+        </dependency>
+
     </dependencies>
 
     <build>

+ 1 - 0
ruoyi-modules/ruoyi-backstage/src/main/java/test/Test.java

@@ -1,5 +1,6 @@
 package test;
 
+import org.dromara.message.kafka.constant.MessageEventTypeEnum;
 import org.redisson.Redisson;
 import org.redisson.api.RedissonClient;
 import org.redisson.config.Config;

+ 0 - 1
ruoyi-server/ruoyi-server-common/pom.xml

@@ -21,7 +21,6 @@
         <dependency>
             <groupId>org.dromara</groupId>
             <artifactId>ruoyi-common-message</artifactId>
-            <version>${revision}</version>
         </dependency>
     </dependencies>
 </project>