A. Not modify intellj setting configuration (create common maven project = "turn into a web project)
Create a project directly next ordinary maven
Then maven project, turn into a web project
Right Project Add Framework Support
Add Web Application Support
After clicking ok, the project becomes a web project, see the following directories:
II. Modify intellj setting configuration (create maven-web project)
General experience maven webapp project did not create src directory
1, the configuration file settings.xml
Found in the maven installation directory conf-> settings.xml find localRepository, the source file is commented as follows:
Set maven mirrored
this success is my solution to the problem, and this problem after installing the update Linux software mirror almost as many links outside the network can not access without a VPN. I am also looking for a long time to find the problem, I did not expect such an important issue that is also installed in the tutorial did not even mention this point.
Down specific settings, in fact, the mirror image abroad into domestic Ali cloud images.
Specific values:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
2、IDEA中maven的配置有问题
配置runner的VMoption
archetypeCatalog=internal
然后新建maven项目everything is ok!!