You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mikael Andersson <ma...@gmail.com> on 2006/05/12 15:25:36 UTC

[m2] Site plugin 2.0-SNAPSHOT , can not find the parent pom warning and some other things

Hi

When I try to run "mvn site:site" in a child module I get the following
warning message:
[WARNING] Unable to load parent project from repository: Could not find the
model file '/scratch/usr/workspace/rssgen/rssgen-core/../pom.xml'.

It is looking for the parent pom in the wrong place, to work for me it would
have to look here: ...../rssgen/rssgen-core../rssgen-parent/pom.xml

My project structure is like this:

/rssgen/rssgen-parent
/rssgen/rssgen-core
/rssgen/rssgen-servlet

with group Id for all being uk.ac.ebi.es.rssgen , and the artifactId the
same as the top directory above.

Another question; is it possible to get the ${modules} navigation which I
have in the parent module in the child modules?
Currently I have the ${modules} in the child modules site.xml, but there is
nothing generated. Can I reference the parents ${modules} somehow?

Thanks
 Micke

Re: [m2] Site plugin 2.0-SNAPSHOT , can not find the parent pom warning and some other things

Posted by Mikael Andersson <ma...@gmail.com>.
Just stumbled over the <relativePath> element, which I assume will solve my
warning, a case of rtfm there...


On 12/05/06, Mikael Andersson < mail.micke@gmail.com> wrote:
>
> Hi
>
> When I try to run "mvn site:site" in a child module I get the following
> warning message:
> [WARNING] Unable to load parent project from repository: Could not find
> the model file '/scratch/usr/workspace/rssgen/rssgen-core/../pom.xml'.
>
> It is looking for the parent pom in the wrong place, to work for me it
> would have to look here: ...../rssgen/rssgen-core../rssgen-parent/pom.xml
>
> My project structure is like this:
>
> /rssgen/rssgen-parent
> /rssgen/rssgen-core
> /rssgen/rssgen-servlet
>
> with group Id for all being uk.ac.ebi.es.rssgen , and the artifactId the
> same as the top directory above.
>
> Another question; is it possible to get the ${modules} navigation which I
> have in the parent module in the child modules?
> Currently I have the ${modules} in the child modules site.xml, but there
> is nothing generated. Can I reference the parents ${modules} somehow?
>
> Thanks
>  Micke
>