title: How to add remote Maven repository in IntelliJ Idea?
body: <p>I need to add some external dependencies to my Maven project. For example I need this library: <a href="https://packages.atlassian.com/content/repositories/atlassian-public/com/atlassian/jira/jira-rest-java-client-core/5.1.0/" rel="nofollow noreferrer">https://packages.atlassian.com/content/repositories/atlassian-public/com/atlassian/jira/jira-rest-java-client-core/5.1.0/</a> I'm struggling with adding the repository in which this library is located.</p>
  
  <p>I've already tried:
  - adding <a href="https://packages.atlassian.com/content/repositories/atlassian-public" rel="nofollow noreferrer">https://packages.atlassian.com/content/repositories/atlassian-public</a> to Settings -> Build, Execution, Deployment -> Remote Jar Repositories -> Maven Jar Repositories
  - adding repository to settings.xml following this tutorial <a href="http://maven.apache.org/settings.html#Repositories" rel="nofollow noreferrer">http://maven.apache.org/settings.html#Repositories</a>, settings file here:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0                 
  http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;testname&lt;/id&gt;
          &lt;repositories&gt;
              &lt;repository&gt;
                  &lt;id&gt;atlassianReleases&lt;/id&gt;
                  &lt;name&gt;Atlassian Releases&lt;/name&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                      &lt;checksumPolicy&gt;warn&lt;/checksumPolicy&gt;
                  &lt;/releases&gt;                  
                  &lt;url&gt;https://packages.atlassian.com/content/repositories/atlassian-public&lt;/url&gt;
              &lt;/repository&gt;
          &lt;/repositories&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;activeProfiles&gt;
      &lt;activeProfile&gt;testname&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  
  &lt;/settings&gt;
  </code></pre>
  
  <ul>
  <li>updating added repository via Settings -> Build, Execution, Deployment -> Maven -> Repositories</li>
  <li>RMB on pom.xml -> Maven -> Reimport</li>
  <li>rebuilding the project</li>
  </ul>
  
  <p>Of course I have correct dependencies in my pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
      &lt;artifactId&gt;jira-rest-java-client-core&lt;/artifactId&gt;
      &lt;version&gt;5.1.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I still get error messages that used packages do not exist.</p>
  
  <p>Edit:
  I noticed that in my local repository I have com\atlassian\jira\jira-rest-java-client-core\5.1.0 folder but only with .pom file, _remote.repositories and .pom.sha1 file.</p>
  
  <p>Edit2:
  The problem was caused by my VPN settings, solved.</p>