我最近安装了SpringSource Tool Suite。我想开始使用Grails项目。所以,我去了仪表板 - >扩展,我看到了两个扩展:Grails(当前生产版本)和Grails支持,如下图所示。
但是当我尝试安装它们时,我收到以下错误:
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扩展程序吗?
谢谢!
答案 0 :(得分:2)
我会切换到最近宣布的新“Groovy / Grails工具套件”(参见http://www.springsource.org/node/3582)。转到http://www.springsource.org/downloads/sts的标准下载页面,然后点击“其他下载>”。在“Milestone Version - Groovy / Grails Tool Suite 3.0.0.M2”下载适用于您的操作系统的版本。
这是一个测试版/里程碑版本,但自从它发布以来我一直在使用它,它与迄今为止的最终版本一样稳定。除了最新的Grails(2.0.4)之外,还为您配置了Groovy-Eclipse插件和Grails支持,这很方便。您可以使用标准安装/更新程序始终安装标准STS所需的任何其他插件。
答案 1 :(得分:1)
是的,@ BurtBeckwith说的是什么。你应该转移到新的GGTS。
但是,为了解决您的特定问题,您将STS安装到只读目录(或C:\ Program文件)中。您需要在其他地方重新安装它。
Eclipse p2安装程序无法将功能修补程序安装到只读目录中。 Groovy-Eclipse附带了一个功能补丁来扩展JDT编译器。我相信这个问题已在上周发布的Eclipse(4.2)的Juno版本中得到修复。
答案 2 :(得分:1)
从Windows内存中删除相应的应用程序删除了问题(SpringSource Tool Suite错误中的Grails扩展)。双重运行的应用程序(早期和新的)也可能是GGS或STS有时无法保存.groovy文件(带错误消息或没有)的原因。