OneJar includes Dr Tuffs classes

老子叫甜甜 提交于 2019-12-11 14:53:37

问题


I expect this is trivial, but I'm on a deadline, so I apologise if this is a stupid question.

I'm using Dr Tuffs OneJar for Maven to build a fat jar including all my dependencies etc. However, when I use jar tf xxx.one-jar.jar it lists the things I'd expect, like my normal jar, but also all of Dr Tuffs code. The below is just an excerpt from the command:

com/
com/simontuffs/
com/simontuffs/onejar/
.version
OneJar.class
com/simontuffs/onejar/Boot$1.class
com/simontuffs/onejar/Boot$2.class
com/simontuffs/onejar/Boot$3.class
com/simontuffs/onejar/Boot.class
com/simontuffs/onejar/Handler$1.class

I'm hoping there's a property I can set in my pom file to stop it doing this.


回答1:


Check this link you have to add the one-jar jar as excluded in Maven pom.xml file.



来源:https://stackoverflow.com/questions/23804379/onejar-includes-dr-tuffs-classes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!