I have tried the following
- Deleting .grails folder as recommended here.
- In BuildConfig.Groovy, changed
mavenRepo "http://repo.grails.org/grails/plugins"
tomavenRepo "https://repo.grails.org/grails/plugins"
as recommended here - I have searched for
maven
andhttp://repo
in my entire codebase and found it nowhere other thanBuildConfig.Groovy
. MyBuildConfig.Groovy
now contains
repositories {
grailsPlugins()
grailsHome()
//mavenLocal()
grailsCentral()
mavenCentral()
//mavenLocal("../../lib/")
mavenRepo "https://repo.grails.org/grails/plugins"
mavenRepo "https://repo1.maven.org/maven2"
//mavenRepo "https://repository.codehaus.org"
//mavenRepo "https://download.java.net/maven/2/"
//mavenRepo "https://repository.jboss.com/maven2/"
}
I still get
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.amazonaws:aws-java-sdk-s3:pom:1.11.692 from/to mavenCentral (http://repo1.maven.org/maven2/): HTTPS Required (501)
when I run 'grails clean' and 'grails clean-all'.
I am missing something basic.
Edit
I am using a old version of Grails 2.3.7
Commenting mavenCentral() helped thanks @tim_yates