title: Could not connect to https://repo.maven.apache.org/maven2?
body: <p>I have created a new Springboot application. I am getting an error in POM.xml which is,</p>
  
  <p>Project build error: Non-resolvable parent POM for </p>
  
  <pre><code>org.springframework.boot:spring-boot-sample-activemq:[unknown-version]: Could not transfer artifact org.springframework.boot:spring-boot-samples:pom:${revision} from/to central (https://repo.maven.apache.org/maven2): PROXY and 'parent.relativePath' points at wrong local POM
  </code></pre>
  
  <p>I have tried updating and cleaning the project. But did not work.
  Tried deleting the contents in m2/repositry folder but did not work.</p>
  
  <p>My Settings.xml looks like this,</p>
  
  <pre><code>&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;proxies&gt;
      &lt;proxy&gt;
        &lt;active&gt;true&lt;/active&gt;
        &lt;protocol&gt;http&lt;/protocol&gt;
        &lt;host&gt;PROXY&lt;/host&gt;
        &lt;port&gt;3120&lt;/port&gt;
        &lt;nonProxyHosts&gt;maven&lt;/nonProxyHosts&gt;
      &lt;/proxy&gt;
    &lt;/proxies&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>and also i am trying to connect the url through telnet in cmd. but it say
  Connecting To repo.maven.apache.org...Could not open connection to the host, on port 3120: Connect failed</p>
  
  <p>My POM.xml Looks like this,</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/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;!-- Your own application should inherit from spring-boot-starter-parent --&gt;
          &lt;artifactId&gt;spring-boot-samples&lt;/artifactId&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;version&gt;${revision}&lt;/version&gt;
      &lt;/parent&gt;
      &lt;artifactId&gt;spring-boot-sample-activemq&lt;/artifactId&gt;
      &lt;name&gt;Spring Boot ActiveMQ Sample&lt;/name&gt;
      &lt;description&gt;Spring Boot ActiveMQ Sample&lt;/description&gt;
      &lt;properties&gt;
          &lt;main.basedir&gt;${basedir}/../..&lt;/main.basedir&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;!-- Compile --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-activemq&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- Test --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I am working in office environment ..could it be because of firewall issue.. please help ?? </p>