我正在使用spring-cloud-sleuth-otel-autoconfigure依赖项进行分布式跟踪。获取错误,而mvn clean install -X实际错误消息是Could not find artifact com.wavefront:wavefront-spring-boot-bom:pom:2.1.1-SNAPSHOT in xxxxSnapshots我正在使用.m2文件夹中的settings.xml文件。
我尝试排除这些wavefront-spring-boot-bom依赖项。但是我不能看到构建失败的mvn dependency:tree bcs。这是回购链接..https://repo.grails.org/grails/core/org/springframework/cloud/spring-cloud-sleuth-otel-dependencies/1.0.0-M7/,这是我添加的内容。
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-otel-autoconfigure</artifactId>
<version>1.0.0-M7</version>
<exclusions>
<exclusion>
<groupId>com.wavefront</groupId>
<artifactId>wavefront-spring-boot-bom</artifactId>
</exclusion>
</exclusions>
</dependency>
<repositories>
<repository>
<id>grails</id>
<name>grails</name>
<url>https://repo.grails.org/grails/core/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>grails-plugins</id>
<name>grails-plugins</name>
<url>https://repo.grails.org/grails/plugins</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>如何解决此问题?
发布于 2021-04-28 05:41:08
你可以试一下下面的方法吗:
两个额外的提示:
mvn verify而不是Alpha,它不打算在生产中使用(这就是为什么SLeuth-OTel是一个孵化器项目)https://stackoverflow.com/questions/67288398
复制相似问题