title: How to add .jar file dependencies to pom.xml file using m2eclipse plugin
body: <p>I would like to add junit 4.10 to my dependencies for my pom.xml and also 2 other denpencies found <a href="https://code.google.com/p/google-gson/downloads/list" rel="nofollow">https://code.google.com/p/google-gson/downloads/list</a> 
  and here <a href="https://code.google.com/p/mnist-tools/downloads/detail?name=mnist-tools.zip&amp;can=2&amp;q=" rel="nofollow">https://code.google.com/p/mnist-tools/downloads/detail?name=mnist-tools.zip&amp;can=2&amp;q=</a></p>
  
  <p>But I have no idea how to add them to the pom.xml file using the m2eclipse plugin</p>
  
  <p>Also my file structure for my maven project can be found here: <a href="https://github.com/quinnliu/WalnutiQ" rel="nofollow">https://github.com/quinnliu/WalnutiQ</a></p>
  
  <p>I was wondering if my file structure is going to be a problem? I do name all of my test classes like *Test.java For example ExampleClass.java has a corresponding file ExampleClassTest.java</p>
  
  <p>This is my pom.xml file so far:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;WalnutiQ&lt;/groupId&gt;
    &lt;artifactId&gt;WalnutiQ&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;testSourceDirectory&gt;tests&lt;/testSourceDirectory&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;train&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;**/*.java&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/resource&gt;
        &lt;resource&gt;
          &lt;directory&gt;images&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;**/*.java&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;testResources&gt;
        &lt;testResource&gt;
          &lt;directory&gt;tests&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;**/*.java&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/testResource&gt;
      &lt;/testResources&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source/&gt;
            &lt;target/&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>