【问题标题】:Grails extension in SpringSource Tool Suite errorsSpringSource Tool Suite 错误中的 Grails 扩展
【发布时间】:2012-06-30 14:10:06
【问题描述】:

我最近安装了 SpringSource 工具套件。我想开始使用 Grails 项目。所以,我去了仪表板 -> 扩展,在那里我看到了两个扩展:Grails(当前生产版本)和 Grails Support,如下图所示。

但是当我尝试安装它们时,我收到以下错误:

Problems occurred while performing installation: Operation details
Operation details
Cannot complete the install because one or more required items could not be found.
Software currently installed: Shared profile 1.0.0.1340820181092 (SharedProfile_com.springsource.sts.ide 1.0.0.1340820181092)
Missing requirement: Shared profile 1.0.0.1340820181092 (SharedProfile_com.springsource.sts.ide 1.0.0.1340820181092) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found

我可以做些什么来解决这个错误?或者我可以按照其他选项来安装 Grails 扩展吗?

谢谢!

【问题讨论】:

    标签: grails groovy grails-plugin sts-springsourcetoolsuite springsource


    【解决方案1】:

    我会切换到最近发布的新“Groovy/Grails Tool Suite”(请参阅​​http://www.springsource.org/node/3582)。转到http://www.springsource.org/downloads/sts 的标准下载页面,然后单击“其他下载>”。在“里程碑版本 - Groovy/Grails Tool Suite 3.0.0.M2”下下载适合您操作系统的版本。

    这是一个测试版/里程碑版本,但自从它发布以来我一直在使用它,并且到目前为止它与最终版本一样稳定。这很方便,因为除了最新的 Grails (2.0.4) 之外,已经为您配置了 Groovy-Eclipse 插件和 Grails 支持。您需要从标准 STS 获得的任何其他插件始终可以使用标准安装/更新过程进行安装。

    【讨论】:

      【解决方案2】:

      是的,@BurtBeckwith 说的。您应该搬到新的 GGTS。

      但是,为了解决您的特定问题,您将 STS 安装到只读目录(或 C:\Program 文件)中。您需要在其他地方重新安装它。

      Eclipse p2 安装程序无法将功能补丁安装到只读目录中。 Groovy-Eclipse 附带了一个特性补丁来扩展 JDT 编译器。我相信这个问题在上周发布的 Eclipse (4.2) 的 Juno 版本中得到了解决。

      【讨论】:

      • 谢谢安德鲁!当我在 C: 驱动器下重新安装它时它起作用了。
      【解决方案3】:

      从 Windows 内存中删除相应的应用程序消除了问题(SpringSource 工具套件中的 Grails 扩展错误)。双重运行的应用程序(早期和新的)也可能是 GGS 或 STS 有时无法保存 .groovy 文件(有或没有错误消息)的原因。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-05-14
        • 2012-06-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多