gpt4 book ai didi

grails - 如何安装Joda-time

转载 作者:行者123 更新时间:2023-12-02 13:51:43 26 4
gpt4 key购买 nike

我正在尝试安装joda-time以在当前的grails应用程序中使用,我使用以下命令:

plugins {
compile "org.jadira.usertype:usertype.jodatime:1.9"

}

当我尝试编译时,它给出了愚蠢的错误
Loading Grails 2.3.0
| Configuring classpath
| Error Resolve error obtaining dependencies: Could not find artifact org.jadira.usertype:usertype.jodatime:zip:1.9 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not find artifact org.jadira.usertype:usertype.jodatime:zip:1.9 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not find artifact org.jadira.usertype:usertype.jodatime:zip:1.9 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Could not find artifact org.jadira.usertype:usertype.jodatime:zip:1.9 in grailsCentral (http://repo.grails.org/grails/plugins)
| Run 'grails dependency-report' for further information.

有解决方案的人吗?

最佳答案

您应该在mavenCentral()中添加一些额外的存储库,然后编译“org.jadira.usertype:usertype.jodatime:1.9”

  mavenCentral()
mavenRepo "http://repo.grails.org/grails/libs-releases/"
mavenRepo "http://m2repo.spockframework.org/ext/"
mavenRepo "http://m2repo.spockframework.org/snapshots/"
}

dependencies {

// runtime 'mysql:mysql-connector-java:5.1.22'
compile "org.jadira.usertype:usertype.jodatime:1.9"
}

希望有帮助!

关于grails - 如何安装Joda-time,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23732503/

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