I have been battling this error for 2 days. I'm on AEM v6.4.4, mvn 3.6.1 and tried also tried 3.3.9. I even tried building different projects as well, one using newly created archetype (Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13 ), I'm using version 0.0.24 of the content-package-maven-plugin (even tried other versions, e.g. 0.0.51.). The -X reveals:
[DEBUG] Set parameter http.authentication.preemptive = true
[DEBUG] Proxying disabled (useProxy=true) or no proxies configured
[DEBUG] Set parameter http.connection.timeout = 5000
[DEBUG] Preemptively sending default basic credentials
[DEBUG] Authenticating with BASIC <any realm>@localhost:4502
[DEBUG] Credential charset not configured, using HTTP element charset
[DEBUG] Open connection to localhost:4502
[DEBUG] Closing the connection.
[DEBUG] Method retry handler returned false. Automatic recovery will not be attempted
[DEBUG] Releasing connection back to connection manager.
then I get:
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.24:install (install-package) on project xxxx-commons.ui.apps: The host did not accept the connection within timeout of 5000 ms: connect timed out -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.24:install (install-package) on project xxxx-commons.ui.apps: The host did not accept the connection within timeout of 5000 ms
The master pom has the target URL and userId, password set correctly
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<version>0.0.24</version>
<configuration>
<targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
<failOnError>true</failOnError>
<failOnMissingEmbed>true</failOnMissingEmbed>
<userId>${vault.user}</userId>
<password>${vault.password}</password>
</configuration>
</plugin>
and, AEM is running, and there is no proxy present. I'm on a mac. Please advise! Thanks!