5 Replies Latest reply on Jan 11, 2010 3:53 PM by Fabricio Lemos

    Wrong project hierarchy with Maven Configuration

    Fabricio Lemos Newbie

      I created a Seam Ear projet with Maven Configuration. The parent module pom is created with:

       

        <modules>
          <module>../</module>
          <module>../-ejb</module>
          <module>../-ear</module>
        </modules>

       

      assuming a tree hierarchy. But the projects are created is a flat hierarchy and doesn´t correspond to the pom, so when I build the parent with Maven I get:

       

      D:\workspaces\galileo\blank-parent>mvn package
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).

       


      Project ID: unknown

       

      Reason: Could not find the model file 'D:\workspaces\galileo\pom.xml'. for proje
      ct unknown

       


      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Could not find the model file
      'D:\workspaces\galileo\pom.xml'. for project unknown
              at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

       

       

      Is this a known bug?

       

      thanks in advance,

      Fabricio Lemos