简体   繁体   English

Grails重新生成Eclipse项目

[英]Grails regenerate Eclipse project

I just upgrade Grails to 1.2.0. 我只是将Grails升级到1.2.0。 How can get Grails to regenerate the Eclipse .classpath file? 如何获得Grails重新生成Eclipse .classpath文件? It's currently pointing to the old Grails' JARs. 当前指向的是旧的Grails JAR。

Right-click on the project node and select Configure|Convert to Grails Project. 右键单击项目节点,然后选择“配置” |“转换为Grails项目”。 It'll setup a "Grails Dependencies" library pointing to the Grails jars, and it'll setup links to your plugin libs and folders. 它将建立一个指向Grails jars的“ Grails Dependencies”库,并建立指向您的插件库和文件夹的链接。 You will lose the entries for jars in the lib dir - my guess is that there's an assumption that you'll use Ivy for dependency management. 您将丢失lib目录中jar的条目-我的猜测是,假设您将使用Ivy进行依赖项管理。

there is an option to upgrade grails using command line. 有一个使用命令行升级grails的选项。 "grails upgrade" That should upgrade your app.. "grails upgrade"那应该升级您的应用程序。

before that you need to change your grails_home variable to point to your latest version. 在此之前,您需要将grails_home变量更改为指向最新版本。

Hope it helps. 希望能帮助到你。

Right click on the project name in the "Project Explorer" -> choose "Properties" 在“项目资源管理器”中右键单击项目名称->选择“属性”

In the "Properties for window, look for the grails option on the left side. 在“属性窗口”中,找到左侧的grails选项。

Once in there, there should be a drop down for the grails version that the project was initially confugured/imported with. 进入该目录后,应该有一个下拉菜单,其中列出了最初与项目混用/导入的grails版本。 This should be changed to your new version. 这应该更改为您的新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM