title: Maven Pom Error - Can not find parent for Jersey
body: <p>Have Eclipse Juno, maven 2.2.1, and m2eclipse running on a Red Hat Linux platform...</p>
  
  <p>Downloaded a simple example to build a Restful Hello World web service (which works on my OS X computer) but for some odd reason, its not working on my Linux box.</p>
  
  <p>Here's the pom.xml:</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/maven-v4_0_0.xsd"&gt;
       &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
       &lt;groupId&gt;com.mkyong.common&lt;/groupId&gt;
       &lt;artifactId&gt;RESTfulExample&lt;/artifactId&gt;
       &lt;packaging&gt;war&lt;/packaging&gt;
       &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
       &lt;name&gt;RESTfulExample Maven Webapp&lt;/name&gt;
       &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
       &lt;repositories&gt;
          &lt;repository&gt;
          &lt;id&gt;maven2-repository.java.net&lt;/id&gt;
          &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
          &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
       &lt;/repositories&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;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;1.8&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;finalName&gt;RESTfulExample&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When I try to issue an mvn compile from the command line:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] Building RESTfulExample Maven Webapp
  [INFO]    task-segment: [compile]
  [INFO] ------------------------------------------------------------------------
  [INFO] [resources:resources {execution: default-resources}]
  [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 0 resource
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  
  Project ID: null:jersey-server:bundle:null
  
   Reason: Cannot find parent: com.sun.jersey:jersey-project for project: null:jersey -server:bundle:null for project null:jersey-server:bundle:null
  
  
  [INFO] ------------------------------------------------------------------------
  [INFO] For more information, run Maven with the -e switch
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: &lt; 1 second
  [INFO] Finished at: Thu Nov 15 17:07:16 PST 2012
  [INFO] Final Memory: 8M/309M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>Has anyone encountered this issue? I don't understand how it works on my OS X computer but not on Linux (which I don't think is the issue).</p>
  
  <p>Thank you for taking the time to read this.</p>