Anyone?
On 12/29/06, Stephane Nicoll <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
