agile-service更新后启动报错

  • Choerodon平台版本:0.6.0

  • 运行环境(如localhost或k8s):localhost

  • 遇到问题时的前置条件:启动agile-service

  • 问题描述:

    启动agile-service报错,日志如下:
    Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
    2020-05-13 09:58:55.338 ERROR [agile-service,] 19576 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Parameter 0 of method eurekaEventEndpoint in io.choerodon.eureka.event.EurekaEventAutoConfiguration required a bean of type ‘io.choerodon.eureka.event.AbstractEurekaEventObserver’ that could not be found.

Action:

Consider defining a bean of type ‘io.choerodon.eureka.event.AbstractEurekaEventObserver’ in your configuration.

  • 原因分析:
    spring注入的问题,是io\choerodon\choerodon-starter-eureka-event\0.14.0.RELEASE\choerodon-starter-eureka-event-0.14.0.RELEASE.jar!\io\choerodon\eureka\event\EurekaEventAutoConfiguration.class里的方法,注入了一个抽象类报错了,

  • 疑问:
    为什么我的jar包是0.14版本呢?pom文件里的版本控制在哪里

<parent>
    <groupId>io.choerodon</groupId>
    <artifactId>choerodon-framework-parent</artifactId>
    <version>......</version>
</parent>

parent依赖由上面配置引入