How can I force Idea to download all sources of all Maven artifacts?

Answered

Sometimes we have to run FindInPath search to find something in our codebase. Often this can be a text of exception thrown by some external library which we want to investigate. We may run FindInPath search to lookup exception message and thus find out why it is thrown.

The problem is that source code of Idea artifacts is downloaded on demand. I.e. first it tries to decompile some Java class code, and then - if I press download sources - it tries to download them.

In case I have not downloaded sources FindInPath search doesn't work.

Can I force Idea to always download all available sources for my project?

Please sign in to leave a comment.