如何安装Joda-time

阿卜杜勒

我正在尝试安装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"
}

希望对您有所帮助!

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何用jaxb绑定joda-time

如何使用Joda-Time在Java中设置Time属性

如何在 Joda Time daysBetween 中包含开始日期?

如何在Joda Time中获得短月份的名字?

如何使用Joda Time解析包括时区在内的日期

如何使用org.joda.time设置时区?

如何使用Joda-Time获得给定月份内的天数?

如何在Joda-Time时间戳中保留时区?

如何使用Joda-Time表达部分间隔?

如何使用Kryo序列化Joda-Time的LocalDate

如何在Maven中使用Joda-Time?

我如何同时使用org.joda.time.LocalDate和java.time.LocalDate;

如何从org.joda.time.DateTime转换为java.time.ZonedDateTime

Joda Time toDate()错误的结果

解析Joda-Time部分

Android与Kotlin的Joda-Time

如何在flink中使用joda.time(或如何使用typeutils.runtime.kryo)

如何使用 Scala 在 Spark Streaming 中序列化 org.joda.time.DateTime?

Joda-Time,如何选择格式进行字符串解析?

如何使用Joda-Time计算两个日期之间的年,月和天数

给定一个DateTime对象,如何在Joda Time中获取DateTimeZone?

在Joda Time中如何在不更改时间的情况下转换时区

如何使用Joda-Time计算从现在开始经过的时间?

如何以分钟为单位查找两个Joda-Time DateTime之间的差异

如何将Joda-Time DateTime格式化为仅mm / dd / yyyy?

如何将Joda-Time的DateTimeFormat.forStyle()转换为JSR 310 JavaTime?

在巴西DST过渡期间,如何防止Joda Time引发异常

如何在没有Joda Time的Java 7中正确处理夏令时?

如何测试两个Joda-Time DateTime对象几乎相等?