You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Abdallah, Dr. Fuad" <F....@Verband.Creditreform.de> on 2004/12/01 17:19:24 UTC

Reference to Parent Project

Hi Everybody,

I just started to move a project to maven and got into a problem with the
relative path to parent projects. 

The project consists of different subprojects that all extend a template
project. I would like to have checkstyle and PMD configurations placed in
the template project together with the plugin properties. 

Running one of the subprojects fails because I did not find how to specify a
path relative to the parent (template) project (and the path is different
for the subprojects).
${basedir} is replaced by the subprojects basedir - does anything like
parent.basedir exist?

I have browsed through the documentation and the mailing list archive but
didn't find an answer yet - sorry if I missed something.

Many thanks in advance,
Fuad


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Reference to Parent Project

Posted by Erik Husby <mh...@broad.mit.edu>.
One possible configuration is:

base
   -- template
   -- subprojectA
   -- subprojectB


In that case the relative path from subprojectA to template is 
"../template/project.xml".

-- 
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard 
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Reference to Parent Project

Posted by Benedict Heal <bh...@benedictheal.com>.

I tend to define a property like MyProject.root=c:/MyProject, and then
address some things relative to that.
It saves all that '..' lark.

Benedict


> -----Original Message-----
> From: Abdallah, Dr. Fuad [mailto:F.Abdallah@Verband.Creditreform.de]
> Sent: 01 December 2004 16:19
> To: 'Maven Users List'
> Subject: Reference to Parent Project
>
>
> Hi Everybody,
>
> I just started to move a project to maven and got into a problem with the
> relative path to parent projects.
>
> The project consists of different subprojects that all extend a template
> project. I would like to have checkstyle and PMD configurations placed in
> the template project together with the plugin properties.
>
> Running one of the subprojects fails because I did not find how
> to specify a
> path relative to the parent (template) project (and the path is different
> for the subprojects).
> ${basedir} is replaced by the subprojects basedir - does anything like
> parent.basedir exist?
>
> I have browsed through the documentation and the mailing list archive but
> didn't find an answer yet - sorry if I missed something.
>
> Many thanks in advance,
> Fuad
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.802 / Virus Database: 545 - Release Date: 26/11/2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 26/11/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org