Cherry Cherry - 3 months ago 37
Java Question

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.

Answer

Running IDEA version 12.1.6 and I have the same issue.

When I uncheck the following option it does work:

Settings > Maven > Importing > Use Maven3 to import project