根据 apache 文档中的这一行,maven 扩展会有什么变化?

What'll change about maven extensions according to this line in apache doc?

我在 Maven 的文档中找到了这条注释:

You can add elements to this classloader by extensions. These are loaded into the same place as ${maven.home}/lib and hence are available to the Maven core and all plugins for the current project and subsequent projects (in future, we plan to remove it from subsequent projects).

我不明白这里的 "subsequent projects" 是什么意思。据我了解,扩展是对 Maven 生命周期阶段的增强,而不是特定于项目的。因此,为所有 Maven 项目工作是有意义的。

问题: 谁能解释一下这句话的意思"in future, we plan to remove it from subsequent projects"

首先 extensions can be extensions of a life cycle but not need to. You can implement an extensions also as an EventSpy for example.

documentation 与此类扩展中可用的核心类加载器相关,并且还可以通过扩展对其进行增强。该类加载器包含来自 ${maven.home}/lib 的那些文件,这不是一个好主意,也不是必需的。最好只有 Maven 插件 API 并且它是当前使用的实例而不是更多...

现有一些扩展,如 Wagon,用于在特殊情况下进行运输,这可能是项目特定的。

Maven 3.3.1 开始,核心扩展机制得到了改进,使加载项目特定扩展更加简单,这意味着它们位于 ${maven.projectBasedir}/.mvn/extensions.xml 文件中,也可以从存储库加载。在 3.3.1 之前,您需要通过 mvn -Dmaven.ext.class.path=extension.jar.

手动执行此操作