title: How to add hadoop dependency via Maven? I have hadoop installed and present in my IDE project library
body: <ul>
  <li>I have hadoop installed on my system(I am using Mac 10.7)</li>
  <li>I am using Intellij IDEA as IDE and my hadoop project has listed hadoop*.jar as dependency</li>
  <li>When I do <code>mvn install</code>, it fails with the following error</li>
  </ul>
  
  <blockquote>
  <pre><code>(master) $ mvn clean install
  [INFO] Scanning for projects...
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]   
  [ERROR]   The project groupId:hadoop:master-SNAPSHOT (/Users/me/code/p/java/hadoop-programs/hadoop-programs/pom.xml)
  </code></pre>
    
    <p>has 1 error
        [ERROR]     'dependencies.dependency.systemPath' for org.apache.hadoop:hadoop-core:jar must be omitted. This field may only
    be specified for a dependency with system scope. @ line 18, column 25
        [ERROR] 
        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
        [ERROR] 
        [ERROR] For more information about the errors and possible solutions, please read the following articles:
        [ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException" rel="nofollow">http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException</a></p>
  </blockquote>
  
  <p>I make changed to my <code>pom.xml</code> as   </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;groupId&lt;/groupId&gt;
      &lt;artifactId&gt;hadoop&lt;/artifactId&gt;
      &lt;version&gt;master-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
              &lt;artifactId&gt;hadoop-core&lt;/artifactId&gt;
              &lt;version&gt;1.0.3&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;systemPath&gt;/usr/local/Cellar/hadoop/1.0.3/libexec/hadoop-core-1.0.3.jar&lt;/systemPath&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>But still same error, How do I resolve this in Maven?</p>