(1)File→Project Structure...→Artifacts→+→jar→From modules with .... → 选择一个要执行的main方法
(2)extract to jar
(3)选择manifest的位置:d:\idea\myproject\src
(4)勾选build on make
(5)build -- make project, (如不行,在此之前,执行下mvn clean)
(6)D:\idea\myproject\out\artifacts\ 寻找jar
(2)extract to jar
(3)选择manifest的位置:d:\idea\myproject\src
(4)勾选build on make
(5)build -- make project, (如不行,在此之前,执行下mvn clean)
(6)D:\idea\myproject\out\artifacts\ 寻找jar