我有一个使用 tomcat-7.0.70、hibernate4:4.3.5.5 和其他插件的 grails 2.4.0 应用程序。
我在 BuildConfig.groovy 中提到了这些 URL:
mavenRepo "https://mvnrepository.com"
mavenRepo "https://repo1.maven.org/maven2"
但我不断得到:
| Error Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:tomcat:zip:7.0.70 (Use --stacktrace to see the full trace)
| Error Required Grails build dependencies were not found. This is normally due to internet connectivity issues (such as a misconfigured proxy) or missing repositories in grails-app/conf/BuildConfig.groovy. Please verify your configuration to continue.
尝试添加网址:
mavenRepo "https://repo.grails.org"
在这些之上。但是,我仍然收到此错误。
我尝试在 BuildConfig.groovy 中注释掉 grailsCentral() 和 mavenCentral() 存储库。
这样做时,我收到了证书不匹配错误。
Caused by: javax.net.ssl.SSLException: hostname in certificate didn't match: <repo.grails.org> != <*.jfrog.io> OR <*.jfrog.io> OR <jfrog.io>
任何人都可以帮助..?