spring-cloud-samples / configserver

371 stars 394 forks source link

Configserver build is broken. #15

Closed colin-icontrol closed 8 years ago

colin-icontrol commented 8 years ago

I have discussed this problem here: https://github.com/spring-cloud/spring-cloud-starters/issues/44. It's still not resolved.

In the interests of providing an example that is easily replicatable for you, I decided to try one of the examples. Downloading the current code from this project fails to build with the following error:

$ mvn clean install -U
[INFO] Scanning for projects...
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-starter-parent/Brixton.BUILD-SNAPSHOT/maven-metadata.xml
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-starter-parent/Brixton.BUILD-SNAPSHOT/maven-metadata.xml (812 B at 1.7 KB/sec)
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies/Brixton.BUILD-SNAPSHOT/maven-metadata.xml
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies/Brixton.BUILD-SNAPSHOT/maven-metadata.xml (810 B at 6.5 KB/sec)
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml (811 B at 5.9 KB/sec)
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/spring-cloud-dependencies-parent-1.1.0.BUILD-20160308.163606-35.pom
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/spring-cloud-dependencies-parent-1.1.0.BUILD-20160308.163606-35.pom (7 KB at 37.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.RC1/spring-cloud-dependencies-parent-1.1.0.RC1.pom
Downloading: http://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-build/1.1.0.RC1/spring-cloud-build-1.1.0.RC1.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.demo:configserver:0.0.1-SNAPSHOT (/Users/me/src/examples/springCloud/configserver/pom.xml) has 11 errors
[ERROR]     Non-resolvable parent POM: Could not find artifact org.springframework.cloud:spring-cloud-dependencies-parent:pom:1.1.0.RC1 in central (http://repo.maven.apache.org/maven2) @ org.springframework.cloud:spring-cloud-stream-dependencies:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-dependencies/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-dependencies-1.0.0.BUILD-SNAPSHOT.pom, line 4, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Could not find artifact org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in central (http://repo.maven.apache.org/maven2) @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-dependencies-parent:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-dependencies:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-dependencies/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-dependencies-1.0.0.BUILD-SNAPSHOT.pom, line 4, column 10 -> [Help 2]
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-config-server:jar is missing. @ line 22, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-config-monitor:jar is missing. @ line 26, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-stream-redis:jar is missing. @ line 30, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka:jar is missing. @ line 34, column 15
[ERROR] 

This was done with Maven 3.2.2, and I do not currently have a settings.xml file.

spencergibb commented 8 years ago

Have you tried with ./mvnw clean package? The reason nothing has been done (at least by me) is that I can't reproduce the problem.

colin-icontrol commented 8 years ago

I think it may have to do with the maven version. I just tried the mvn clean install -U with maven 3.3.9, and it downloaded correctly. It later failed with test failures, but I think that's something else.

spencergibb commented 8 years ago

That's why we use the maven wrapper ./mvnw so we always use the right version of maven. I think this build requires rabbit. I just updated the readme to use ./mvnw. All of our projects use it.