On Dec 31, 2007 2:20 PM, Dan Tran <[EMAIL PROTECTED]> wrote:

> In order to inherit the version from dependencyManagent,   you need to
> have the same type as well.
>
> In depMan you have type=war but in your dep you have type=ejb
>
> -D
>
> btw, is there such type as 'ejb'

First, thanks for your answer. And yes, there is a type called ejb. see
http://maven.apache.org/plugins/maven-ejb-plugin/

>
>
>
>
> On Dec 30, 2007 9:51 PM, Rice Yeh <[EMAIL PROTECTED]> wrote:
> > 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]
>
>

Reply via email to