title: Maven dependancies not installing Connection refused to host: 127.0.0.1 Mac
body: <p>I'm new to Java and cucumber framework. I'm in the process of creating my own cucumber framework using Maven but when I'm putting my dependancies in my POM.XML it's unable to find it. The error says dependancy not found.</p>
  <p>I've tried to download Maven sources and get the error below. Not sure if the two are related but I assume so?. I'm a Mac user any help would be appreciated</p>
  <p>Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:</p>
  <p>I've tried a few things below but had no luck</p>
  <ul>
  <li><p>Checking sudo nano /etc/apache2/httpd.conf file</p>
  </li>
  <li><p>apachectl configtest</p>
    
  <p>
  4.0.0</p>
  <pre><code>  &lt;groupId&gt;org.example&lt;/groupId&gt;
    &lt;artifactId&gt;CucumberTemplate&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
    &lt;properties&gt;
        &lt;maven.compiler.source&gt;15&lt;/maven.compiler.source&gt;
        &lt;maven.compiler.target&gt;15&lt;/maven.compiler.target&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
        &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-core --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-core&lt;/artifactId&gt;
            &lt;version&gt;6.10.2&lt;/version&gt;
        &lt;/dependency&gt;
  
        &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-html --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-html&lt;/artifactId&gt;
            &lt;version&gt;0.2.7&lt;/version&gt;
        &lt;/dependency&gt;
  
        &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
            &lt;version&gt;6.10.2&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
            &lt;version&gt;6.10.2&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-jvm-deps --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-jvm-deps&lt;/artifactId&gt;
            &lt;version&gt;1.0.6&lt;/version&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;net.masterthought&lt;/groupId&gt;
            &lt;artifactId&gt;cucumber-reporting&lt;/artifactId&gt;
            &lt;version&gt;5.5.2&lt;/version&gt;
        &lt;/dependency&gt;
  
        &lt;!-- https://mvnrepository.com/artifact/io.cucumber/gherkin --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.cucumber&lt;/groupId&gt;
            &lt;artifactId&gt;gherkin&lt;/artifactId&gt;
            &lt;version&gt;17.0.2&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
            &lt;artifactId&gt;hamcrest-core&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
            &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
            &lt;version&gt;3.141.59&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;4.13.2&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
  
  
    &lt;/dependencies&gt;
  </code></pre>
    
  </li>
  </ul>