Ant 任务刷新 IvyDE Eclipse 库
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以尝试触摸 ivy.xml。
这可能会在工作区刷新后触发 ivy 更新。
You could try to touch the ivy.xml.
This might trigger an update of ivy after a workspace refresh.
你可以进入Windows ->偏好->在 Eclipse 启动时更改为“触发刷新”
You can go in the Windows -> Preference -> on Eclipse Startup and change to Trigger Refresh
项目中的“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?
添加到oers的答案和上面Pat B的回答,您需要转到Window > >首选项> 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:
These should do the trick, especially in combination with the "touch" suggestion that oers made in his answer.