OneJar 包括 Dr Tuffs 课程 [英] OneJar includes Dr Tuffs classes
问题描述
我认为这是微不足道的,但我在截止日期前,所以如果这是一个愚蠢的问题,我深表歉意.
I expect this is trivial, but I'm on a deadline, so I apologise if this is a stupid question.
我正在使用 Dr Tuffs OneJar for Maven 构建一个包含我所有依赖项等的胖 jar.但是,当我使用 jar tf xxx.one-jar.jar
时,它列出了我的内容d 期望,就像我的普通 jar 一样,但也是所有 Dr Tuffs 代码.以下只是命令的摘录:
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
我希望可以在我的 pom 文件中设置一个属性来阻止它这样做.
I'm hoping there's a property I can set in my pom file to stop it doing this.
推荐答案
检查这个 link 您必须添加 Maven pom.xml 文件中排除的单 jar jar.
Check this link you have to add the one-jar jar as excluded in Maven pom.xml file.
这篇关于OneJar 包括 Dr Tuffs 课程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!