Ant 任务刷新 IvyDE Eclipse 库

发布于 2024-12-25 03:21:14 字数 220 浏览 2 评论 0原文

我使用 Ivy 与 IvyDE Eclipse 插件进行依赖关系管理,并且我有经常更改的依赖库,并且当我刷新工作区时 Eclipse 似乎没有刷新这些库。

<eclipse.refreshLocal depth="*" resource="/" />

有没有办法让 Eclipse 使用 ant 任务刷新 Ivy 库,或者在工作区刷新时刷新它们?

I use Ivy for dependency management with the IvyDE Eclipse plugin and I have dependent libraries that change quite frequently and Eclipse doesn't seem to refresh the libraries when I refresh the workspace.

<eclipse.refreshLocal depth="*" resource="/" />

Is there a way to get eclipse to refresh the Ivy libraries using an ant task, or refresh them upon a workspace refresh?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

冰之心 2025-01-01 03:21:14

您可以尝试触摸 ivy.xml。
这可能会在工作区刷新后触发 ivy 更新。

You could try to touch the ivy.xml.
This might trigger an update of ivy after a workspace refresh.

三生池水覆流年 2025-01-01 03:21:14

你可以进入Windows ->偏好->在 Eclipse 启动时更改为“触发刷新”

You can go in the Windows -> Preference -> on Eclipse Startup and change to Trigger Refresh

梦幻之岛 2025-01-01 03:21:14

项目中的“ivy.xml”Eclipse Library 右键菜单上的 Refresh 或 Resolve 不能使用吗?

Can't you use Refresh or Resolve on the right-click menu for the "ivy.xml" Eclipse Library in the project?

迷你仙 2025-01-01 03:21:14

添加到oers的答案上面Pat B的回答,您需要转到Window > >首选项> Ivy,并更改以下首选项:

  • 将“在 Eclipse 启动时”设置为“触发解析”,并将
  • “在 Ivy 文件更改时”设置为“触发解析”

这些应该可以解决问题,特别是与提供的“触摸”建议结合使用他的回答

在此处输入图像描述

To add to oers' answer and Pat B's answer above, you would need to go to Window > Preferences > Ivy, and change the following preferences:

  • Set "On Eclipse startup" to "Trigger resolve", and
  • Set "On Ivy File Change" to "Trigger resolve"

These should do the trick, especially in combination with the "touch" suggestion that oers made in his answer.

enter image description here

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