title: Maven 2, Nexus and snapshot timestamps are causing problems with eclipse:eclipse
body: <p>We have moved from Archiva to Nexus and are still using Maven 2.</p>
  
  <p>We execute eclipse:eclipse locally so that Eclipse .project and .classpath files are generated, based on the dependencies in the POMs, and then we import the projects into Eclipse to do our development.  We don't use M2Eclipse for a variety of reasons.</p>
  
  <p>Since using Nexus, we have the problem that projects don't always reference each other in the workspace, rather they reference the respective JAR.</p>
  
  <p>I have noticed that Nexus is appending a timestamp to the JAR name, and the MVN output states, e.g.:</p>
  
  <pre><code>[INFO] Artifact myapp-bom:jar:7.3.0.2.1-SNAPSHOT already available as a workspace project, but with different version. Expected: 7.3.0.2.1-20120508.115037-68, found: 7.3.0.2.1-SNAPSHOT
  </code></pre>
  
  <p>I get the feeling that is the reason why eclipse:eclipse generates .classpath files which contains <em>JAR references</em> (based on local maven repo) rather than <em>project references</em>.  When we used Archiva (and there were no timestamps) then we used to get <em>project references</em>, and that is exactly what we want.</p>
  
  <p>Has anyone else had this problem and how is it solved?  I read that maven 3 forces timestamps to always be generated.  Again, how do you get eclipse:eclipse to generate sensible .classpath files?</p>
  
  <p>Cheers,
  Ant</p>
  
  <p>PS - some of our projects come from different SVN repositories.  It seems that if the Eclipse Projects are refernced in the parent pom, eclipse:eclipse creates a project reference, but if the Eclipse Projects are from a different parent pom, but still in the workspace, then it can only generate JAR references.</p>