Squeryl-"CustomTypesMode不是包org.squeryl.customtypes的成员"? [英] Squeryl - "CustomTypesMode is not a member of package org.squeryl.customtypes"?

查看:110
本文介绍了Squeryl-"CustomTypesMode不是包org.squeryl.customtypes的成员"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用SBT构建了Squeryl框架,并试图在Scala 2.8和NetBeans 6.9中使用它.我已经定义了一个实体模型,因为它是在Squeryl简介中介绍的,但是是IDE和编译器抱怨"CustomTypesMode不是包org.squeryl.customtypes的成员".可能是什么原因?

I've built Squeryl framework with SBT and am trying to use it with Scala 2.8 and NetBeans 6.9. I've defined an entity model as it is desctibed in Squeryl intro, but the IDE and compiler complain that "CustomTypesMode is not a member of package org.squeryl.customtypes". What might the reason be?

推荐答案

您不必构建Squeryl,可以下载

You don't have to build Squeryl, you can download the jar from http://github.com/max-l/Squeryl/downloads.

如果使用sbt,则可以将jar放到lib目录中(我刚刚尝试过并且能够使用import org.squeryl.customtypes.CustomTypesMode._编译示例.)

If you use sbt, you can drop the jar in the lib directory (I just tried and was able to compile the example using import org.squeryl.customtypes.CustomTypesMode._.)

或者,您应该能够将此行添加到sbt项目定义中:

Alternately you should be able to this line to your sbt project definition:

val squeryl = "org.squeryl" % "squeryl_2.8.0" % "0.9.4beta8"

然后运行更新:

$ sbt
[info] Recompiling project definition...
[info]    Source analysis: 1 new/modified, 0 indirectly invalidated, 0 removed.
[info] Building project test 1.0 against Scala 2.8.0
[info]    using MainProject with sbt 0.7.4 and Scala 2.7.7
> update
[info]
[info] == update ==
[info] downloading http://scala-tools.org/repo-releases/org/squeryl/squeryl_2.8.0/0.9.4beta8/squeryl_2.8.0-0.9.4beta8.jar ...
[info]  [SUCCESSFUL ] org.squeryl#squeryl_2.8.0;0.9.4beta8!squeryl_2.8.0.jar (1425ms)
[info] downloading http://repo1.maven.org/maven2/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar ...
[info]  [SUCCESSFUL ] cglib#cglib-nodep;2.2!cglib-nodep.jar (909ms)
[info] :: retrieving :: test#test_2.8.0 [sync]
[info]  confs: [compile, runtime, test, provided, system, optional, sources, javadoc]
[info]  2 artifacts copied, 0 already retrieved (1268kB/60ms)
[info] == update ==
[success] Successful.

这篇关于Squeryl-"CustomTypesMode不是包org.squeryl.customtypes的成员"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆