Intellij Idea 无法启动项目的配置坑

1. run/debug configuration里面,tomcat的deployment点击添加不能自动创建war-explorded包;

方案:删除project libraries,重新maven import,再次deployment +;

2.maven导入依赖失败;

方案:检查idea setting - build -tools - compiler - maven 本地仓库配置。(可通过libraries页面查看导入失败的jar包的路径发现本地仓库路径错误的问题)

3. module缺少JDK指定;

方案:project setting - jdk set to project;

原文地址:https://www.cnblogs.com/leotsai/p/maven-idea-start-config-fixes.html