intellij idea add maven project:

intellij idea Add maven project:

1.File new Project select Maven, check Create from archetype, select maven-archetype-webapp in the selection list
2.next fill in GroupId ArtifactId next
3. Add in Properties at the bottom of the page of Maven home directory archetypeCatalog=internal

4. Configure tomcat as shown in the figure:



Select Deployment as shown above. At this time, you will find that the test project cannot be added. Why is this?
This is the relationship between maven and tomcat, maven loads the web project, and the artifactId in the maven project is generated,
so we use the following steps to solve it:

Open the Maven Projects on the right side of intellij idea as shown below:


After clicking clean,



then you can build a Simple maven project.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326941298&siteId=291194637