下面提供了有关提交 AEM 连接器的有用信息,应结合有关实施和维护连接器的文章阅读这些信息。
Adobe Exchange 上列出了 AEM 连接器。
在以前的 AEM 解决方案中,包管理器用于在各种 AEM 实例上安装连接器。但是,对于 AEM as a Cloud Service,连接器是在 Cloud Manager 中的 CI/CD 流程中部署的。要部署连接器,需要在 maven 项目的 pom.xml 中引用连接器。
对于如何将包包含在项目中,有多种选择:
无论包的托管位置如何,都需要在 pom.xml 中将包作为依赖项引用,如供应商提供的那样。
<!-- UberJAR Dependency to be added to the project's Reactor pom.xml -->
<dependency>
<groupId>com.partnername</groupId>
<artifactId>my-artifact</artifactId>
<version>V123</version> <!-- use the latest! -->
<scope>provided</scope>
<classifier>my_classifier</classifier>
</dependency>
如果 ISV 合作伙伴在接入 Internet(例如可访问的 Cloud Manager)的 maven 存储库上托管连接器,则 ISV 应提供可放置 pom.xml 的存储库配置,以便能够在构建时(本地和通过 Cloud Manager)解析连接器依赖项(上文)。
<repository>
<id>the-repository</id>
<name>The Repository Where the Connector is Hosted</name>
<url>https://repo.partnername.com/repositories/aem_connector_repo</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
如果 ISV 合作伙伴选择将连接器作为可下载文件分发,则 ISV 应提供有关如何将文件部署到本地文件系统 maven 存储库的说明,需将该存储库作为 AEM 项目的一部分签入 Git,以便 Cloud Manager 能够解析这些依赖项。