title: maven - How to solve this error : "The POM for XXX is invalid"?
body: <p>I'm building a simple project with maven. I'm unable to get it to build because a transitive dependencies is missing, namely <code>objenesis 1.0</code>.</p>
  
  <p>I run maven in debug mode and got this message:</p>
  
  <pre><code>[DEBUG] =======================================================================
  [WARNING] The POM for org.jmock:jmock-junit4:jar:2.6.0 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.jmock:jmock-junit4:2.6.0
  [ERROR] Invalid packaging for parent POM org.jmock:jmock-parent:2.6.0, must be "pom" but is "jar" @ org.jmock:jmock-parent:2.6.0
  ...
  </code></pre>
  
  <p>When I look at jmock-parent I can't seem to find reference to neither pom or jar type.</p>
  
  <p>How can I solve this issue ?</p>
  
  <p><strong>Nota:</strong> We use the nexus of our company for fetching dependencies. </p>
  
  <hr>
  
  <p><strong>pom.xml</strong></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;Poc&lt;/groupId&gt;
  &lt;artifactId&gt;Poc&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
  &lt;properties&gt;
      &lt;maven.compiler.source&gt;1.6&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;1.6&lt;/maven.compiler.target&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.jmock&lt;/groupId&gt;
           &lt;artifactId&gt;jmock-junit4&lt;/artifactId&gt;
           &lt;version&gt;2.6.0&lt;/version&gt;
        &lt;/dependency&gt;
  &lt;/dependencies&gt;
    &lt;/project&gt;
  </code></pre>
  
  <p><strong>jmock-parent-2.6.0.pom</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;org.jmock&lt;/groupId&gt;
     &lt;artifactId&gt;jmock-parent&lt;/artifactId&gt;
     &lt;version&gt;2.6.0&lt;/version&gt;
     &lt;description&gt;POM was created by Sonatype Nexus&lt;/description&gt;
  &lt;/project&gt;
  </code></pre>