【问题标题】:How to use Netbeans to to export maven project as runnable jar?如何使用 Netbeans 将 maven 项目导出为可运行的 jar?
【发布时间】:2024-03-08 20:15:01
【问题描述】:

我已经使用 Netbeans 将我的项目使用 ant 打包为可运行的 jar,但是对于我的新项目,它使用的是 maven,在 Netbeans 中我找不到将项目设置为可运行 jar 的设置,该怎么做?

【问题讨论】:

    标签: maven netbeans jar runnable


    【解决方案1】:

    使用程序集或 shade maven 插件来配置创建一个 uber-jar。 http://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html

    【讨论】: