Solve the problem that there is no src directory when IDEA creates a maven project

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

Insert picture description here
Search the search box and enter Maven->Find Maven->Runner->Fill in VM Options

-DarchetypeCatalog=internal

Insert picture description here

2 Configuration when creating a new maven project

Add the following properties when configuring maven in a new Maven project.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43611145/article/details/103076341