maven clean install command failure | Community
Skip to main content
March 22, 2017

maven clean install command failure

  • March 22, 2017
  • 1 reply
  • 5290 views

in aem 6.1

I am facing an issue while doing mvn clean install and using vlt up command. Error message is as follows:

Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:install (create-package) on project qbinproduct: The host did not accept the connection within timeout of 5000 ms: connect timed out -> [Help 1]

Sometimes, connection refused. I have checked my firewall setting and it is not blocking the port 4502.

one more observation is that, This issue is intermittent but most of the time it is giving above mentioned error, sometimes after restart or shutdown the mac, It starts working.

Can you please help me to debug this issue, because it is really giving me issue

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Feike_Visser1
Adobe Employee
Adobe Employee
March 22, 2017

First can you update to version: 0.0.24?

Looking at the error-message there seem to be a connection issue.

can you run maven with the -X option?

June 18, 2019

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!

joerghoh
Adobe Employee
Adobe Employee
June 18, 2019

The problem is that AEM does not accept the request. But at least the TCP port is open which means that something (probably AEM ) is listening on that port.

Can you check if AEM is logging something in the logs?