title: Eclipse + Maven - Missing JAR in WAR export
body: <p>The project (a standard WAR with Spring) builds and packages fine from the command line via <code>mvn package</code>. I have also ran <code>mvn eclipse:eclipse</code> to configure the Eclipse project. Now here is where the oddness starts.</p>
  
  <p>The project has no errors in Eclipse and all of the dependencies from the pom.xml are correctly referenced in the .classpath file and in the build-path of the project in Eclipse. However, if I try to run the project on a server or export the project as a WAR it leaves out one jar, a custom built in-house JAR. </p>
  
  <p>The pom.xml entry for the depency of the missing jar...</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.mycompany&lt;/groupId&gt;
      &lt;artifactId&gt;lib_ourlib&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The project's .classpath file showing that it looks just like any other entry...</p>
  
  <pre><code>&lt;classpath&gt;
    &lt;classpathentry kind="src" path="src/main/java" including="**/*.java"/&gt;
    &lt;classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/&gt;
    &lt;classpathentry kind="output" path="target/classes"/&gt;
    &lt;classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/&gt;
    &lt;classpathentry kind="var" path="M2_REPO/com/mycompany/lib_ourlib/1.0-SNAPSHOT/lib_ourlib-1.0-SNAPSHOT.jar"/&gt;
    &lt;classpathentry kind="var" path="M2_REPO/log4j/log4j/1_2_6/log4j-1_2_6.jar"/&gt;
    &lt;classpathentry kind="var" path="M2_REPO/org/springframework/spring-aop/3.0.5.RELEASE/spring-aop-3.0.5.RELEASE.jar"/&gt;
    &lt;!-- a lot of spring jars --&gt;
    &lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/&gt;
  &lt;/classpath&gt;
  </code></pre>
  
  <p>Why would Eclipse pick up the Spring jars but not ours? Is there some restriction to using a SNAPSHOT vs a RELEASE?</p>