Grails 2.5.0 - 在 Maven 依赖中访问 类

Grails 2.5.0 - access classes in maven dependency

我需要访问 Jedis 的某些功能,这些功能在 Redis 插件中不可用。我在 BuildConfig.groovy 中将 compile "redis.clients:jedis:2.8.0" 添加到我的依赖项中,但我的 IDE 显示 Jedis 类 仍然不可用。我如何访问那些 类?

您必须告诉您的 IDE 您的类路径结构发生了变化。

无论您使用哪种 IDE,都应该有一种方法可以 运行 任何命令。像 IntelliJ 一样:Run -> Run Command.

打开该对话框并运行命令:grails refresh-dependencies