当我们使用 Maven 原型创建一个新的 repo 时,我们可以排除核心组件吗?

Can we exclude core components when we use the Maven archetype to create a new repo?

我们在 6.4.2 中有 AEM 环境,我们想要包含新的存储库(在多租户环境中添加新网站)。为此,我使用 maven archetype 20 创建一个新的 repo。我们已经在 AEM 实例中提供了核心组件 (2.5.0),因此我想从新创建的存储库中排除依赖项。 有什么办法可以从最新的原型中排除核心组件的创建吗?

根据我在 AEM Project Archetype pom 文件中看到的内容 https://github.com/adobe/aem-project-archetype/blob/master/src/main/archetype/all/pom.xml#L73 AEM 核心组件将设置为嵌入式,除非您将 AEM 版本指定为 "cloud"

创建项目后从构建中排除包非常简单,只需从项目的 pom 文件中删除嵌入的标记并调整 <core.wcm.components.version> 属性 以依赖 2.5.0