Grails插件和Team City [英] Grails Plugins and Team City

查看:99
本文介绍了Grails插件和Team City的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我目前的情况:

我已使用GIT将我的grails应用程序代码+ Groovy文件夹+ Grails文件夹检入teamcity. 现在,当我尝试运行它时,Teamcity会向我抛出此错误:

I have checked in my grails app code + Groovy Folder + Grails Folder using GIT to teamcity. Now when I try to run it Teamcity trows me this error:

[13:33:35]: Error reading remote plugin list [java.net.ConnectException: Connection refused: connect], building locally...
[13:33:35]: Plugins list cache doesn't exist creating..
[13:33:36]: Unable to list plugins, please check you have a valid internet connection: Connection refused: connect
[13:33:37]: Reading remote plugin list ...

[13:33:38]: Plugins list cache doesn't exist creating..
[13:33:39]: Unable to list plugins, please check you have a valid internet connection: Connection refused: connect
[13:33:39]: Plugin 'db-util' was not found in repository. If it is not stored in a configured repository you will need to install it manually. Type 'grails list-plugins' to find out what plugins are available.
[13:33:39]: [delete] Deleting directory C:\Documents and Settings\RiskSystemsBuildSA\.grails\1.2.2\projects\f8c726f1e64e048c\plugins\tomcat-1.2.2
[13:33:41]: Process exited with code 1
[13:33:41]: Build finished

我认为我必须将插件打包到我的应用程序中,然后在GIT中对其进行检查.

I think I will have to package the plugins inside my app and then check them in GIT.

请让我知道您对此事的发言.

Please let me know your say on this matter.

非常感谢.

p.s. Teamcity correctly picks up the installed groovy and grails as I store .\grails and .\groovy in my teamcity environmen variables.

推荐答案

好,我终于实现了它.我在build.config文件中添加了一行:

Well I finally achieved it. I added a line in the build.config file:

grails.project.plugins.dir="./grails/plugins"

这基本上在您的项目目录中创建了一个dir插件,并将此处的所有zip压缩.接下来,我检查了GIT中的所有zip和插件目录.由于一切都已签到,因此teamcity没有任何抱怨的理由.

This basically creates a dir plugins inside your project directories and downlaods all the zips in here. Next I checked in all the zips and the plugin directory in GIT. Since, everything was checked-in, teamcity didn't have any reason to moan about.

其他所有事情现在都进展顺利.

Everything else is going smooth now.

这篇关于Grails插件和Team City的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆