在pom.xml中加入如下配置,在mainClass里写程序的入口方法
org.apache.maven.plugins
maven-jar-plugin
true
false
lib/
com.xzd.Main
org.apache.maven.plugins
maven-dependency-plugin
copy
package
copy-dependencies
${project.build.directory}/lib
在pom.xml中加入如下配置,在mainClass里写程序的入口方法
org.apache.maven.plugins
maven-jar-plugin
true
false
lib/
com.xzd.Main
org.apache.maven.plugins
maven-dependency-plugin
copy
package
copy-dependencies
${project.build.directory}/lib