Solve the problem that there is no src directory when IDEA creates a maven project
Links to related articles:
Eclipse and IDEA create a Maven Java project
Tips before viewing:
The IDEA version used in this article is ultimate 2019.1, the JDK version is 1.8.0_141, and the Tomcat version is 9.0.12.
When using IDEA to create a maven project, I found that the lower right corner has been loading the configuration, which is very slow, and the src directory is not generated for a long time. I searched the Internet and provided the following two solutions
1. Configure the default settings
File->Other Settings->Settings for New Projects
Search the search box and enter Maven->Find Maven->Runner->Fill in VM Options
-DarchetypeCatalog=internal
2 Configuration when creating a new maven project
Add the following properties when configuring maven in a new Maven project.