title: maven "Please verify you invoked Maven from the correct directory" error in eclipse
body: <p>I created a java project in eclipse. The project location is /home/vikas/code/primeNumberWorkSpace/primeNumber.
  I linked the source and pom files from other locations (/home/vikas/code/primNumber/src/ and /home/vikas/code/primeNumber/pom.xml)
  When i issue 'clean install' command from the eclipse, it gives the following error,</p>
  
  <blockquote>
    <p>[ERROR] The goal you specified requires a project to execute but there
    is no POM in this directory
    (/home/vikas/code/primeNumberWorkSpace/primeNumber). Please verify you
    invoked Maven from the correct directory. -> [Help 1]</p>
  </blockquote>
  
  <p>How to resolve this.</p>
  
  <p>the pom file is:</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;main.java.com.simpragma.primenumber&lt;/groupId&gt;
    &lt;artifactId&gt;prime-number&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
  
    &lt;name&gt;Maven Quick Start Archetype&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.8.2&lt;/version&gt;
  
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;build&gt;
        &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
  
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>