re-attach sources in intellij?

intellij-idea

Solution

`Project Structure` | `Libraries` (or Module Dependencies if libraries are defined there):

In case Maven is managing the dependencies, `Download Sources` in the `Maven Projects` should also work:

Problem

I'm hoping to debug into the source code of jaxb-impl. 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 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? 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`. Anyone know if there's a way to do this thru the GUI?

Original source