title: Installing 3rd party JARs to Jenkins .m2 repository
body: <p>I am Trying to add a third party jar to jenkis .m2 repository</p>
  
  <p>This is the command i found to add it to the repository from command line</p>
  
  <pre><code>mvn install:install-file -Dfile=&lt;path-to-file&gt; -DgroupId=&lt;group-id&gt; \
      -DartifactId=&lt;artifact-id&gt; -Dversion=&lt;version&gt; -Dpackaging=&lt;packaging&gt;
  </code></pre>
  
  <p>i have a linux machine where jenkins run by its own user. it has a .m2 repository in the home directory. when i tried the above command it gives error saying that, The program 'mvn' can be found in the following packages:* maven * maven2 . so jenkins can build with out a maven installed?, if so how it is done?. how can i add the jar to .m2 repository without installing maven ?</p>
  
  <p>i read that maven need a setting.xml file in its .m2 folder, but i cant find any for jenkins.</p>