Redar
Redar

Reputation: 83

Intellij takes forever to execute maven goals for a JUnit test

I'm running a Junit test and everytime I run it, I wait ~5 minutes for "executing maven goals". After that it starts up application context and runs tests. I know that this same test runs without executing maven goals and a lot faster on other environments.

I tried removing "Build" from configuration... enter image description here

... but then it doesn't update changed files

Here is how it looks in IntelliJ (for my 5 minutes): enter image description here

I suppose Build takes too long in my case, is there any other way to grab the changes before running the test and not wait forever?

Upvotes: 2

Views: 1976

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402543

Disable the Maven build/run delegation option in File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner.

Upvotes: 3

Related Questions