这是 Grails 1.3.7,而不是 Grails 2.x。非常重要,因为 Grails 2.x 中有各种不错的功能可以真正帮助我们,但在这个版本中似乎不可用。开发人员正在尝试升级,但可能需要一段时间。
直奔问题的核心。我们与 Jenkins 和 Ivy 一起构建。我们有使用本地 Maven 存储库的 grails 应用程序,但它使用默认的 $HOME/.ivy/cache
为缓存。我们需要一些方法来重新定义它。
我们在 1.3.7 文档中发现了这个花絮,它似乎给了我们可能需要的东西:
4.5 Ant and Maven
[...]
Ant Integration
When you create a Grails application via the create-app command, Grails automatically creates an Apache Ant build.xml file for you containing the following targets:
听起来很棒。但是,当我运行
grails create-app foo
, 我找不到 build.xml
我的 foo
中的文件项目。为了创建这个
build.xml
我需要做些什么吗?文件没有告诉我?是的。我知道
grails.dependency.cache.dir
,但这并没有引入到 2.0.4 版中。
最佳答案
您可以尝试使用命令grails integrate-with --ant
为了生成build.xml
.找到相同的here具体到 Grails 1.3.7。
关于Grails 1.3.7 - build.xml 在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16178075/