【发布时间】:2014-09-14 12:52:10
【问题描述】:
我正在尝试将较旧的 1.3 Grails 项目更新为最新的 Grails/Groovy/etc。所以我下载了 Grails 2.4.2、Groovy 2.3 和 Java 1.7.0_65。然后我通过 Import->Grails 导入了项目。我发现插件现在是通过 BuildConfig.groovy 文件配置的,所以我使用插件部分对其进行了编辑,然后运行 Grails Tools -> Update Dependencies。我的插件都没有出现在类路径上?但是,如果我启动插件管理器(我不完全清楚它为什么在产品中,因为它声明它在 2.3 版之后不会做太多......),它确实列出:
Plug-ins you currently have installed are listed below:
-------------------------------------------------------------
mail 1.0.6 -- Provides Mail support to a
running Grails application
routing 1.2.0 -- Routing capabilities using
Apache Camel
routing-jms 1.2.0 -- JMS integration for the
grails-routing plugin
shiro 1.2.1 -- Apache Shiro Integration for Grails
所以 SOME 部分 Grails 似乎知道插件。另外,如果我从我的 $HOME/.grails/projects/myProject/plugins 目录中删除插件并重新运行 Grails Tools -> refresh dependencies,我会在控制台上看到两个文本,说它们正在安装并且它们会返回那个目录。
唯一看起来不正常的是,在编译的第二组文件(我的项目文件)期间存在编译错误。我期望这些(例如 grailsApplication / 等)。为了修复它们,我想使用 GGTS - 但是,由于插件不在类路径中,所以存在很多编译错误,这不是很可行。
如果有人有想法或建议让我尝试,将不胜感激!
【问题讨论】:
标签: grails groovy sts-springsourcetoolsuite