如何附加使用ivy下载的库的源代码

发布于 2024-07-26 02:12:50 字数 70 浏览 2 评论 0原文

我使用 ivy 和 ivy eclipse 插件来下载依赖项。 效果很好。 但是我如何附加这些库的源代码,以便进入这些库?

I use ivy with the ivy eclipse plugin to download dependencies. Works great. But how can I attach the source code for those libraries, in order to step into these libraries?

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

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

发布评论

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

评论(3

软的没边 2024-08-02 02:12:50

您是否尝试过附加源配置?

<dependencies defaultconfmapping="*->default,sources">

Have you tried attaching the source configurations?

<dependencies defaultconfmapping="*->default,sources">
挽清梦 2024-08-02 02:12:50

有一个 ant 任务,它将修改 .classpath 文件以引用源附件。

There is an ant task that will modify the .classpath file to reference the source attachments.

灰色世界里的红玫瑰 2024-08-02 02:12:50

我使用 IvyDE 插件,它似乎会自动下载并附加源。 我正在将 Eclipse Kepler 与 Apache IvyDE 2.2.0 结合使用。 我不需要在 ivy.xml 文件或 Ant 构建中做任何特殊的事情:它就可以工作。

有一个可能与此相关的首选项页面。 对我来说,它是 Window > 首选项> 常春藤> 源/Javadoc 映射:

在此处输入图像描述

这些设置会影响您的整个工作区。

I use the IvyDE plugin, and it seems to automatically download and attach sources. I'm using Eclipse Kepler with Apache IvyDE 2.2.0. I didn't have to do anything special in my ivy.xml file or in my Ant build: it just works.

There is a preferences page that might relate to this. For me, it's Window > Preferences > Ivy > Source/Javadoc Mapping:

enter image description here

Those settings affect your entire workspace.

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