debugging - Could "attach source" be made easier for popular Java libraries? -
i run obstacle when debugger steps classfile without corresponding source. finding difficult:
you have search site hosting respective project, , find ``download source'' page (for instance, last time searched jpa api, , took me hours obtain sources). or, might required check out revision control.
you need know exact version using. otherwise debugger might step comments , empty lines :)
there no convention packaging source code—some projects include in jar itself; provide separate zip file; others put in
src/subfolder within zip.
i know maven has capability of downloading source repository , including in src paths when ide config file generated. maven's repo poor in terms of content—few libs have source uploaded.
why complicated when can made straightforward? have central repo relates classfile (or hash thereof) source file compiled (or link it). maybe rather huge repo, pretty structured. ide plugin query fetch what's needed automatically.
have you, guys, experienced same?
how obtain sources attach?
both m2eclipse , idea download sources , javadocs dependencies. m2eclipse sources can downloaded right-clicking on dependency (or whole project if want sources) , clicking maven->download sources.

on newer versions of m2eclipse can automatically download sources going window->preferences...->maven, selecting "download artifact sources" option. when open type in dependency jar there no sources available for, maven download sources in background , update source attachment in background.

Comments
Post a Comment