hb0730 / boot-admin

BOOT-ADMIN是一个基于Spring Boot3和Vue3 的开源项目,项目采用前后端分离的模式,前端框架使用vue-pure-admin
MIT License
260 stars 87 forks source link

v6.3 提示程序包com.hb0730.opentelemetry.rpc不存在 #27

Closed armran closed 6 months ago

armran commented 6 months ago

直接拉取后,idea不报错,但运行提示:

boot-admin\commons\common-opentelemetry\opentelemetry-configuration\src\main\java\com\hb0730\opentelemetry\autoconfigure\rpc\OpenTelemetrySofaRpcAutoConfiguration.java:3:36 java: 程序包com.hb0730.opentelemetry.rpc不存在

hb0730 commented 6 months ago

直接拉取后,idea不报错,但运行提示:

boot-admin\commons\common-opentelemetry\opentelemetry-configuration\src\main\java\com\hb0730\opentelemetry\autoconfigure\rpc\OpenTelemetrySofaRpcAutoConfiguration.java:3:36 java: 程序包com.hb0730.opentelemetry.rpc不存在

请先mvn clean -DskipTests=true package

hb0730 commented 6 months ago

或者修改opentelemetry-configuration/pom.xml中的

<dependency>
    <groupId>com.hb0730</groupId>
    <artifactId>opentelemetry-rpc</artifactId>
    <version>${revision}</version>
    <optional>true</optional>
</dependency>

改为

<dependency>
    <groupId>com.hb0730</groupId>
    <artifactId>opentelemetry-rpc</artifactId>
    <version>${revision}</version>
</dependency>

删除 <optional>true</optional>