title: error during build EAR file in Maven
body: <p>I'm facing the followinf issue : </p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.maven.plugins:maven-ear-plugin:2.7:generate-application-xml
    (default-generate-application-xml) on project UserAdminEAR:
    Artifact[war:com.syril.administration:UserAdmin] is not a dependency
    of the project. -> [Help 1]</p>
  </blockquote>
  
  <p>what is the solution for this kind of error?</p>
  
  <p>my pom.xml is</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;UserAdminEAR&lt;/groupId&gt;
  &lt;artifactId&gt;UserAdminEAR&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;UserAdmin&lt;/name&gt;
  &lt;packaging&gt;ear&lt;/packaging&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.syril.dao&lt;/groupId&gt;
          &lt;artifactId&gt;dataAccess&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.syril.service&lt;/groupId&gt;
          &lt;artifactId&gt;UserAdminService&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;war&lt;/type&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;plugins&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.7&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;defaultLibBundleDir&gt;lib&lt;/defaultLibBundleDir&gt;
                  &lt;modules&gt;
                      &lt;jarModule&gt;&lt;/jarModule&gt;
                      &lt;javaModule&gt;
                          &lt;groupId&gt;com.syril.dao&lt;/groupId&gt;
                          &lt;artifactId&gt;dataAccess&lt;/artifactId&gt;
                          &lt;includeInApplicationXml&gt;true&lt;/includeInApplicationXml&gt;
                      &lt;/javaModule&gt;
                      &lt;webModule&gt;
                          &lt;groupId&gt;com.syril.service&lt;/groupId&gt;
                          &lt;artifactId&gt;UserAdminSL&lt;/artifactId&gt;
                          &lt;contextRoot&gt;/UserAdminSL&lt;/contextRoot&gt;
                      &lt;/webModule&gt;
                  &lt;/modules&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>