重新附加intellij中的来源? [英] re-attach sources in intellij?
问题描述
我希望调试jaxb-impl的源代码。
I'm hoping to debug into the source code of jaxb-impl.
我下载了2.2.6版本,附加了源代码然后意识到我正在调试的应用程序正在使用jaxb-impl 2.2.3版本
I downloaded version 2.2.6, attached the sources and then realized the app I'm debugging is using jaxb-impl version 2.2.3
所以现在我有了2.2.3版本的正确版本,我无法弄清楚如何从2.2.6源中删除关联以便我可以附加2.2.3?
So now that I have the correct version 2.2.3 of the source, I can't figure out how to remove the association from 2.2.6 source so that I can attach the 2.2.3?
更新:我发现你可以进入.idea目录,找到库xml def并删除中的所有内容< sources> ;
标签。就我而言,我编辑了 libraries / Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml
。
Update: I figured out that you can go into the .idea directory, find the library xml def and remove all the stuff inside the <sources>
tag. In my case, I edited libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml
.
任何人都知道是否有办法通过GUI进行此操作?
Anyone know if there's a way to do this thru the GUI?
推荐答案
项目结构
| 图书馆
(或模块依赖关系如果在那里定义了库):
Project Structure
| Libraries
(or Module Dependencies if libraries are defined there):
如果Maven正在管理依赖项,在<$中下载资源
c $ c> Maven项目也应该有效:
In case Maven is managing the dependencies, Download Sources
in the Maven Projects
should also work:
这篇关于重新附加intellij中的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!