在pom.xml中添加openfeign依赖关系会导致Spring微服务的构建失败

时间:2018-09-06 12:50:26

标签: java maven spring-boot microservices feign

我在spring引导微服务的pom.xml中添加了spring-cloud-starter-openfeign作为依赖项,如下所示:

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-openfeign</artifactId>
    </dependency>

当我尝试重新启动微服务时,看到以下错误:

Exception in thread "main" java.lang.IllegalStateException: Failed to read Class-Path attribute from manifest of jar file:/C:/Users/vv185058/.m2/repository/io/reactivex/rxjava/1.3.8/rxjava-1.3.8.jar
    at org.springframework.boot.devtools.restart.ChangeableUrls.getUrlsFromClassPathOfJarManifestIfPossible(ChangeableUrls.java:132)
    at org.springframework.boot.devtools.restart.ChangeableUrls.fromClassLoader(ChangeableUrls.java:98)
    at org.springframework.boot.devtools.restart.DefaultRestartInitializer.getUrls(DefaultRestartInitializer.java:91)
    at org.springframework.boot.devtools.restart.DefaultRestartInitializer.getInitialUrls(DefaultRestartInitializer.java:55)
    at org.springframework.boot.devtools.restart.Restarter.<init>(Restarter.java:142)
    at org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:556)

我正在使用Spring Boot 2.0.4版本。你能帮我吗?

0 个答案:

没有答案