title: Maven, dependencies between projects
body: <p>I hace rather silly problem. I've tried to google and read other stackoverflow questions and unfortunately failed to get the idea.
  Here is a structure of my projects:</p>
  
  <pre><code>-MapreduceProject (mapreduce jobs)
  -UtilsProject (common stuff, usual project util garbage)
  -WebAppProject (servlets, jsp for Tomcat)
  </code></pre>
  
  <p><strong>MapreduceProject</strong> and <strong>WebAppProject</strong> both use <strong>UtilsProject</strong> 
  What is the best way to specify it? I don't want to use aggregate. I prefer to see UtilsProject as separate jar.</p>
  
  <p>I've added UtilsProject to Mapreduce and WebApp project as dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;my.super.mr&lt;/groupId&gt;
      &lt;artifactId&gt;UtilsProject&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>It looks like rather silly and it doesn't work
  I did run <strong>mvn install</strong> for <em>UtilsProject</em>. I did check that it's jar is <em>really in my local repo</em>.
  But I can't compile other projects. I get an error:</p>
  
  <p>Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project my.super.mr:WebAppProject:war
  :1.0-SNAPSHOT: Failure to find my.super.mr:UtilsProject:jar:1.0-SNAPSHOT in <a href="http://download.java.net/maven/2" rel="nofollow">http://download.java.net/maven/2</a> was cached in the local reposit
  ory, resolution will not be reattempted until the update interval of java.net2 has elapsed or updates are forced</p>
  
  <p>Please help me to understand how to resolve it.</p>