title: "MojoExecutionException: Unable to execute mojo" while running atlas-cli pi command
body: <p>I try to compile my custom jira plugin by running atlas-cli pi command. 
  It worked when I used repository <a href="http://repo1.maven.org/maven2/" rel="nofollow">http://repo1.maven.org/maven2/</a>. Now it changed to <a href="http://search.maven.org/#browse%7C-1081192444" rel="nofollow">http://search.maven.org/#browse%7C-1081192444</a></p>
  
  <p>This is the text of error: </p>
  
  <pre><code>[ERROR] Unable to complete running command: pi
  java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unab
  le to execute mojo
          at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalComma
  nd.java:112)
          at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalComma
  nd.java:107)
          at org.twdata.maven.cli.CliShell.interpretCommand(CliShell.java:48)
          at org.twdata.maven.cli.CliShell.run(CliShell.java:29)
          at org.twdata.maven.cli.AbstractCliMojo.displayShell(AbstractCliMojo.jav
  a:170)
          at org.twdata.maven.cli.AbstractCliMojo.access$000(AbstractCliMojo.java:
  22)
  Caused by: com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectExc
  eption: Connection refused: connect
          at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle
  (URLConnectionClientHandler.java:126)
          at com.atlassian.maven.plugins.pdk.InstallPluginMojo$BasicAuthFilter.han
  dle(InstallPluginMojo.java:425)
          at com.sun.jersey.api.client.Client.handle(Client.java:365)
  </code></pre>
  
  <p>My version:</p>
  
  <pre><code>ATLAS Version:    4.2.20
  ATLAS Home:       C:\atlassian-plugin-sdk
  ATLAS Scripts:    C:\atlassian-plugin-sdk\bin
  ATLAS Maven Home: C:\atlassian-plugin-sdk\apache-maven
  --------
  Executing: "C:\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" --version -gs C:\a
  tlassian-plugin-sdk\apache-maven/conf/settings.xml
  Apache Maven 2.1.0 (r755702; 2009-03-18 22:10:27+0300)
  Java version: 1.6.0_38
  Java home: C:\Program Files\Java\jdk1.6.0_38\jre
  Default locale: ru_RU, platform encoding: Cp1251
  OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
  </code></pre>
  
  <p>I've just found that it could be wrong version in pom.xml.
  But when I wrote another version in pom.xml I got error:</p>
  
  <pre><code>ERROR] BUILD ERROR
  [INFO] -----------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  </code></pre>
  
  <p>Please, can anyone help?</p>
  
  <p>Repository in my settings.xml:</p>
  
  <pre><code>                &lt;pluginRepository&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                      &lt;id&gt;maven-plugin-repo&lt;/id&gt;
                      &lt;url&gt;hhttp://search.maven.org/#browse%7C-1081192444&lt;/url&gt;
                  &lt;/pluginRepository&gt;
  </code></pre>
  
  <p>My pom.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.atlassian.plugins.tutorial&lt;/groupId&gt;
      &lt;artifactId&gt;xproduct-admin-ui-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;organization&gt;
          &lt;name&gt;Example Company&lt;/name&gt;
          &lt;url&gt;http://www.example.com/&lt;/url&gt;
      &lt;/organization&gt;
      &lt;name&gt;xproduct-admin-ui-plugin&lt;/name&gt;
      &lt;description&gt;This plugin has an admin UI that can be used in any Atlassian product.&lt;/description&gt;
      &lt;packaging&gt;atlassian-plugin&lt;/packaging&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;joda-time&lt;/groupId&gt;
              &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.atlassian.sal&lt;/groupId&gt;
              &lt;artifactId&gt;sal-api&lt;/artifactId&gt;
              &lt;version&gt;2.0.16&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
        &lt;artifactId&gt;jira-api&lt;/artifactId&gt;
        &lt;version&gt;6.0.8&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;dependency&gt;
        &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
        &lt;artifactId&gt;jira-core&lt;/artifactId&gt;
        &lt;version&gt;6.0.8&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
              &lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.atlassian.templaterenderer&lt;/groupId&gt;
              &lt;artifactId&gt;atlassian-template-renderer-api&lt;/artifactId&gt;
              &lt;version&gt;1.4.4-m1&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.6&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;1.8.5&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-amps-plugin&lt;/artifactId&gt;
                  &lt;version&gt;4.2.20&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;lifecycleMappingMetadata&gt;
                              &lt;pluginExecutions&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;
                                              com.atlassian.maven.plugins
                                          &lt;/groupId&gt;
                                          &lt;artifactId&gt;
                                              maven-jira-plugin
                                          &lt;/artifactId&gt;
                                          &lt;versionRange&gt;
                                              [4.2.10,)
                                          &lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;
                                                  compress-resources
                                              &lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore&gt;&lt;/ignore&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
                              &lt;/pluginExecutions&gt;
                          &lt;/lifecycleMappingMetadata&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
      &lt;properties&gt;
          &lt;refapp.version&gt;4.2.4&lt;/refapp.version&gt;
      &lt;/properties&gt;
  &lt;repositories&gt;
     &lt;repository&gt;
        &lt;id&gt;https-atlassian&lt;/id&gt;
        &lt;url&gt;https://maven.atlassian.com/repository/public/&lt;/url&gt;
     &lt;/repository&gt;
  &lt;/repositories&gt;
  &lt;/project&gt;
  </code></pre>