For some of my modules Intellij IDEA is not importing the dependencies and plugins. Just the live cycle is imported.
The poms are valid as I compile on the command line. I have deleted the modules and reimported them. I deleted the project them and re-imported it.
So I wonder if there is some secret cache where Intellij IDEA informations on modules even after they are deleted.
Or if there is any other reason why Intellij IDEA might not be able to import dependencies and plugins.
UPDATE:
Found this interesting error message:
I don't use apache commons. Must be an Intellij IDEA problem. Maybe it is time for a bug report.
The first place that Maven looks for artifacts is in the local repository, which is the local cache where Maven stores all of the artifacts it has downloaded or found elsewhere. The default location of the local repository is the . m2/repository/ directory under the user's home directory.
In the POM, right-click anywhere in the editor to open the context menu and select Maven | Show Dependencies. Alternatively, press Ctrl+Alt+Shift+U or Ctrl+Alt+U . In the diagram window, IntelliJ IDEA displays the sub project and all its dependencies including the transitive ones.
If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.
Invalidate Cache clears project structure related information (only) cached by Android studio.
...\home\.IntelliJIdea14\system\Maven
- cache for maven artifacts, you can probably delete it.
Module and project informations are stored within the project - .idea
folder and *.ipr
and *.iml
files, you can delete them to be sure and reimport the project.
Sometimes Main Menu | File | Invalidate caches
might help.
I was having an issue where IntelliJ would show compilation issues in some classes, even though running a full mvn clean install
from the command line would run successfully with no errors whatsoever.
The solution for me as suggested here was to invalidate the cache and restart. I picked an option to both invalidate cache and restart.
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