首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到工件com.wavefront:wavefront-spring-boot-bom:pom:2.1.1-SNAPSHOT

找不到工件com.wavefront:wavefront-spring-boot-bom:pom:2.1.1-SNAPSHOT
EN

Stack Overflow用户
提问于 2021-04-28 02:02:10
回答 1查看 54关注 0票数 0

我正在使用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/,这是我添加的内容。

代码语言:javascript
复制
 <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>

如何解决此问题?

EN

回答 1

Stack Overflow用户

发布于 2021-04-28 05:41:08

你可以试一下下面的方法吗:

  1. 转到https://start.spring.io并使用Sleuth
  2. 生成一个项目,遵循documentation并添加Sleuth-OTel (不包括勇敢)
  3. 请使用官方代码库(参见上面的文档),而不是third -party ones

两个额外的提示:

  1. 使用mvn verify而不是Alpha,它不打算在生产中使用(这就是为什么SLeuth-OTel是一个孵化器项目)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67288398

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档