gpt4 book ai didi

grails - grails 2.5.5无法安装plugins:rest-client-builder:jar:2.1.1

转载 作者:行者123 更新时间:2023-12-02 14:29:51 25 4
gpt4 key购买 nike

我懂了

解决获取依赖项的错误:在grailsCentral(https://repo.grails.org/grails/plugins)中找不到 Artifact org.grails.plugins:rest-client-builder:jar:2.1.1(使用--stacktrace查看完整跟踪)

使用此BuildConfig.groovy:

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

grailsPlugins()
grailsHome()
mavenLocal()
grailsCentral()
mavenCentral()
mavenRepo "http://repo.spring.io/milestone"
mavenRepo "http://repo1.maven.org/maven2/"
mavenRepo "http://repo.grails.org/grails/core"
mavenRepo "http://repo.grails.org/grails/plugins"
}

dependencies {
test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
compile 'commons-beanutils:commons-beanutils:1.8.3'
runtime 'mysql:mysql-connector-java:5.1.34'
compile 'com.maxmind.geoip2:geoip2:2.7.0'
compile 'org.apache.httpcomponents:httpclient:4.5.2'
compile "org.grails.plugins:rest-client-builder:2.1.1"
}

我尝试了通常的方法:
 grails clean
grails refresh-depenencies

但是没有运气。很多人都遇到过同样的问题,但是不幸的是,他们的“修复”都没有奏效。

最佳答案

由dmahapatro提供的解决方案,将定义移至插件中:

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

grailsPlugins()
grailsHome()
mavenLocal()
grailsCentral()
mavenCentral()
mavenRepo "http://repo.spring.io/milestone"
mavenRepo "http://repo1.maven.org/maven2/"
mavenRepo "http://repo.grails.org/grails/core"
mavenRepo "http://repo.grails.org/grails/plugins"
}

plugins {
build ":tomcat:8.0.20"
:
compile "org.grails.plugins:rest-client-builder:2.1.1"
}

关于grails - grails 2.5.5无法安装plugins:rest-client-builder:jar:2.1.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39022259/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com