Tomcat startup cannot find the corresponding startup war (war exploded)-maven project is a gray solution-the war package of the idea web project is missing

1. The maven project is gray

1.1 Situation screenshot

Insert picture description here

1.2 Solution

File -> Setting -> Search for maven -> Expand Maven -> Ignored Files -> Remove the check of the ignored file (the reason is that the file is ignored)

Insert picture description here

1.3 Successful solution

Insert picture description here

2. The Tomcat startup item has no war package corresponding to the project (war exploded)

2.1 My project directory

Insert picture description here

2.2 Tomcat Deployment deployment adds war without corresponding project

Insert picture description here

2.3 Open maven to compare two different web modules and find that the war package is missing

Insert picture description here

2.4 Solution: reload pom.xml

Insert picture description here

2.5 Problem solving

Insert picture description here

The deployment of tomcat has the war/war exploded of the corresponding project

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_40542534/article/details/108755134