Project build error: 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing

前端 未结 9 1825
既然无缘
既然无缘 2021-02-19 03:01

I am developing a code from https://www.dineshonjava.com/microservices-with-spring-boot/. When I update the spring-boot-starter-parent from 1.5.4.RELEASE to 2

9条回答
  •  逝去的感伤
    2021-02-19 03:57

    I also was facing similar problem. Using the below pom.xml helped

    
        1.8
        Hoxton.SR3
    
    
    
        
            org.springframework.boot
            spring-boot-starter-data-jpa
           
    
        
            org.springframework.boot
            spring-boot-starter-web
        
    
        
            org.springframework.cloud
            spring-cloud-starter-openfeign
        
    
        
            org.springframework.cloud
            spring-cloud-starter-netflix-ribbon
        
    
        
             org.springframework.cloud
             spring-cloud-starter-netflix-eureka-client
        
    
        
            org.springframework.boot
            spring-boot-devtools
            runtime
            true
        
    
        
            com.h2database
            h2
            runtime
        
    
        
            org.springframework.boot
            spring-boot-starter-test
            test
            
                
                    org.junit.vintage
                    junit-vintage-engine
                
            
        
    
    
    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version}
                pom
                import
            
        
    
    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    
    

提交回复
热议问题