Reputation: 3091
I noticed, that mvn -U idea:idea is marked as retired.
What is the replacement for that? Because, and maybe I'm doing something wrong, this is the most important functionality of IDEA IDE. From once per week to several times a day something happens, and 'the universe stop making any sense'.
Constructors are not being called, breakpoints aren't hit, etc. etc. Restarting/clearing caches/refreshing maven project/anything I know about and does not help ...
Only calling mvn -U idea:idea
in question cures this IDEA and we're back to normal.
Questions:
mvn -U idea:idea
we should use instead? Most probably this issues would be related to somewhere outside of clearable cache, holding old versions of dependencies and using them violating pom.xml etc.
This somehow survives externally called mvn clean, cache clearing, restarts... Any ideas on how to treat this issue would be also welcomed.
Upvotes: 6
Views: 7225
Reputation: 41
Reading from the maven plugin page:
org.apache.maven.plugins:maven-idea-plugin:2.2.1:idea Description: Goal for generating IDEA files from a POM. This plug-in provides the ability to generate project files (.ipr, .iml and .iws files) for IDEA.
Solution: you can replace it with manual steps: delete al .iml .ipr .jws files . Than reimport the project in IDEA
PS: do not know why it is retired(maybe they think it has no bugs anymore :) )
Upvotes: 0
Reputation: 401965
Import the project from pom.xml
, Reimport in the Maven projects tool window when needed or use the auto import option.
If you have any issues, perform the diagnostics and check the logs as described in this answer, submit a bug with the reproducible test case so that it can be fixed once and forever for your specific use case.
Upvotes: 1