Skip to main content

Interested in sponsoring the site? [find out more]

blog title image

1 minute read - IntelliJ Java For Testers Maven

Do "Enable Auto-Import" in IntelliJ for "Maven projects need to be imported"

Sep 18, 2013

If you see the “Maven projects need to be imported” popup in IntelliJ, then do click “Enable Auto-Import”.

You very often see this when you first create new projects and it is easy to miss. But many of my “Why isn’t it finding this class” and “Why didn’t it import that” queries, are because I haven’t noticed the popup sitting patiently in the top right, waiting for me to respond.

Very often the first time you type @Test and you know you added JUnit as a dependency, and it runs fine from the command line, but IntelliJ doesn’t like it.

If you miss the popup then you can still set the properties using the IntelliJ options:

If you like this content then you might be interested in my Patreon Community. I create exclusive content multiple times a week. Gain access to Patreon only content and online training courses for as little as $1 per month. Learn more about the EvilTester Patreon Community.

<< Chapter on Date and Time added to Java For Testers
FAQ: Why do I only see test that fail in IntelliJ and not the tests that pass? >>