2010-04-01 77 views
0

这是我目前的情况:Grails的插件和团队市

我在Grails的应用程序代码+使用Git来TeamCity的Groovy的文件夹+ Grails的文件夹中有检查。 现在,当我尝试运行它的TeamCity trows我这个错误:

[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.

+0

它看起来像您的生成服务器无法访问互联网。 – uthark 2010-04-02 05:31:31

+0

Hi uthark, 事情是......我不希望构建代理下载插件。不知怎的,我想在我的应用程序中包含插件。 有没有办法将插件作为应用的一部分? 此致 – WaZ 2010-04-06 09:31:03

回答

0

那我终于实现了。我加在build.config文件中的一行:

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

这基本上你的项目目录中创建一个目录插件和downlaods所有的拉链在这里。接下来,我检查了GIT中的所有zip文件和插件目录。因为,所有事情都被签入了,团队没有任何理由呻吟。

现在一切都很顺利。