If I remember correctly, if your parent POM is located at the parent directory, 
you don't need to declare the relative path, as mvn2 should be able to find it.
 
that is, (hope I remember correctly :P ), mvn2 will find the parent POM in the 
following order:
1) parent directory
2) modules in the same multi-module build
3) repository
 
(However, in 2.0.4, there seems to be a bug prohibiting 1 from working in some 
scenerioes)
 
Adrian

________________________________

From: Davis Ford [mailto:[EMAIL PROTECTED]
Sent: Fri 4/13/2007 8:51 AM
To: Maven Users List
Subject: relativePath not working



Hi, I'm using mvn 2.0.6

I have a simple structure

parent_project
    ----sub_project
       ----pom.xml
    ----pom.xml

parent_project has this:

    <groupId>my.org</groupId>
    <artifactId>parent</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

sub_project has this:

    <parent>
        <groupId>my.org</groupId>
        <artifactId>parent</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <groupId>my.org</groupId>
    <artifactId>sub</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>

anytime i issue any mvn command in the sub_project dir, i get:
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: etc...

how can i get relativePath to work?

thx,
davis




This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to