title: Invalid packaging for parent pom.xml, must be "pom" but is "ear"
body: <p>Could anybody suggest me an solution with the following exception. I am going to create a multi-module project. </p>
  
  <p>Parent Project name is <code>LOGICBACKEND</code>
  child project name is <code>DBAccess</code></p>
  
  <p>I need to have ear file of <code>LOGICBACKEND</code> which should contain <code>DBAccess</code> prjoects <code>jar</code> file. </p>
  
  <p>I am getting following exception when i run <code>mav clean install -P Developer</code>. </p>
  
  <pre><code>[ERROR]The project com.project1.Database:DBAccess:1.0-SNAPSHOT (C:\Project1\DBAccess\pom.xml) has 1 error
  [ERROR]Invalid packaging for parent POM com.project1.logic:LOGIC:1.0-SNAPSHOT (C:\Project1\pom.xml), must be "pom" but is "ear" @ com.project1.logic:LOGIC:1.0-SNAPSHOT, C:\Project1\pom.xml, line 6, column 13
  </code></pre>
  
  <p>This is how part of my parent pom.xml looks </p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.project1.logic&lt;/groupId&gt;
  &lt;artifactId&gt;LOGICBACKEND&lt;/artifactId&gt;
  &lt;packaging&gt;ear&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; 
  </code></pre>
  
  <p>This is how child pom.xml looks</p>
  
  <pre><code>&lt;groupId&gt;com.project1.logic&lt;/groupId&gt;
  &lt;artifactId&gt;DBAccess&lt;/artifactId&gt;
  &lt;packaging&gt;ejb&lt;/packaging&gt;
  &lt;name&gt;DBAccess&lt;/name&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;com.project1.logic&lt;/groupId&gt;
      &lt;artifactId&gt;DBAccess&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;relativePath&gt;../pom.xml&lt;/relativePath&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>Could anybody help me here to understand what is going wrong here. </p>
  
  <p>Thanks in advance for any help</p>