4

I downloaded my project from git and when I compile my error is:

Resolve error obtaining dependencies: 
Could not transfer artifact org.grails.plugins:tomcat:zip:7.0.55.2 from/to 
grailsCentral (https://repo.grails.org/grails/plugins)
Received fatal alert: protocol_version (Use --stacktrace to see the full trace)

Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.javassist:javassist:jar:3.17.1-GA, com.bertramlabs.plugins:asset-pipeline-core:jar:2.1.1, org.springframework.security:spring-security-core:jar:3.2.3.RELEASE, org.springframework.security:spring-security-web:jar:3.2.3.RELEASE, org.springframework.security:spring-security-ldap:jar:3.2.0.RC1, org.quartz-scheduler:quartz:jar:2.2.1: Could not transfer artifact org.javassist:javassist:jar:3.17.1-GA from/to grailsCentral (https://repo.grails.org/grails/plugins): Received fatal alert: protocol_version
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
    ... 6 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.javassist:javassist:jar:3.17.1-GA from/to grailsCentral (https://repo.grails.org/grails/plugins): Received fatal alert: protocol_version
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version

I'm using grails 2.5.0 and JDK7, mu buildconfig:

repositories {
    inherits true // Whether to inherit repository definitions from plugins

    grailsPlugins()
    grailsHome()
    mavenLocal()
    grailsCentral()
    mavenCentral()

    mavenRepo "http://repo.spring.io/milestone/"
    mavenRepo "https://repo.grails.org/grails/plugins"
}

plugins {
    // plugins for the build system only
    build ":tomcat:7.0.55.2" // or ":tomcat:8.0.20"

    // plugins for the compile step
    compile ":scaffolding:2.1.2"
    compile ':cache:1.1.8'
    compile ":asset-pipeline:2.1.5"

    runtime ":hibernate4:4.3.8.1"
    runtime ":database-migration:1.4.0"
    runtime ":jquery:1.11.1"

    compile ":spring-security-core:2.0-RC4"
    compile ":spring-security-ldap:2.0-RC2"

    compile 'org.grails.plugins:quartz:1.0.2'
}

I think that repository is down but I tried add this line but I'm getting the same issue:

mavenRepo "https://repo.grails.org/grails/core"
sirdaiz
  • 250
  • 3
  • 16
  • Please check it out: https://stackoverflow.com/questions/16541627/javax-net-ssl-sslexception-received-fatal-alert-protocol-version – Michal_Szulc Jan 19 '20 at 19:22

1 Answers1

1

I download the plugins from https://repo.grails.org/ui/native/plugins/org/grails/plugins then put it in maven’s default local repository location:

Mac:

/Users/<username>/.m2/repository

then navigate to the plugin directory: /Users/<username>/.m2/repository/org.grails.plugins/tomcat/7.0.55.2

and put the zip file: tomcat-7.0.55.2:zip

I see it: https://howtodoinjava.com/maven/change-local-repository-location/

Windows 7:

C:/Documents and Settings/<username>/.m2/repository

Windows 10:

C:/Users/<username>/.m2/repository

Linux:

/home/<username>/.m2/repository

Mac:

/Users/<username>/.m2/repository
Alex Alcalá
  • 61
  • 1
  • 3