构建器工作区依赖
我有两个项目,项目 A 和项目 B。项目 A 是一个库项目,因此它有自己的构建文件。我可以构建 jar 并且一切正常。
在项目 B 中,我想使用项目 A 作为 Eclipse 中的工作区依赖项。我不想每次在项目 A 中进行更改时都将项目 A 安装到本地存储库。 另外,当我运行 buildr eclipse 时,我希望它设置我的 eclipse 项目,以便将项目 A 添加为构建路径上的必需项目:
<classpathentry combineaccessrules="false" kind="src" path="/A"/>
它应该工作为:
compile.with project('A')
但我的项目 A 与项目 B 位于不同的构建文件中。
有没有办法设置工作区项目 B 的构建文件中对项目 A 的依赖吗?
I have two projects, project A and project B. Project A is a library project, so it has its own buildfile. I can build jar and everything works fine.
In project B i want to use project A as a workspace dependency in Eclipse. I don't wan't to install project A to local repo each time i make changes in project A.
Also when i run buildr eclipse i want it to setup my eclipse project so it adds project A as required project on build path:
<classpathentry combineaccessrules="false" kind="src" path="/A"/>
It should work as:
compile.with project('A')
But my project A is in different buildfile as project B.
Is there a way to setup workspace dependency on project A in buildfile for project B?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前还没有切实可行的方法来实现这一目标。无法解决不同构建文件之间的依赖关系,因为项目是通过每个构建文件的顶层进行组织的。
如果您想更进一步,请随时向 Apache buildr 错误跟踪系统提交增强请求并提供补丁。即使只是一个规格也会有很大帮助。
There is no practical way to achieve that at this time. Dependencies between different buildfiles cannot be resolved as the projects are organized with a top level for each Buildfile.
If you'd like to take this further, please feel free to file an enhancement request on the Apache buildr bug tracking system and provide a patch. Even just a spec would help a ton.