How to attach source code of libraries downloaded with ivy

让人想犯罪 __ 提交于 2019-11-27 12:59:57

问题


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?


回答1:


Have you tried attaching the source configurations?

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



回答2:


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




回答3:


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:

Those settings affect your entire workspace.



来源:https://stackoverflow.com/questions/1083860/how-to-attach-source-code-of-libraries-downloaded-with-ivy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!