springcloud添加依赖失败解决

添加eureka-server依赖出现unknown的情况

可在pom.xml中添加:


    
        spring-milestones
        Spring Milestones
        https://repo.spring.io/milestone
        
            false
        
    
    
        repository.springframework.maven.release
        Spring Framework Maven Release Repository
        http://maven.springframework.org/milestone/
    
    
        org.springframework
         http://maven.springframework.org/snapshot
    
    
        spring-milestone
        Spring Maven MILESTONE Repository
        http://repo.spring.io/libs-milestone
    
    
        spring-release
        Spring Maven RELEASE Repository
        http://repo.spring.io/libs-release
    

你可能感兴趣的:(java)