Search code examples
spring-mvcintellij-idea

No Suggestion for <artifactId> on Spring MVC


First of all, I apologize for my english. When I try to create a .spring MVC project, I first created a maven project. Then, in pom.xml, nothing happens to my section. Below are the pom.xml and the project settings showing the mavel's fault. Maven Error on Project Structure

Pom.xml

  • SOLVED

Just update maven repository.Settings-> Build, Execution... -> Builds Tools -> Maven -> repositories.

[![enter image description here][3]][3]


Solution

  • You need to update/scan your repositories before you can use the auto-completion in the pom files.

    Open Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Repositories, select the repository you want to update and hit the Update button.

    repository-update-dialog

    (transferred comment to an answer to let others find it)