mvn deploy fails with "installation on http://localhost:4502 ... failed" reason : connection refused | Community
Skip to main content
sreenu539
Level 7
March 23, 2018

mvn deploy fails with "installation on http://localhost:4502 ... failed" reason : connection refused

  • March 23, 2018
  • 1 reply
  • 4616 views

I am trying to have a common bundle deployed to internal central repository.

when I do mvn deploy on aem project it is giving me following error, any ideas?

mvn deploy fails with "installation on http://localhost:4502 ... failed" reason : connection refused

I was under the impression that , mvn deploy do not trigger "install to aem server" but it seems mvn deploy trying to install onto localhost, which does not exist in this case, all i need is to do build and deploy the artifacts to central repository.

Thanks,

Sri

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

1 reply

Rima_Mittal
Level 4
March 23, 2018

mvn clean install will only build the projecy

used with a profile like -PautoInstallPackage or -PautoInstallPackagePublish will deploy it.

Is this what you are looking for?

smacdonald2008
Level 10
March 23, 2018

@@Rima Mittal - ​

Great answer - we marked this correct. If you do not have AEM running, then you can build your project by using this command mvn clean install. If you try and use this command - mvn -PautoInstallPublsh Install and you do not have AEM running - then you will get that error.

sreenu539
sreenu539Author
Level 7
March 24, 2018

Let me rephrase my question.

What i want to do is mvn deploy and that should build, deploy artifacts to central nexus repository.

I do not want to trigger install or install with profiles.

This is a foundation project like acs commons used across all other projects as a dependency.