I click "download sources and documentation" in Intellij Idea Community Edition 12.1.4 and get error that sources can not be downloaded. But when I try:
mvn dependency:sources
All sources are downloaded.
What is the problem?
P.S. I have checked that Idea use the same maven that use in console. There are not any "off line" mode buttons triggered in Idea.
Just do a "Search anywhere" (Opt-Shift-A) for "automatically download". This brings up Maven |Importing | Preferences dialog. 2/3 way down there are small checkboxes: Automatically download Sources Documentation.
Maven IntelliJ IDEA supports a fully-functional integration with Maven that helps you automate your building process. You can easily create a new Maven project, open and sync an existing one, add a Maven support to any existing IntelliJ IDEA project, configure and manage a multi-module project.
In Intellij 2017.x, 2016.x, 15.x, 14.x the given solution does not work as the option is removed.
The problem can be solved by changing JDK for Importer
to a latest JDK instead of User Internal JRE
which was 1.6.0 by default on Mac
The setting JDK For Importer
can be found in:
Preferences -> Build, Execution,Deployment -> Build Tools -> Maven -> Importing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With