I'm just following the tutorial here:
and I launched the command :
mvn -PautoInstallSinglePackage clean install
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for aem-guides-wknd 0.0.1-SNAPSHOT:
[INFO]
[INFO] aem-guides-wknd .................................... SUCCESS [ 0.253 s]
[INFO] WKND Sites Project - Core .......................... SUCCESS [ 4.976 s]
[INFO] WKND Sites Project - UI Frontend ................... SUCCESS [ 8.875 s]
[INFO] WKND Sites Project - Repository Structure Package .. SUCCESS [ 0.457 s]
[INFO] WKND Sites Project - UI apps ....................... SUCCESS [ 2.534 s]
[INFO] WKND Sites Project - UI content .................... SUCCESS [ 1.331 s]
[INFO] WKND Sites Project - All ........................... FAILURE [ 0.318 s]
[INFO] WKND Sites Project - Integration Tests Bundles ..... SKIPPED
[INFO] WKND Sites Project - Integration Tests Launcher .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.663 s
[INFO] Finished at: 2020-09-01T14:12:39+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (install-package) on project aem-guides-wknd.all: Connection refused -> [Help 1]
I received the error:
Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (install-package) on project aem-guides-wknd.all: Connection refused -> [Help 1]
How it's possible to follow a tutorial and receive an error?
Solved! Go to Solution.
Hello @danilo-delfio ,
The error indicates that the AEM instance is not accessible for package installation.
Please ensure you have an instance of AEM running locally on port 4502 and you have the corresponding port specified in pom.xml:
<aem.port>4502</aem.port>
Regards
Hello @danilo-delfio ,
The error indicates that the AEM instance is not accessible for package installation.
Please ensure you have an instance of AEM running locally on port 4502 and you have the corresponding port specified in pom.xml:
<aem.port>4502</aem.port>
Regards
Thank you @danilo-delfio my issue got resolved with ur suggestion.
Hey @danilo-delfio,
I have come across these types issues when I play around with port numbers and while build, i'm unable to clean the project. Please clean your project(mvn clean), delete the 'target' folders in your working directory and check the port number in your parent pom/xml. The port number should be the same in your pom.xml and localhost:4502. I believe this would resolve your issue.
Thanks, Bilal.
There might be many reasons for this behavior. Some of them might be:
Regards,
Arpit Varshney
@danilo-delfio Agree with all the above replies, the issue "Connection Refused" clearly points out that Maven was not able to establish connection to the AEM instance. Do check the port number mentioned in the main pom.xml file under
<properties>
<aem.host>localhost</aem.host>
<aem.port>4502</aem.port>
<aem.publish.host>localhost</aem.publish.host>
<aem.publish.port>4503</aem.publish.port>
.......
</properties>
Thanks
Veena