提交 efe84311 编写于 作者: S Steven

重构包路径导入

上级 b85a62d8
......@@ -20,10 +20,10 @@
</properties>
<dependencies>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- <scope>compile</scope>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -10,8 +10,7 @@
<!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- </parent>-->
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
......
......@@ -87,7 +87,7 @@
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope>
......
......@@ -72,10 +72,10 @@
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- <scope>compile</scope>-->
</dependency>
<!--SpringBoot整合Pulsar 私人写的 -->
......
......@@ -15,8 +15,6 @@
</parent>
<artifactId>mq-rocketmq</artifactId>
<groupId>com.example</groupId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<java.version>11</java.version>
<testcontainers.version>1.17.3</testcontainers.version>
......@@ -67,10 +65,10 @@
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope>
<!-- <scope>test</scope>-->
</dependency>
<dependency>
......
package com.example.mqrocketmq.service.demo2;
import com.example.common.entity.Book;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component;
......
......@@ -2,26 +2,26 @@
<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>
<packaging>pom</packaging>
<modules>
<!-- <module>mq-common</module>-->
<module>mq-kafka</module>
<module>mq-artemis</module>
<module>mq-pulsar</module>
<module>mq-rocketmq</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath/> <!-- lookup parent from repository -->
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
</parent>
<groupId>com.example</groupId>
<artifactId>mq-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>mq-test</name>
<description>mq-test</description>
<packaging>pom</packaging>
<modules>
<!-- <module>mq-common</module>-->
<module>mq-rocketmq</module>
<module>mq-artemis</module>
<module>mq-kafka</module>
<module>mq-pulsar</module>
</modules>
<properties>
<java.version>11</java.version>
<testcontainers.version>1.17.3</testcontainers.version>
......@@ -40,7 +40,7 @@
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>${mqtest.version}</version>
</dependency>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册