1. Select
org.apache.maven.archtypes:maven-archtype-webapp
2, prohibit remote download
archetypeCatalog=internal
The purpose is not remote downloading, otherwise always [downloading maven plugins ...]
3、jetty
<build> <finalName>myprj</finalName> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.3.27.v20190418</version> <configuration> <httpConnector> <port>9999</port> </httpConnector> <scanIntervalSeconds>10</scanIntervalSeconds> <webAppConfig> <contextPath>/myprj</contextPath> </webAppConfig> </configuration> </plugin> </plugins> </build>
See also: https://www.cnblogs.com/yaoyuan2/p/10577785.html
The final directory structure: