0

After upgrading from 5.2 to 5.4 it seems the 'addContainerExtension(..) method has been completely dropped since 5.3.

We relied on this method for injecting our own custom rules. The method does not seem to have been marked deprecated - its purely missing from the API

Our usage of this method is

for (ProjectDefinition pd : context.projectReactor().getProjects()) {
            pd.addContainerExtension(ruleSet);
            pd.addContainerExtension(testExecutionService);
            pd.addContainerExtension(resultProvider);
}

Any suggestions / help appreicated ?

4

1 回答 1

1

此 API 用于将扫描仪中的一些组件注入每个模块 pico 容器(主要是 MavenProject)。我们已经放弃了这个危险的功能。

但是你不需要用它来贡献你自己的规则。只需在插件类的 getExtensions() 方法中传递您的扩展。

于 2016-07-04T16:25:53.830 回答