SBT で Squeryl フレームワークを構築し、Scala 2.8 および NetBeans 6.9 で使用しようとしています。Squeryl introで説明されているようにエンティティ モデルを定義しましたが、IDE とコンパイラは「CustomTypesMode はパッケージ org.squeryl.customtypes のメンバーではありません」と文句を言います。理由は何でしょうか?
1 に答える
2
Squeryl をビルドする必要はありません。jarはhttp://github.com/max-l/Squeryl/downloadsからダウンロードできます。
sbt を使用している場合は、jar を lib ディレクトリにドロップできます (試してみたところ、 を使用してサンプルをコンパイルできましたimport org.squeryl.customtypes.CustomTypesMode._
。)
または、次の行を sbt プロジェクト定義に追加できるはずです。
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.
于 2010-09-11T20:22:24.817 に答える