Hello,

It seems to me that maven (or "site" plug-in) could not find the parent's
pom.xml when I run "mvn site" in the module. I have this parent defined:

  <parent>
    <groupId>mycompany</groupId>
    <artifactId>myparent</artifactId>
    <version>$myversion</version>
    <relativePath>../../..</relativePath>
  </parent>

When I run "mvn site", I got this warning message:

[WARNING] Unable to load parent project from repository: Could not find the
model file
'C:\myfolder1\myfolder2\myfolder3\myfolder4\myfolder5\myfolder6\..\..\..'.
for project unknown

and also it seems to me that the $version is not resolved when running under
"site".

On the contrast, when I run "mvn install', maven is able to find the
parent's pom.xml and resolve the variable $version which is defined in
parent.

Any ideas?

Thanks
Yan

Reply via email to