org.apache.maven.pluginsmaven-jar-plugintruelib/org.apache.maven.pluginsmaven-dependency-plugincopyinstallcopy-dependencies${project.build.directory}/lib使用插件中的mainClass需要怎么写?
2 回答
幕布斯7119047
TA贡献1794条经验 获得超8个赞
参考下我的gist:mavenonejar打包利用maven-jar-plugin和maven-dependency-plugin打包可执行jar,实现fatjar的onejar打包功能;另结合maven-antrun-plugin处理外部资源org.apache.maven.plugins maven-jar-plugin 2.4 true lib/ com.lt.uadb.distributor.main.DistributorMain org.apache.maven.plugins maven-dependency-plugin 2.5.1 copy-dependencies package copy-dependencies ${output.dir}/lib compile org.apache.maven.plugins maven-antrun-plugin 1.7 package run
添加回答
举报
0/150
提交
取消