If the idea maven project is to be compiled into a war package normally, what needs to be done

 

 

 

 

And right-click the project - Build (packaged into war for the first time) (the first Build)

- ReBuild (not packaged into war for the first time) (not the first build)

 

 

Do it one or several times in order, and you can successfully compile it into a war package

 

 

maven packaging method:

First go to the project root directory, then open cmd here, and then mvn package It can be packaged into war, and the packaged war file is in the target directory of the root directory

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325250434&siteId=291194637