maven project labeled jar and run

1.IDEA open maven project, find a parent pom modification

<packaging>jar</packaging> 为jar

2.

If the build success shows a success.

Enter the path to find the jar in the console, locate the jar file

3.cmd input java -jar (drag the mouse to the jar cmd window) the transport path jar + 

Without being given access controller on it

Published 168 original articles · won praise 16 · views 90000 +

Guess you like

Origin blog.csdn.net/ajax_yan/article/details/104516890