title: AEM Maven Failed to execute which is to install com.day.jcr.vault:content-package-maven-plugin
body: <p>I am doing a tutorial in AEM the wknd one. I cloned from github. After running <code>mvn clean install -PautoInstallPackagePublish</code> for publish instance, I get below error. I followed the suggestion in HELP but it didnt fix the problem.</p>
  
  <pre>[<b>ERROR</b>] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install <b>(default-cli)</b> on project aem-guides-wknd.ui.apps: <b>Connection refused (Connection refused)</b> -&gt; <b>[Help 1]</b>
  <b>org.apache.maven.lifecycle.LifecycleExecutionException</b>: <b>Failed to execute goal </b><b>com.day.jcr.vault:content-package-maven-plugin:1.0.2:install</b> <b>(default-cli)</b> on project aem-guides-wknd.ui.apps: <b>Connection refused (Connection refused)</b>
      <b>at</b> org.apache.maven.lifecycle.internal.MojoExecutor.execute (<b>MojoExecutor.java:215</b>)
      <b>at</b> org.apache.maven.lifecycle.internal.MojoExecutor.execute (<b>MojoExecutor.java:156</b>)
      <b>at</b> org.apache.maven.lifecycle.internal.MojoExecutor.execute (<b>MojoExecutor.java:148</b>)
      <b>at</b> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (<b>LifecycleModuleBuilder.java:117</b>)
      <b>at</b> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (<b>LifecycleModuleBuilder.java:81</b>)
      <b>at</b> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (<b>SingleThreadedBuilder.java:56</b>)
      <b>at</b> org.apache.maven.lifecycle.internal.LifecycleStarter.execute (<b>LifecycleStarter.java:128</b>)
      <b>at</b> org.apache.maven.DefaultMaven.doExecute (<b>DefaultMaven.java:305</b>)
      <b>at</b> org.apache.maven.DefaultMaven.doExecute (<b>DefaultMaven.java:192</b>)
      <b>at</b> org.apache.maven.DefaultMaven.execute (<b>DefaultMaven.java:105</b>)
      <b>at</b> org.apache.maven.cli.MavenCli.execute (<b>MavenCli.java:956</b>)
      <b>at</b> org.apache.maven.cli.MavenCli.doMain (<b>MavenCli.java:288</b>)
      <b>at</b> org.apache.maven.cli.MavenCli.main (<b>MavenCli.java:192</b>)
      <b>at</b> jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (<b>Native Method</b>)
      <b>at</b> jdk.internal.reflect.NativeMethodAccessorImpl.invoke (<b>NativeMethodAccessorImpl.java:62</b>)
      <b>at</b> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (<b>DelegatingMethodAccessorImpl.java:43</b>)
      <b>at</b> java.lang.reflect.Method.invoke (<b>Method.java:566</b>)
      <b>at</b> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (<b>Launcher.java:289</b>)
      <b>at</b> org.codehaus.plexus.classworlds.launcher.Launcher.launch (<b>Launcher.java:229</b>)
      <b>at</b> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (<b>Launcher.java:415</b>)
      <b>at</b> org.codehaus.plexus.classworlds.launcher.Launcher.main (<b>Launcher.java:356</b>)
  <b>Caused by</b>: org.apache.maven.plugin.MojoExecutionException: <b>Connection refused (Connection refused)</b>
  </pre>
  
  <p>UPDATE: </p>
  
  <p>Maven and Java versions:</p>
  
  <p><a href="https://i.stack.imgur.com/hQdOc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hQdOc.png" alt="enter image description here"></a></p>