Maven how set absolute path for parent pom

Viewed 11681

with maven 3 i have a parent project at 'C:/travail/parent'. I have several child-projects who, for various reasons, can change locations. To make a war, the relativePath tag must be set.

<parent>
    <groupId>framework.parent</groupId>
    <artifactId>parent</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>C:/Travail/parent/pom.xml</relativePath>
</parent>

Question: How can I put an absolute path for the parent? The following doesn't work.

<relativePath>/C:/Travail/parent/pom.xml</relativePath>
1 Answers
Related