The first: use the pom.xml file to package.
Right-click the pom.xml file and select Debug as or Run as. But you need to choose Maven install to package
After the execution is successful, the log will print out the location (see whether the log output is configured by yourself). If there is no output, in the default C drive .m2 folder
The second way: right-click the item. Select Debug as or Run as. But this time to choose Debug configurations
First Browse Workspace to select the project to be packaged, and then enter the clean install command in Goals: After Debug is executed, the war package will be generated in the target directory