Think that using the IDE to generate MAVEN projects will get stuck, very slowly. A cmd Batch command was written with CMD to generate the MAVEN project. The effect is as follows
Build Project import idea after the structure is as follows
The batch command code is as follows
@echo Off::echo Please select the project type: Echo 1.maven-archetype-quickstartecho 2.maven-archetype-webappset/p webtype= Please select project type::: Echo %webtype%set/p dgroupid= dgroupid=set/p dartifactid= dartifactid=::echo%webtype%%dgroupid%%dartifactid%if selected webtype% equ 1 (call mvn archetype:generate-darchetypecatalog=internal-dgroupid=%dgroupid%-dartifactid=%dartifactid %-darchetypeartifactid=maven-archetype-quickstart-dinteractivemode=false) Else (call MVN archetype:generate- darchetypecatalog=internal-dgroupid=%dgroupid%-dartifactid=%dartifactid%-darchetypeartifactid= Maven-archetype-webapp-dinteractivemode=false) If%webtype% equ 2 (MD%~dp0\%dartifactid%\src\main\javamd%~dp0\%D ARTIFACTID%\SRC\TEST\JAVAMD%~dp0\%dartifactid%\src\test\resources) Pause
Copy the code, create a new Notepad file, paste the code in, and save the file as a. bat suffix, such as
Click to run, follow the prompts to fill in. Thank you
Using batch commands to generate MAVEN projects (Java, javaweb) under Windows