spring-cloud / spring-cloud-release

Spring Cloud Release Train - dependency management across a wide range of Spring Cloud projects.
http://projects.spring.io/spring-cloud
Apache License 2.0
879 stars 182 forks source link

Could not resolve: org.springframework.cloud:spring-cloud-starter-consul #72

Closed rajnish-kumar-76 closed 6 years ago

rajnish-kumar-76 commented 7 years ago

Hi, I am using gradle to build. Gradle reports not able to resolve consul related dependency. Tried both consul-all and consul-dependency. Both reported similar errors.

Could not resolve: org.springframework.cloud:spring-cloud-starter-consul-all
Could not resolve: org.springframework.cloud:spring-cloud-starter-consul-discovery:

build.gradle snapsot :-

dependencies {
    compile("org.springframework.boot:spring-boot-starter-web")
    compile("org.springframework.cloud:spring-cloud-starter-consul-all")
    //compile("org.springframework.cloud:spring-cloud-starter-consul-discovery")
    // tag::actuator[]
    //compile("org.springframework.boot:spring-boot-starter-actuator")
    // end::actuator[]
    // tag::tests[]
    testCompile("org.springframework.boot:spring-boot-starter-test")
    // end::tests[]
}

Thanks.

spencergibb commented 7 years ago

They are maven central. You have said what BOM version you are using either. Please show your whole build file.

alok001 commented 6 years ago
<parent>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-parent</artifactId>
    <version>Brixton_.RELEASE</version>  <!-- Name of release train -->
</parent>
<dependencies>
    <dependency>
        <!-- Setup Spring Boot -->
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>

    <dependency>
        <!-- Setup Spring MVC & REST, use Embedded Tomcat -->
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <!-- Spring Cloud starter -->
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter</artifactId>
    </dependency>

    <dependency>
        <!-- Eureka for service registration -->
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-eureka-server</artifactId>
    </dependency>
</dependencies>

<properties>  
    <java.version>1.8</java.version>  
</properties>

This is pom.xml. It shows error

Error: Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.springframework.cloud:spring-cloud-starter-parent:pom:Brixton_.RELEASE in central (https://repo.maven.apache.org/maven2)

Kindly help to sort this. Went through couple of blogs but with no help.

spencergibb commented 6 years ago

No underscore in name. Brixton is no longer supported.

alok001 commented 6 years ago

Hi

How i am supposed to configure spring cloud in pom.xml. Could you please refer or suggest.

ryanjbaxter commented 6 years ago

You can see how to setup the POM here http://projects.spring.io/spring-cloud/. Pick the version of Spring Cloud you want to use and copy the XML.

alok001 commented 6 years ago

Hi Ryan

The issue is resolved now. Below is what i did

1) Deleted .m2(local repo) folder 2) run the command mvn package 3) after that update maven of the project

Worked for me , seems some of the jars are broken. Nothing was wrong with pom.xml

Regards Alok Mazumdar

On Sat, Dec 16, 2017 at 6:27 PM, Ryan Baxter notifications@github.com wrote:

You can see how to setup the POM here http://projects.spring.io/ spring-cloud/. Pick the version of Spring Cloud you want to use and copy the XML.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/spring-cloud/spring-cloud-release/issues/72#issuecomment-352181928, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ2KYl-8evPiEcPEjCmzz8WiJH_ngY_wks5tA74mgaJpZM4Ma6jL .

srinivasvadla commented 5 years ago

Hai all . could you pleases help out this error in pom.xml , iam using spring boot with eureka when iam adding the below dependency it is saying --:Project build error: 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka:jar is missing.

org.springframework.cloud spring-cloud-starter-eureka

My Boot version is below one

org.springframework.boot spring-boot-starter-parent 2.1.0.RELEASE

Thank you, Srinivas.

spencergibb commented 5 years ago

In the future, please don't comment on old closed issues. Has nothing to do with the boot version.

https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Edgware-Release-Notes#renamed-starters