1、第一步 打开idea 打开maven 2、第二步 dependency:copy-dependencies -DoutputDirectory=lib 3、第三步 运行 4、第四步 所有的jar包就会被打包在lib目录下