title: Maven ignoring repository defined in pom.xml
body: <p>I have a maven project which has a repository defined in its pom.xml. However when I run <code>mvn -U clean compile</code> on the project, maven tries to fetch artifacts from <code>https://repo.maven.apache.org</code> repository called <code>Central</code>.</p>
  
  <p>I don't understand why maven is ignoring the repository defined in pom.xml</p>
  
  <p>I also ran <code>mvn help:effective-pom</code>, and that too showed just one repository, which is <code>https://repo.maven.apache.org</code>.</p>
  
  <p><strong>Some more background:</strong></p>
  
  <p>I highly suspect this is a maven setup issue or something. I say this because the project I'm trying to compile is coming from a git source which is compiling fine for others, just not me. So pom.xml is defined correctly. It was working for me too on my old laptop. I just switched to a new MacBook and pulled the project and tried compiling it, and it's not compiling on this new MacBook. Don't know why. So I think I need to configure maven on my new laptop somehow, but I don't know what exactly is needed.</p>