title: How to tell M2Eclipse to install jar file as a maven dependency
body: <p>I want to add <code>jpoller.jar</code> as a maven dependency, so I edited my pom.xml file to include it:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.sadun&lt;/groupId&gt;
      &lt;artifactId&gt;jpoller&lt;/artifactId&gt;
      &lt;version&gt;1.5.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Now, as expected, when I compile from the command line I get an error because <code>jpoller</code> isn't in any of the repositories I have listed in my pom, nor could I find one for it.  Although I could create a repository for it, I'd rather not at this point.  Thus, I get the following error:</p>
  
  <blockquote>
    <p>[INFO] Failed to resolve artifact.</p>
    
    <p>Missing:
    ---------- 1) org.sadun:jpoller:jar:1.5.2</p>
    
    <p>Try downloading the file manually
    from the project website.</p>
    
    <p>Then, install it using the command:
          mvn install:install-file -DgroupId=org.sadun -DartifactId=jpoller -Dversion=1.5.2 -Dpackaging=jar -Dfile=/path/to/file</p>
  </blockquote>
  
  <p>How can I do this from the M2Eclipse plugin on machines where the maven CLI isn't available?</p>