Intellij can do this when importing a maven project, but it can slow it down. Instead, you can use the
goal to download source code jars. usage:
You can do this while IntelliJ is running - it will automatically detect the new sources.
Visit the Dependency Plugin documentation.
This is useful to know why a particular jar is being imported. I’ve had instances where multiple versions or clashing libraries were being imported.