我想使用Grails 3 Cookie插件(http://plugins.grails.org/plugin/ctoestreich/cookie)。在我的build.gradle
我在这里有这些条目:
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
mavenCentral()
}
dependencies {
[...]
compile 'org.grails.plugins:grails-cookie:2.0.5'
[...]
}
但是在运行gradle build
时,他在查找依赖项时遇到了问题:
> Could not resolve all dependencies for configuration ':runtime'.
> Could not find org.grails.plugins:grails-cookie:2.0.5.
Searched in the following locations:
file:/home/marp/.m2/repository/org/grails/plugins/grails-cookie/2.0.5/grails-cookie-2.0.5.pom
file:/home/marp/.m2/repository/org/grails/plugins/grails-cookie/2.0.5/grails-cookie-2.0.5.jar
https://repo.grails.org/grails/core/org/grails/plugins/grails-cookie/2.0.5/grails-cookie-2.0.5.pom
https://repo.grails.org/grails/core/org/grails/plugins/grails-cookie/2.0.5/grails-cookie-2.0.5.jar
https://repo1.maven.org/maven2/org/grails/plugins/grails-cookie/2.0.5/grails-cookie-2.0.5.pom
https://repo1.maven.org/maven2/org/grails/plugins/grails-cookie/2.0.5/grails-cookie-2.0.5.jar
Required by:
project :
我是否需要加入其他maven回购?或插件刚刚消失?
答案 0 :(得分:0)
据此(在撰写本文时),2.0.3似乎是repo.grails.org repo上的最新版本: http://repo.grails.org/grails/core/org/grails/plugins/grails-cookie/
将您的依赖关系更改为:
compile 'org.grails.plugins:cookie:2.0.3'