【问题标题】:Grails Plugins and Team CityGrails 插件和 Team City
【发布时间】:2010-04-09 23:32:42
【问题描述】:

这是我目前的情况:

我已经使用 GIT 将我的 grails 应用程序代码 + Groovy 文件夹 + Grails 文件夹签入到 teamcity。 现在,当我尝试运行它时,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.

【问题讨论】:

  • 您的构建服务器似乎无法访问互联网。
  • 嗨 uthark,事情是......我不希望构建代理下载插件。不知何故,我想在我的应用程序中包含插件。有没有办法将插件作为应用程序的一部分包含在内?问候

标签: grails teamcity


【解决方案1】:

嗯,我终于做到了。我在 build.config 文件中添加了一行:

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

这基本上会在您的项目目录中创建一个 dir plugins 并在此处下载所有 zip。接下来,我签入了 GIT 中的所有 zip 和插件目录。既然一切都签到了,teamcity 就没有理由抱怨了。

现在一切都很顺利。

【讨论】:

    猜你喜欢
    • 2013-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-27
    • 1970-01-01
    • 2013-04-09
    • 1970-01-01
    相关资源
    最近更新 更多