0

I have tried the following

  1. Deleting .grails folder as recommended here.
  2. In BuildConfig.Groovy, changed mavenRepo "http://repo.grails.org/grails/plugins" to mavenRepo "https://repo.grails.org/grails/plugins" as recommended here
  3. I have searched for maven and http://repo in my entire codebase and found it nowhere other than BuildConfig.Groovy. My BuildConfig.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

Siddharth
  • 9,349
  • 16
  • 86
  • 148
  • Letting people know the Grails version might help – tim_yates Feb 08 '20 at 11:28
  • Do you still have `mavenCentral()`? https://stackoverflow.com/a/59948885/6509 – tim_yates Feb 08 '20 at 11:31
  • @tim_yates yeah, removing mavenCentral helped. Still getting a few missing artifacts. I'll fix them and report back. Until then, please add a answer. Happy to mark it. – Siddharth Feb 08 '20 at 19:20
  • @tim_yates isnt there a solution without commenting mavenCentral? Since I am not able to find the location where mavenCentral is referring to http, nor am I able to add missing lib's after commenting mavenCentral – Siddharth Feb 10 '20 at 05:55
  • 1
    You have `mavenRepo "https://repo1.maven.org/maven2"` which should replace, not augment, `mavenCentral()`. – Jeff Scott Brown Feb 10 '20 at 14:47
  • In Grails 2.3.7 `mavenCentral()` will reference `http://repo1.maven.org/maven2/`, which is no longer valid (central requires https as of January 15 of this year). – Jeff Scott Brown Feb 10 '20 at 14:48

0 Answers0