我是AEM的新手。我使用maven创建了示例项目,并遵循以下站点作为参考。 http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/create-aem-multi-module-project/ 但是我得到下面的错误。
[INFO] --- content-package-maven-plugin:0.5.1:install (install-custom-package) @ aemtuto.ui.apps ---
[INFO] Installing aemtuto.ui.apps (D:\eclipse-new\aemtuto\ui.apps\target\aemtuto.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp
[INFO] I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
[INFO] Retrying request
[INFO] I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
[INFO] Retrying request
[INFO] I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
[INFO] Retrying request
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] aemtuto ............................................ SUCCESS [ 0.624 s]
[INFO] aemtuto - Core ..................................... SUCCESS [ 3.889 s]
[INFO] aemtuto - UI apps .................................. FAILURE [ 6.254 s]
[INFO] aemtuto - UI content ............................... SKIPPED
[INFO] aemtuto - Integration Tests Bundles ................ SKIPPED
[INFO] aemtuto - Integration Tests Launcher ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.524 s
[INFO] Finished at: 2018-07-11T18:27:30+05:30
[INFO] Final Memory: 41M/526M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.5.1:install (install-custom-package) on project aemtuto.ui.apps: Connection refused: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
答案 0 :(得分:1)
错误
连接被拒绝
当我们运行命令mvn clean install -PautoInstallPackage
并且您的实例未运行时会出现。
此外,如果您在 pom.xml 中提到了其他端口,并且AEM实例正在运行其他端口。
答案 1 :(得分:0)
该问题下的评论对我有很大帮助。您应该:
在localhost:4502上具有AEM实例设置
打开服务器
在终端上执行mvn -PautoInstallPackage install
这样做,我成功地将项目上传到服务器中!