Gradle Ear-plugin 与 ejb 依赖项的问题
我正在尝试将新的 Ear-plugin (gradle-1.0-milestone-4-20110610162713+0200) 与 ejb 一起使用。我将 ejb-jar 添加为部署依赖项。但是,由于部署依赖项是间接添加的,所以我没有获得 ejb-jar 的依赖项。我发现的唯一方法是将 ejb-jar 添加为earlib,但随后将 ejb-jar 添加到ear lib 目录。
无论如何,是否可以优雅地添加此内容,以便将 ejb-jar 添加到根目录并将其依赖项添加到 lib?
I'm trying to use the new ear-plugin (gradle-1.0-milestone-4-20110610162713+0200) with ejb's. I add the ejb-jar as a deploy dependency. However since the deploy dependencies are added intransitivily I don't get the dependencies of the ejb-jar. The only way I found was to also add the ejb-jar as earlib, but then the ejb-jar is added to ear lib directory.
Is there anyway to gracefully add this so that the ejb-jar is added to the root and its dependencies to lib?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建支持 ejb 和 slimy wars 的 Ear 将作为 http://issues.gradle 的一部分实现。 org/browse/GRADLE-37 和/或 http://issues.gradle.org/browse/GRADLE-1637。
Creating ears that support ejbs and skinny wars will be implemented as a part of http://issues.gradle.org/browse/GRADLE-37 and/or http://issues.gradle.org/browse/GRADLE-1637.
这段代码对我有用:
This code works for me:
五年后 GRADLE-1637 仍然开放......这就是我解决问题的方法使用 Gradle 2.13。希望这对某人有帮助。
Five years later GRADLE-1637 is still open... This is how I solved the problem with Gradle 2.13. Hope this helps someone.