Open jbayer opened 11 years ago
We are getting a lot of these type of errors recently across spring projects, I believe due to only list spring repositories which should have all transitive dependencies, but in fact don't since many of us doing the build have a huge m2 cache and thus don't pull these into the S2 repo.
Add mavenCentral() to the top of the list of repos in build.gradle and you should be fine.
Note, Dave cc'd here has been doing some work on the shell, Sync with him for issues as he knows the latest status of the code base.
Mark
Sent while on the run...
On May 12, 2013, at 12:38 AM, James Bayer notifications@github.com wrote:
Doing a standard clone and build I got an error. Shouldn't this dependency be public without special authentication?
rest-shell jbayer$ ./gradlew installApp :compileJava
FAILURE: Build failed with an exception.
Could not find group:org.springframework.shell, module:spring-shell, version:1.0.1.BUILD-SNAPSHOT. Required by: org.springframework.data.rest.shell:rest-shell:1.2.2.RELEASE Could not resolve group:commons-codec, module:commons-codec, version:1.7. Required by: org.springframework.data.rest.shell:rest-shell:1.2.2.RELEASE Could not GET 'http://repo.springsource.org/libs-release/commons-codec/commons-codec/1.7/commons-codec-1.7.pom'. Received status code 401 from server: Unauthorized
— Reply to this email directly or view it on GitHubhttps://github.com/SpringSource/rest-shell/issues/31 .
Same issue. Adding mavenCentral() to the top of repos gets one step further, but still getting this error:
Starting Build
Settings evaluated using empty settings script.
Projects loaded. Root project using build file '/home/anders/git/hub/SpringSource/rest-shell/build.gradle'.
Included projects: [root project 'rest-shell']
Evaluating root project 'rest-shell' using build file '/home/anders/git/hub/SpringSource/rest-shell/build.gradle'.
All projects evaluated.
Selected primary task 'installApp'
Tasks to be executed: [task ':compileJava', task ':processResources', task ':classes', task ':jar', task ':startScripts', task ':installApp']
:compileJava
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/spring-shell-1.0.1.BUILD-SNAPSHOT.pom]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/spring-shell-1.0.1.BUILD-SNAPSHOT.jar]
Resource missing. [HTTP GET: http://repo.springsource.org/libs-release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP GET: http://repo.springsource.org/libs-release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/spring-shell-1.0.1.BUILD-SNAPSHOT.pom]
Resource missing. [HTTP GET: http://repo.springsource.org/libs-release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP HEAD: http://repo.springsource.org/libs-release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/spring-shell-1.0.1.BUILD-SNAPSHOT.jar]
Resource missing. [HTTP GET: http://spring-roo-repository.springsource.org/release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP GET: http://spring-roo-repository.springsource.org/release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/spring-shell-1.0.1.BUILD-SNAPSHOT.pom]
Resource missing. [HTTP GET: http://spring-roo-repository.springsource.org/release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP HEAD: http://spring-roo-repository.springsource.org/release/org/springframework/shell/spring-shell/1.0.1.BUILD-SNAPSHOT/spring-shell-1.0.1.BUILD-SNAPSHOT.jar]
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not find group:org.springframework.shell, module:spring-shell, version:1.0.1.BUILD-SNAPSHOT.
Required by:
org.springframework.data.rest.shell:rest-shell:1.2.2.RELEASE
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 8.087 secs
I'm having the same issue. I think it is a bug on gradle
Doing a standard clone and build I got an error. Shouldn't this dependency be public without special authentication?