我的项目之一的构建开始失败,下面给出了例外情况
> Could not resolve org.slf4j:slf4j-api:[1.6.1,).
> Failed to list versions for org.slf4j:slf4j-api.
> Unable to load Maven meta-data from https://repo1.maven.org/maven2/org/slf4j/slf4j-api/maven-metadata.xml.
> Could not GET 'https://repo1.maven.org/maven2/org/slf4j/slf4j-api/maven-metadata.xml'.
> Received fatal alert: protocol_version
Run Code Online (Sandbox Code Playgroud)
环境:
我们计划将应用程序的 Grails 从版本 2.0.1 升级到 3.1.1。执行时
grails clean --stacktrace --verbose
Run Code Online (Sandbox Code Playgroud)
我收到以下异常:
| Error Error occurred running Grails CLI: null
java.lang.NullPointerException
at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:504)
at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:308)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:271)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:162)
| Error Error occurred running Grails CLI: null
Run Code Online (Sandbox Code Playgroud)
我也尝试过设置,GRAIL_OPTS
但仍然不起作用。
set GRAILS_OPTS="-XX:-UseSplitVerifier -Xverify:none"
Run Code Online (Sandbox Code Playgroud)
环境详情:
| Grails Version: 3.1.1
| Groovy Version: 2.4.5
| JVM Version: 1.8.0_74
Run Code Online (Sandbox Code Playgroud)
任何指示将不胜感激。
谢谢。