how do i remove dependency from intellij?

When you made the change to pom.xml, a popup probably would have appeared at the bottom-right of the IDE saying:

Maven projects need to be imported
Import Changes       Enable Auto-Import

If you click ‘Import Changes’, you should find that IntelliJ reloads the POM file and removes the dependencies that you’ve deleted.

Assuming you no longer have that popup on the screen, you can achieve the same thing by opening the ‘Maven’ tab on the right-hand side of the screen and clicking the ‘Reimport All Maven Projects’ button (looks like a refresh button with two arrows in a circle).

Maven tool window

You can also have IntelliJ do this for you automatically. If the popup mentioned above is still open, simply click ‘Enable Auto-Import’, otherwise open the settings and navigate to:

Build, Execution, Deployment > Build Tools > Maven > Importing

then select the option “Import Maven projects automatically”.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top