Grails插件和团队城市

时间:2010-04-01 13:03:52

标签: grails teamcity

这是我目前的情况:

我已经使用GIT向teamcity检查了我的grails应用程序代码+ Groovy Folder + Grails文件夹。 现在,当我尝试运行它时,Teamcity向我展示了这个错误:

[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中检查它们。

请让我知道你对此事的发言。

非常赞赏。

P.S。Teamcity correctly picks up the installed groovy and grails as I store .\grails and .\groovy in my teamcity environmen variables.

1 个答案:

答案 0 :(得分:0)

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

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

这基本上会在项目目录中创建一个dir插件,并在此处下载所有拉链。接下来,我检查了GIT中的所有zip和插件目录。因为,一切都已登记,团队城没有任何理由抱怨。

其他一切现在都很顺利。