title: error during building ear project with Maven 3
body: <p>I have the tree 
  pom.xml
  .presentation(ear)
  ..business(war)
  ..integration(jar)</p>
  
  <p>when i try to build the  ear (presentation) i get this error i don't understand why the artifact presentation should be a dependency and a dependency of what exactly ?   :</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.6:generate-application-xml (default-generate-application-xml) on project presentation: Artifact[war:presentaion:presentation] is not a dependency of the project. -&gt;Help
  </code></pre>
  
  <p>ear: 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/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;presentation&lt;/groupId&gt;
    &lt;artifactId&gt;presentation&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;ear&lt;/packaging&gt;
     &lt;parent&gt;
    &lt;groupId&gt;MyProject&lt;/groupId&gt;
    &lt;artifactId&gt;MyProject&lt;/artifactId&gt;
     &lt;version&gt;0.0.1&lt;/version&gt;
    &lt;/parent&gt;
  
  &lt;build&gt;
    &lt;plugins&gt;
  
      &lt;plugin&gt;
        &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.4&lt;/version&gt;
        &lt;configuration&gt;
          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
      &lt;/plugin&gt;
  
      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-ear-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.6&lt;/version&gt;
          &lt;configuration&gt;
          &lt;modules&gt;
            &lt;webModule&gt;
              &lt;groupId&gt;presentaion&lt;/groupId&gt;
              &lt;artifactId&gt;presentation&lt;/artifactId&gt;
              &lt;bundleFileName&gt;presentation.war&lt;/bundleFileName&gt;
              &lt;contextRoot&gt;/presentation&lt;/contextRoot&gt;
            &lt;/webModule&gt;
            &lt;jarModule&gt;
              &lt;groupId&gt;integration&lt;/groupId&gt;
              &lt;artifactId&gt;integration&lt;/artifactId&gt;
             &lt;bundleFileName&gt;integration.jar&lt;/bundleFileName&gt;
            &lt;/jarModule&gt;
          &lt;/modules&gt;
          &lt;displayName&gt;My Project&lt;/displayName&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
    &lt;finalName&gt;presentation&lt;/finalName&gt;
  &lt;/build&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;business&lt;/groupId&gt;
          &lt;artifactId&gt;business&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;war&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;integration&lt;/groupId&gt;
          &lt;artifactId&gt;integration&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>