Expand my Community achievements bar.

SOLVED

Maven build failure: Socket write error

Avatar

Level 4

Hi All,

I am getting below error when trying to deploy.(mvn clean install -PautoInstallBundle)

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  17.688 s

[INFO] Finished at: 2019-07-06T11:03:18+05:30

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.2.0:install (install-bundle) on project jacobdelafon.core: Installation on http://localhost:4502/system/console/apps/kohler/jacobdelafon/install/ failed, cause: Software caused connection abort: socket write error -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.sling:maven-sling-plugin:2.2.0:install (install-bundle) on project jacobdelafon.core: Installation on http://localhost:4502/system/console/apps/kohler/jacobdelafon/install/ failed, cause: Software caused connection abort: socket write error

Can Someone tell what could the issue be??

smacdonald2008Arun PatidarJoerg Hoh​@

1 Accepted Solution

Avatar

Correct answer by
Level 4

Ive got the soultion for this
in pom.xml i replaced below lines

<slingUrl>http://${aem.host}:${aem.port}/system/console</slingUrl>

<deploymentMethod>WebConsole</deploymentMethod>

with below

<slingUrl>http://${aem.host}:${aem.port}/crx/repository/crx.default</slingUrl>

<deploymentMethod>WebDAV</deploymentMethod>

Not sure how this worked. Let me know technical reason behind this

View solution in original post

5 Replies

Avatar

Employee Advisor

Hi,

Can you check you have 'install' folder in /apps/kohler/jacobdelafon/ path. If not, please go to crxde and create one and try again.

The path you mentioned seems a wrong one too - It should be just http://localhost:4502/apps/kohler/jacobdelafon/install/

Did you create the project using maven archetype ?

Avatar

Level 3

The path is seems incorrect,  you need check the pom.xml file for the server settings. you can find the details [1]

if you are trying to deploy directly provided .jar file , in system console. you need to treat it as simple package and put in maven project and follow standard installation approach.

[1] How to Build AEM Projects using Apache Maven

Avatar

Correct answer by
Level 4

Ive got the soultion for this
in pom.xml i replaced below lines

<slingUrl>http://${aem.host}:${aem.port}/system/console</slingUrl>

<deploymentMethod>WebConsole</deploymentMethod>

with below

<slingUrl>http://${aem.host}:${aem.port}/crx/repository/crx.default</slingUrl>

<deploymentMethod>WebDAV</deploymentMethod>

Not sure how this worked. Let me know technical reason behind this

Avatar

Employee Advisor

Have you tried it again? Have you re-started your AEM instance?

Avatar

Level 4

Nope. I made above changes in pom and it worked.