Joke aside, I’ve been spending a few (late) hours not understanding why IntelliJ and maven would disagree about my code, while all I simply forgot is to “mvn install” the upstream dep I was also changing. Time to get some rest I guess.
I’ve actually had the same (sadly, worse!) with Eclipse a few years back (but it was a much larger spaghetti project, probably doesn’t help). Nobody’s perfect.
I also don't have this problem with NetBeans as it simply runs Maven the same way I would do from the command line (NetBeans "uses" the POM directly as a project definition, no "import" or "conversion" is required)
IntelliJ also can also delegate the build to Maven so that IntelliJ configures itself from the pom.xml and watches the pom.xml for changes. The commenter must have turned off the delegating the build to Maven (it is on by default I believe...it is definitely on by default for Gradle).
7
u/[deleted] Apr 14 '23 edited Apr 14 '23
Compile first. Run second.
Joke aside, I’ve been spending a few (late) hours not understanding why IntelliJ and maven would disagree about my code, while all I simply forgot is to “mvn install” the upstream dep I was also changing. Time to get some rest I guess.