构建器工作区依赖

发布于 2024-12-19 19:17:19 字数 454 浏览 3 评论 0原文

我有两个项目,项目 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神回复 2024-12-26 19:17:19

目前还没有切实可行的方法来实现这一目标。无法解决不同构建文件之间的依赖关系,因为项目是通过每个构建文件的顶层进行组织的。

如果您想更进一步,请随时向 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文