所以,他就是这样:我浏览并阅读了很多关于 Maven 的内容。有点困惑,但它的使用似乎过于复杂,对于 Eclipse 自己完成的任务来说应该没有问题:How do I generated anexecutive .jar file that has A LOT of external .jar dependency without pouring to Maven or Ant ?
如果无法使用 Eclipse 完成,甚至可以使用一些基于命令行的方法。
最佳答案
这正是你想要的:
http://one-jar.sourceforge.net/
它支持 Ant、Maven 和命令行使用。
快速入门: http://one-jar.sourceforge.net/index.php?page=getting-started&file=quickstart
关于java - 在 Eclipse 中生成具有依赖项(外部 jar)的可执行 .jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6021800/