Maven project packaged into war package and start the war package runs

 

Package 1 project

1.1 Right-clicking on the desired packaged items, as shown in FIG click Maven cleanhere before Maven will clear out all of the information package for this project.

1.2 be finished Maven cleanafter the operation, the following message appears in the eclipse console.

1.3 Then we re-needed right-packaged items, as shown in Figure ... Click maven build

1.4 pop-up interface, the following operation of FIG.

"Goals" input box -X package, and check underneath Update Snapshotsand Skip Testsoption boxes

1.5 These results occur, then the package was successful.

 

1.6 refresh our project, we are able to project targetto find us a good package directory warpackage.

 

1.7 Open cmd: war package into the directory and run java -jar (the name of the war package), you can successfully start the project

 

 

Guess you like

Origin www.cnblogs.com/chcha1/p/11310837.html