使用maven打包可执行jar

添加如下配置

【使用maven打包可执行jar】org.apache.maven.plugins maven-compiler-plugin 1.8 1.8 org.apache.maven.plugins maven-dependency-plugin copypackage copy-dependencies ${project.build.directory}/lib org.apache.maven.plugins maven-resources-plugin UTF-8 org.apache.maven.plugins maven-jar-plugin true lib/ com.xxx.主类名

    推荐阅读