2017-04-05 3 views
1

habe ich ein Gradle Boot-Projekt mit der Version 2.0.0.BUILD-snapshot von https://start.spring.io und brachte keine Änderungen vornehmen und versucht, nur die App laufen mit:Fehler bei Boot-2.0.0.BUILD-SNAPSHOT mit Gradle

gradle bootRun

ich die folgenden Fehler

FAILURE: Build failed with an exception. 

* What went wrong: 
Could not resolve all dependencies for configuration ':compileClasspath'. 
> Could not find org.springframework.boot:spring-boot-starter-actuator:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-actuator//spring-boot-starter-actuator-.pom 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-actuator//spring-boot-starter-actuator-.jar 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-actuator//spring-boot-starter-actuator-.pom 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-actuator//spring-boot-starter-actuator-.jar 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-actuator//spring-boot-starter-actuator-.pom 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-actuator//spring-boot-starter-actuator-.jar 

Nun, wenn ich ändern, um die Version zu: springBootVe rsion = '1.5.3.BUILD-SNAPSHOT' die App startet gut.

Ich vermute, es ist etwas falsch mit dem Abhängigkeitsmanagement $ {} springBootVersion Tag, wie man sehen:

https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-actuator/[WO IST DIE VERSION ???]/Feder-boot-Starter-Aktor- .pom

ich habe (die kühn konfiguriert Hier sind die repos [WHERE die Version ??? IS] wurde nicht von INITIALZR erzeugt aut:

repositories { 
    mavenCentral() 
    maven { url 'https://repo.spring.io/libs-snapshot' } 
    maven { url "https://repo.spring.io/snapshot" } 
    maven { url "https://repo.spring.io/milestone" } 
} 

, die mit einigen der Abhängigkeiten dazu beigetragen haben könnte, aber es ist immer noch ein Problem mit dem Starter Poms:

FAILURE: Build failed with an exception. 

* What went wrong: 
Could not resolve all dependencies for configuration ':compileClasspath'. 
> Could not find org.springframework.boot:spring-boot-starter-aop:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-aop//spring-boot-starter-aop-.pom 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-aop//spring-boot-starter-aop-.jar 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-aop//spring-boot-starter-aop-.pom 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-aop//spring-boot-starter-aop-.jar 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-aop//spring-boot-starter-aop-.pom 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-aop//spring-boot-starter-aop-.jar 
    Required by: 
     project : 
> Could not find org.springframework.boot:spring-boot-starter-jdbc:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-jdbc//spring-boot-starter-jdbc-.pom 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-jdbc//spring-boot-starter-jdbc-.jar 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-jdbc//spring-boot-starter-jdbc-.pom 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-jdbc//spring-boot-starter-jdbc-.jar 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-jdbc//spring-boot-starter-jdbc-.pom 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-jdbc//spring-boot-starter-jdbc-.jar 
    Required by: 
     project : 
> Could not find org.springframework.boot:spring-boot-starter-data-rest:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-data-rest//spring-boot-starter-data-rest-.pom 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-data-rest//spring-boot-starter-data-rest-.jar 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-data-rest//spring-boot-starter-data-rest-.pom 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-data-rest//spring-boot-starter-data-rest-.jar 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-data-rest//spring-boot-starter-data-rest-.pom 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-data-rest//spring-boot-starter-data-rest-.jar 
    Required by: 
     project : 
> Could not find com.h2database:h2:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/com/h2database/h2//h2-.pom 
     https://repo1.maven.org/maven2/com/h2database/h2//h2-.jar 
     https://repo.spring.io/snapshot/com/h2database/h2//h2-.pom 
     https://repo.spring.io/snapshot/com/h2database/h2//h2-.jar 
     https://repo.spring.io/milestone/com/h2database/h2//h2-.pom 
     https://repo.spring.io/milestone/com/h2database/h2//h2-.jar 
    Required by: 
     project : 
> Could not find org.hsqldb:hsqldb:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/hsqldb/hsqldb//hsqldb-.pom 
     https://repo1.maven.org/maven2/org/hsqldb/hsqldb//hsqldb-.jar 
     https://repo.spring.io/snapshot/org/hsqldb/hsqldb//hsqldb-.pom 
     https://repo.spring.io/snapshot/org/hsqldb/hsqldb//hsqldb-.jar 
     https://repo.spring.io/milestone/org/hsqldb/hsqldb//hsqldb-.pom 
     https://repo.spring.io/milestone/org/hsqldb/hsqldb//hsqldb-.jar 
    Required by: 
     project : 
> Could not find org.springframework.boot:spring-boot-starter-security:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-security//spring-boot-starter-security-.pom 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-security//spring-boot-starter-security-.jar 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-security//spring-boot-starter-security-.pom 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-security//spring-boot-starter-security-.jar 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-security//spring-boot-starter-security-.pom 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-security//spring-boot-starter-security-.jar 
    Required by: 
     project : 
> Could not find org.springframework.boot:spring-boot-starter-web:. 
    Searched in the following locations: 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-web//spring-boot-starter-web-.pom 
     https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-web//spring-boot-starter-web-.jar 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-web//spring-boot-starter-web-.pom 
     https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-starter-web//spring-boot-starter-web-.jar 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-web//spring-boot-starter-web-.pom 
     https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-web//spring-boot-starter-web-.jar 
+0

Veröffentlichen Sie Ihre ganze build.gradle – Strelok

Antwort

1

Sie müssen hinzufügen:

maven { 
    url 'https://repo.spring.io/libs-snapshot' 
} 

Um Ihre Repositories Block (beide Haupt und Buildskript)

+0

Das könnte mit einigen der Abhängigkeiten geholfen haben, aber es gibt immer noch ein Problem mit dem Starter Pom: –

+0

Ich hatte es in beiden. Das Problem ist mit den Startern, die in diesen REPOs sind. Sie liegen falsch: https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-aop/[VERSION VERMISST]/spring-boot-starter-aop- [VERSION VERMISST] .pom –

+0

BUILD-SNAPSHOT-Versionen sind nicht im maven central. Du siehst am falschen Ort aus. Schau hier: https://repo.spring.io/libs-snapshot/org/springframework/boot/spring-boot-starter-aop/2.0.0.BUILD-SNAPSHOT/ – Strelok