But the parent project does not declare any modules. I'm using inheritance, as described in Sonatype Book. It does not need to be of type 'pom' (according to the book). Plus, it's working in m2e Embedded maven (I can run mvn install with no problems).
Looking at the m2e jars, I see maven-core-2.1.jar. Maybe it is using maven 2.1, I don't know. I tried to build maven 2.1 but for some reason it didn't generate the binaries (even though the build was successful) Anyway, it's not much of a problem for me right now, because I only invoke maken from eclipse. Eugene Kuleshov wrote: > > 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 > > > > -- View this message in context: http://www.nabble.com/Inheritance-not-working-in-mvn-2.0.9%2C-but-it-does-in-m2e-%280.9.5%29-tp18611704p18617781.html Sent from the Maven Eclipse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
