Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij idea specify repository for downloading sources

It seems that question can be related to How to automatically attach source code for dependency in Intellij? but it`s not in full manner.

In debug mode I'm getting into decompiled file and idea ask me to download or set the path to sources.

Download button

For resolving I'm using some nexus repository which aggregates different vendors public jars (proxy repositories,reuploaded jars and etc). Unfortunately it contains jars but very often it doesn't contain sources or javadocs.

But at the same time vendors' repositories contain sources. After clicking "download" button - I can see that idea try to find sources only in "oss.sonatype.org" repository.

Downloading sources

So is any ability to set the list of repositories where Idea can search sources?

like image 665
Sedos Avatar asked Dec 06 '25 03:12

Sedos


1 Answers

IntelliJ will respect your normal Maven configuration. You can define repositories in the actual pom.xml or in your maven user setting under ~/.m2/settings.xml. See https://maven.apache.org/guides/mini/guide-multiple-repositories.html

like image 191
newur Avatar answered Dec 07 '25 19:12

newur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!