content
1. Open the corresponding window
1. Open the corresponding window
Usually on the far right side of the interface, as shown in the figure:
If you accidentally close it, you can use the following two methods to open the corresponding window:
Method 1: View->Tool Windows->Maven projects
Method 2: Help->Find Action(Ctrl+Shift+A), enter Maven projects
2、maven clean
Indicates to delete the target directory
If the error Process terminated is reported, check the Maven configuration path: Maven home and User settings file should correspond to the above!
3、maven package
Represents a packaged deployment project.
In the figure, we can see the path where the .jar generated after packaging is located.
In cmd, go to the corresponding folder and enter the command:
java -jar jar包名.jar
E.g:
java -jar ldd_demo-0.0.1-SNAPSHOT.jar
Type in your browser: http://localhost:8080/hello
Enter ctrl + c in the terminal to exit