Uberjar通过日食?

Uberjar通过日食?

问题描述:

我已经研究了一段时间,但我不得不问:现在是不是可以通过Eclipse完成?我找到了关于Maven和Ant的答案,但我从未使用过。如果我的输出.jar文件是一个可运行的jar,它可以通过eclipse完成,但它是一个使用外部jar的库。

I've been researching this for a while but I have to ask: isn't it accomplishable through Eclipse by now? I've found answers regarding Maven and Ant, but I've never used either. Should my output .jar file be a runnable jar it could be done through eclipse, but it's a library that uses external jars.

所以,有什么我错过了或它对我来说是Maven / Ant的路径吗?

So, is there something I missed or it is the Maven/Ant path for me?

编辑:关于Jarrod的答案,我在这里的时间紧迫,无法在这项任务上花费太多时间(感谢小费,'tho!)

regarding Jarrod answer, I'm on a tight schedule here and can't afford spare much time on this task (thanks for the tip, 'tho!)

花点时间学习Maven( maven-shade-plugin ),它将在黑桃中支付红利!

Take the time to learn Maven ( maven-shade-plugin ), it will pay dividends in spades!

那就是说,我也使用Ant完成了这项工作。,这是一个手动密集的解决方案。

That said, I have done this using Ant as well., and it is a much more manually intensive solution.

我现在只使用Maven 3,并且永远不会再回到vanilla,再次使用Ant手动完成。

I use Maven 3 exclusively now and would never go back to vanilla do it all manually with Ant again.

Mavenize项目所花费的时间在项目的生命周期和其他人的维护期间反复得到回报。

The time it takes to Mavenize a project pays off over and over and over during the lifecycle of the project and its maintanence by other people.

时间表越紧密,构建和发布自动化就越有价值,而且你犯的错误越少意味着重做多步骤流程的时间越来越少,这些流程既繁琐又容易出错。

The tighter the schedules the more valuable build and release automation becomes, and the less mistakes you make means less time re-doing multi-step processes that are tedious and error prone.