You don't have the same artifactId: <artifactId>booking-ejb</artifactId>.....<artifactId>booking-web</artifa ctId>
-----Original Message----- From: Rice Yeh [mailto:[EMAIL PROTECTED] Sent: Monday, December 31, 2007 12:52 AM To: Maven Users List Subject: version in dependency is needed Hi, I have a pom which has a dependency as follows: <dependency> <groupId>org.jboss.seam.example.booking</groupId> <artifactId>booking-ejb</artifactId> <type>ejb</type> </dependency> and this pom has a parent which has dependencyManagment stating the version of the above dependency as the follows: <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.seam.example.booking</groupId> <artifactId>booking-web</artifactId> <version>${pom.version}</version> <type>war</type> </dependency> .... But when run mvn eclipse:eclipse, I keep get the following error: Project ID: org.jboss.seam.example.booking:booking-web POM Location: /home/rice/practices/jboss/seam/booking/web/pom.xml Validation Messages: [0] 'dependencies.dependency.version' is missing for org.jboss.seam.example.booking:booking-ejb Reason: Failed to validate POM for project org.jboss.seam.example.booking:booking-web at /home/rice/practices/jboss/seam/booking/web/pom.xml [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.jboss.seam.example.booking:booking-web at /home/rice/practices/jboss/seam/booking/web/pom.xml at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376) Why version is needed here? I see other uses that do not have version element but work. How? Regards, Rice --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
