在Maven的其他模块中看不到依赖模块中的java更改
这是我的项目结构:
身份验证、游戏、网关、组、服务发现和用户是我的微服务(spring boot应用程序) 公共安全性-这是我从其他微服务扫描的模块(服务发现和网关除外)
我的问题是,我的微服务无法看到公共安全模块的更改
这是根的pom。xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>common-security</module>
<module>auth</module>
<module>game</module>
<module>service-discovery</module>
<module>gateway</module>
<module>user</module>
<module>group</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.0.RELEASE</version>
<relativePath/> <!-- lookup parent from dao -->
</parent>
<groupId>Server</groupId>
<artifactId>Server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Server</name>
<description>Licenta</description>
<properties>
<java.version>1.8</java.version>
<spring-cloud.version>Hoxton.RC1</spring-cloud.version>
<junit-jupiter.version>5.3.2</junit-jupiter.version>
<mockito.version>2.24.0</mockito.version>
</properties>
<dependencies>
...
这是通用安全公司的pom。xml:
<?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">
<parent>
<artifactId>Server</artifactId>
<groupId>Server</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>boardify</groupId>
<artifactId>common-security</artifactId>
<dependencies>
...
这是集团的pom。xml:
<?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">
<parent>
<artifactId>Server</artifactId>
<groupId>Server</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>boardify</groupId>
<artifactId>group</artifactId>
<dependencies>
<dependency>
<groupId>boardify</groupId>
<artifactId>common-security</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
我在公共安全中更改日志的打印,但它显示旧文本
关于如何运行组(或任何其他微服务)以及如何在公共安全中使用实际代码,有什么想法吗
编辑:我浪费了一些时间来运行common security的实际版本(由于偶然,我无法复制它)。我有不同的微服务运行不同版本的通用安全性。auth-microservice正在打印我几个小时前写的日志,尽管它们已经不见了,而group-microservice正在打印最新的日志
共 (0) 个答案