Jarsplice - 将 apache 库与我的 jar 结合起来

Jarsplice - Combine apache libraries with my jar

我用像 apache 这样的第三方库制作了一个程序,我试图将它们全部放在一个可运行的 .jar 文件中。我搜索了很多,我发现了一个名为“JarSplice - The Fat Jar Creator”的程序,但是当我去创建最终的 jar 时,我得到了错误:

Jar creation failed due to the following exception:
duplicate entry: org/apache/xmlbeans/xml/stream/Location.class

我的第 3 方库是:

poi-3.14-20160307.jar
poi-examples-3.14-20160307.jar
poi-excelant-3.14-20160307.jar
poi-ooxml-3.14-20160307.jar
poi-ooxml-schemas-3.14-20160307.jar
poi-scratchpad-3.14-20160307.jar
xmlbeans-2.6.0.jar

我没有看到任何重复项:/ 那么我做错了什么?有什么办法可以消除这个错误吗?任何帮助将不胜感激!

这最终对我有用。 (对于 netbeans 用户)How to Build a Fat JAR using NetBeans IDE