gpt4 book ai didi

eclipse - 无法使用自动部署配置文件(cqblueprints)部署 osgi 包

转载 作者:行者123 更新时间:2023-12-04 00:37:12 24 4
gpt4 key购买 nike

我们正在使用 cqblueprints 原型(prototype)来构建我们的 cq 项目 (eclipse/cqblueprints)。但是在尝试部署 acme-corporate-services(包含 bundle 的项目)时,使用

    mvn -Pauto-deploy install

命令,我们收到以下错误。

    [INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ acme-corporate-services ---
[INFO] Installing com/acme/wcm/cq/acme-corporate-services/1.0.0-SNAPSHOT/acme-corporate-services-1.0.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] --- maven-sling-plugin:2.1.0:install (install-bundle) @ acme-corporate-services ---
[INFO] Installing Bundle com.acme.wcm.cq.acme-corporate-services(C:\acme_CORP_REFACTOR\acme-corporate\acme-corporate-services\target\acme-corporate-services-1.0.0-SNAPSHOT.jar) to http://localhost:4502/apps/acme-corporate/install via PUT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.831 s
[INFO] Finished at: 2014-04-20T07:35:35-08:00
[INFO] Final Memory: 11M/42M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.1.0:install (install-bundle) on project acme-corporate-services: Installation on http://localhost:4502/apps/acme-corporate/install failed, cause: Installation failed, cause: Conflict -> [Help 1]

请帮助我们找到此错误的根本原因。

最佳答案

如果安装目录在存储库中丢失,则可能会出现上述错误。

在你的例子中,maven 正试图在 /apps/acme-corporate/install 上。如果上述路径不存在,那么您可能会收到冲突错误。

检查 repo 中是否存在所需的目录,如果不存在,请尝试创建一个。

关于eclipse - 无法使用自动部署配置文件(cqblueprints)部署 osgi 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23183751/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com