title: How can I use Maven to automatically download any needed dependencies of my program?
body: <p>I am new to using Maven. </p>
  
  <p>I have Java files that have dependencies. 
  Like for example:</p>
  
  <pre><code>import org.apache.hadoop.fs.Path;
  import org.apache.hadoop.hbase.HBaseConfiguration;
  import org.apache.hadoop.hbase.client.Delete;
  import org.apache.hadoop.hbase.client.Get;
  import org.apache.hadoop.hbase.client.HTable;
  import org.apache.hadoop.hbase.client.Put;
  </code></pre>
  
  <p>In the development server, there is no Java compiler. I am planning to compile the Java files on the desktop and pack the classes into jar files and then execute the program on the development server.</p>
  
  <p>The development server has all the required files, the desktop not yet. How can we use Maven to care of the issue while compiling it on the desktop?</p>
  
  <p>EDIT:</p>
  
  <p>I want to add data into hbase tables using Java. Hbase works fine in the dev server. I am able to create tables there through command line in dev serv. But hbase/hadoop is not there in the desktop environment.</p>
  
  <p>So will downloading jars help, or do I need to setup hadoop and install hbase locally?</p>