Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the replacement for Intellij IDEA maven goal idea:idea

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:

  • a) is there a replacement for mvn -U idea:idea we should use instead?
  • b) is there a different way to stop idea harming itself?

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.

like image 885
Martin Mucha Avatar asked Nov 16 '22 13:11

Martin Mucha


1 Answers

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.

like image 183
CrazyCoder Avatar answered Dec 21 '22 22:12

CrazyCoder