简体   繁体   English

如何附上用常春藤下载的库的源代码

[英]How to attach source code of libraries downloaded with ivy

I use ivy with the ivy eclipse plugin to download dependencies. 我使用ivy和ivy eclipse插件来下载依赖项。 Works great. 效果很好。 But how can I attach the source code for those libraries, in order to step into these libraries? 但是,我如何附加这些库的源代码,以便进入这些库?

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

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

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

I use the IvyDE plugin, and it seems to automatically download and attach sources. 我使用IvyDE插件,它似乎自动下载和附加源。 I'm using Eclipse Kepler with Apache IvyDE 2.2.0. 我正在使用Eclipse Kepler和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. 我没有在ivy.xml文件或我的Ant构建中做任何特殊的事情:它只是起作用。

There is a preferences page that might relate to this. 有一个可能与此相关的首选项页面。 For me, it's Window > Preferences > Ivy > Source/Javadoc Mapping: 对我来说,它是Window> Preferences> Ivy> Source / Javadoc Mapping:

在此输入图像描述

Those settings affect your entire workspace. 这些设置会影响整个工作区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM