title: how to force maven to update local repo
body: <p>I compiled a jar file in one project so it can be consumed in the 2nd one. I can see the jar file in .m2 folder. But in the 2nd project it complains about artifact not found. 
  I guess I have to force maven to update indices/cache something but don't know what exactly. Any tip, thanks. </p>
  
  <p>Update: thanks for all good suggestions. 
  Turns out that the maven plugin (of IntelliJ) in the second project doesn't update its index. I use command line it compiled ok. </p>