You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Stephane Nicoll <st...@gmail.com> on 2007/01/05 09:37:19 UTC

Re: weird issue with the site plugin

Anyone?



On 12/29/06, Stephane Nicoll <st...@gmail.com> wrote:
> Hi,
>
> I have a weird issue with the site plugin. I have built 2.0-SNAPSHOT
> from SVN trunk. I have a master pom on two projects. This master pom
> extends some corporate pom sitting in some area of the repository
> (it's not in the parent directory and the master pom does not have any
> relative path of any kind).
>
> Here's a snippet of my master pom:
>
> <snip>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>     <parent>
>         <groupId>com.foo</groupId>
>         <artifactId>foo-parent</artifactId>
>         <version>1</version>
>     </parent>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>com.foo.maven.plugin</groupId>
>     <artifactId>maven-plugins</artifactId>
>     <packaging>pom</packaging>
>     <version>1-SNAPSHOT</version>
>     [...]
> <snip>
>
> The master pom has a site.xml in order to standardize the way the two
> subprojects sites are generated (skin, etc):
>
> <project>
> <skin>
>    <groupId>org.apache.maven.skins</groupId>
>    <artifactId>maven-stylus-skin</artifactId>
> </skin>
> <publishDate format="dd MMM yyyy" position="left"/>
> <version position="left"/>
> <body>
> <links>
>   <item name="Foo Plugins" href="http://projects.foo.com/maven/plugins/"/>
> </links>
> <menu inherit="bottom" ref="reports"/>
> </body>
> </project>
>
> When I deploy my master pom, here's what I have
>
> <snip>
> [INFO] [site:attach-descriptor]
> [WARNING] Unable to load parent project from a relative path: Could
> not find the model file '/home/sn/projects/maven/plugins/../pom.xml'.
> [INFO] [install:install]
> <snip>
>
> Why does it search in the parent dir by default?
>
> When I look at the generated sites:
>
> * the master project has the correct skin, the two subprojects have
> the default skin
> * the two subprojects do not have the project info and project reports anymore
> * None of them has the link "Foo Plugins" as defined in the master pom
>
> What am I missing?
>
> Thanks,
> Stéphane
>

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