title: Maven project defined repository not works
body: <p><strong>RESOLVED</strong>
  P.S.Because I don't have enough reputation to answer my own question right now so I put the solution in the question.</p>
  
  <p>I just start using Maven with my android project. I use a game engine called libgdx, it's not in the central repo, so I have to install it by myself.</p>
  
  <p>After check the instruction, I use this method.<a href="https://stackoverflow.com/q/2230464/531223">https://stackoverflow.com/q/2230464/531223</a>.
  I add below defined xml code in root pom.xml</p>
  
  <pre><code>&lt;repositories&gt;
  &lt;repository&gt;
    &lt;id&gt;my-local-repo&lt;/id&gt;
    &lt;url&gt;file://${basedir}/common/repo&lt;/url&gt;
  &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>And install the jar files I needed successfully with the method in that answer. However, when I execute command <code>mvn install</code> or <code>mvn -o install</code>, it still tell me can't find the jar file. I'm not sure the repository I added in root pom.xml is working.<br />
  Can anyone tell me where I made the mistake and how to check whether the project defined repository is working? Thank you.</p>
  
  <p>Thank you Death, I figured it out, it's my silly fault.</p>
  
  <p>In my project, I have 3 module. common android and desktop. I use common/repo dir as my repository. That's why I start use Maven. I did everything is correct except 2 mistake.</p>
  
  <p>1.Put the repository code in root pom.xml not in pom.xml in the android dir which I . I just thought it will works but it isn't.</p>
  
  <p>2.If I put the code in the right dir, I should modify the url, the basedir is changed.</p>
  
  <p>This lesson cost me 3 hours~</p>