"already part of the container?" 的 sbt 汇编文档是什么意思

What does the sbt assembly documentation mean by "already part of the container?"

我 运行 在试图打包我的多项目 spark 作业的 sbt assembly 中遇到重复数据删除错误。我查看了 sbt 程序集文档,它说

If you're trying to exclude JAR files that are already part of the container (like Spark), consider scoping the dependent library to "provided" configuration:

但是"already part of the container?"是什么意思我已经复制了下面的完整link。

https://github.com/sbt/sbt-assembly#excluding-jars-and-files

这意味着特定的目标节点(容器 像 Spark)已经有所有需要的 jar 并且不需要在程序集中包含相同的 jar。

这是provided范围的意思,即在运行环境中提供了一个特定的库,因此不要将它包含在最终的jar中,只需make对其的引用。