You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Alex Karasulu <ao...@bellsouth.net> on 2003/11/10 22:58:29 UTC

project relative paths and the reactor

Steve,

 

I have a situation where I'm using a relative path to a test repository in
the project.properties file here:

 

maven.repo.remote = file:./testrepo/,http://www.ibiblio.org/maven/

 

If I run the reactor one level above the actual project it does not get the
relative directory.   So if the 

project is in the avalon-sandbox/repository/api directory and the reactor is
run one level

up in the avalon-sandbox/repository directory then I get failures accessing
the repository when I

run a test within the api directory.

 

How can I use a relative path above and have the test work when run by maven
in the repository 

directory as well as the api directory?

 

Alex


Re: project relative paths and the reactor

Posted by Stephen McConnell <mc...@apache.org>.

Alex Karasulu wrote:

>Steve,
>
> 
>
>I have a situation where I'm using a relative path to a test repository in
>the project.properties file here:
>
> 
>
>maven.repo.remote = file:./testrepo/,http://www.ibiblio.org/maven/
>
> 
>
>If I run the reactor one level above the actual project it does not get the
>relative directory.   So if the 
>
>project is in the avalon-sandbox/repository/api directory and the reactor is
>run one level
>
>up in the avalon-sandbox/repository directory then I get failures accessing
>the repository when I
>
>run a test within the api directory.
>
> 
>
>How can I use a relative path above and have the test work when run by maven
>in the repository 
>
>directory as well as the api directory?
>

The only way is to anchor relative to ${basedir}.As the reactor works 
its way across the suite the ${basedir} value is updated relative to the 
base of the current target projet.

Stephen.



>
> 
>
>Alex
>
>
>  
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org