LoginSignup
0
0

More than 5 years have passed since last update.

Play1.0系でguice moduleを使う際の注意点

Last updated at Posted at 2013-11-25

注意点


guice moduleを使っている場合、play dependenciesの後に、
modules/guice-{version}/testフォルダを削除する必要がある。

削除しない場合、play runする場合は問題ないが、
play testが正常に動かなくなる。
(guiceのtestフォルダのテストを実行しようとして、コンパイルエラーになる。下図。)

play01.png

次の解決方法のどちらかで解決する。

解決方法1 手動でmodules/guice-{version}/testフォルダを削除する。


解決方法2 依存性解決に「--forProd」オプションを付ける。


play dependencies --forProd

で依存性を解決しtestフォルダを作成しない。

参考


本件に関してplay-framework(googlegroup)を参考にした。
https://groups.google.com/forum/#!msg/play-framework/RgWptGEHOUU/mAxXr1wmPO8J

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0