Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not download sources with Intellij Idea community 12.1.4 and maven 3.0.5

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.

like image 551
Cherry Avatar asked Sep 13 '13 05:09

Cherry


People also ask

How do I download Maven sources in IntelliJ?

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.

Does IntelliJ Community Edition support Maven?

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.


1 Answers

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

like image 163
Chakra Avatar answered Sep 23 '22 20:09

Chakra