John Moore
John Moore

Reputation: 7129

Started getting errors building Grails 2 web app using Mail plugin

As of last Friday, an error is showing up when I do a 'grails war' with one of my Grails 2.2.5 applications:

:::: ERRORS
    SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.8-SNAPSHOT/maven-metadata.xml

    SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.8-SNAPSHOT/mail-1.0.8-SNAPSHOT.pom

    SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.8-SNAPSHOT/mail-1.0.8-SNAPSHOT.jar

The build seems to complete OK, but I'm concerned nonetheless. The error has just started happening, there have been no changes within my code, so I'm presuming it's to do with some change at a repo. In my BuildConfig.groovy, I have the plugins repo defined thus:

mavenRepo "http://repo.grails.org/grails/plugins"

I wondered whether I might merely have to change this to https, but if I do so I get errors like the following: Server access Error: Received fatal alert: protocol_version url=https://repo.grails.org/grails/plugins/org/grails/plugins/mail/1.0.8-SNAPSHOT/maven-metadata.xml and the build fails because of unresolved dependencies.

Upvotes: 1

Views: 2048

Answers (2)

loppra
loppra

Reputation: 71

in this URL you can find this lib, I use it: https://repo.grails.org/ui/native/plugins/org/grails/plugins/mail/1.0.8-SNAPSHOT/

I use with my local maven mavenLocal().

Upvotes: 0

cfrick
cfrick

Reputation: 37008

You are either using an old Java version or a misconfigured one.

See javax.net.ssl.SSLException: Received fatal alert: protocol_version for details how to deal with the protocol_version error.

And yes, you have to use https for the URL - repo.grails.org has moved over to https quite some time ago (citation needed)

Upvotes: 1

Related Questions