icet,

The error you see is pretty much self explanatory. The parent project (or any project that declares any modules), should always use "pom" packaging. It may not be enforced nor verified when resolving dependencies, but it verified when launching Maven.

 regards,
 Eugene


icet wrote:
I'm using m2eclipse 0.9.5 (latest) and maven 2.0.9. When using m2e (embbeded
maven) everything works fine, but when using maven 2.0.9 I get these:

[INFO] Error building POM (may not be this project's POM).

Project ID: unknown:chidlProject

Reason: Parent: mygroup:parentProject:jar:0.0.1-SNAPSHOT of project:
unknown:childProject has wrong packaging: jar. Must be 'pom'. for project
unknown:childProject


Here are my projects:

C:\parenProject
C:\childProject

This is my childProject pom
...
        <parent>
                <groupId>mygroup</groupId>
                <artifactId>parentProject</artifactId>
                <version>0.0.1-SNAPSHOT</version>
                <relativePath>..\parentProject\parent-pom.xml</relativePath>
        </parent>
        <artifactId>childProject</artifactId>
...

and my parentProject pom
...
        <groupId>mygroup</groupId>
        <artifactId>parentProject</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>jar</packaging>
...



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to