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

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

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

另外,web-main入口模块的pom需要配置 

<packaging>war</packaging>

 配置之后再次执行maven import,然后进入配置Tomcat就会出现自动创建war-explorded包;

 

2.maven导入依赖失败;

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

 

3. module缺少JDK指定;

方案:project setting - jdk set to project;

posted @ 2018-07-02 11:13  Leo C.W  Views(8530)  Comments(0Edit  收藏  举报