如何从 Play 应用程序 exclude/excludeAll com.google.code.findbugs?

How to exclude/excludeAll com.google.code.findbugs from a Play application?

我有一个 play2.4.3 应用程序。 我试图在分发我的应用程序时排除 com.google.code.findbugs 库(使用 activator dist 命令)。

我没有直接包含它,这是我认为它包含在项目中的方式:

http://mvnrepository.com/artifact/com.typesafe.play/play-java_2.10/2.4.3 depends on: http://mvnrepository.com/artifact/org.reflections/reflections/0.9.9 depends on: http://mvnrepository.com/artifact/com.google.code.findbugs/annotations/2.0.1

我想使用此处提到的 sbt 排除项:http://www.scala-sbt.org/0.12.4/docs/Detailed-Topics/Library-Management.html

我遇到的问题是,当我查看 findbugs 的 pom 时,没有组织名称,所以我不确定要传递给方法的内容。

我还尝试了 exclusion 和 excludeAll 命令的多种变体,但似乎都不起作用。

尝试以下方法(非常有力的方法):

libraryDependencies := libraryDependencies.value.map(_.excludeAll(ExclusionRule("com.google.code.findbugs", "annotations")))