Hi Lukas I'm sorry that I didn't specify versions in the first post. I tested my poms with version 2.2 (for Maven 2.2.1) and version 3.0-beta-3 (for Maven 3.0.2). In both cases links are invalid.
I updated my build to 2.3-SNAPSHOT and plugin reported invalid character in <url> element. There was a mistake in property name, and literal value ${prop} was used instead of interpreted value. The new plugin versions helped me to find out this bug - great! I checked again version 2.2, even with fixed property name links in the project stage are still invalid. For version 2.3-SNAPSHOT it seems to be almost ok. The depth of directory levels in the links is now correct but it looks that distributionManagement.site.url is not resolved correctly. Please look at http://code.google.com/p/m4enterprise/source/browse/trunk/corporate-pom/pom.xml. Element distributionManagement.site.url is set as a property "${com.acme.maven.corporate-pom.distributionManagement.siteUrl}". Default value of the property is "scp://sites.intranet.acme.com/var/www". In my settings.xml I overwrite this property with "scp://sites.my-company.com/var/www". As a result: stage is generated into target/staging/sites.my-company.com/var/www directory, but the links look like "../../../../sites.intranet.acme.com/var/www/modular-war-parent/index.html" There is no "sites.intranet.acme.com" elements in the effective pom of the project, variables are resolved correctly to values from settings.xml. Could you check for differences between directory structure and links generation for 2.3-SNAPSHOT, please? Are they generated in the similar way? Many Thanks, Marcin On 31 January 2011 14:04, Lukas Theussl <ltheu...@apache.org> wrote: > > Which version of the site plugin are you using (it's not specified in your > poms)? Please test 2.3-SNAPSHOT, some staging issues should be fixed with > http://jira.codehaus.org/browse/MSITE-533. > > HTH, > -Lukas > > > Marcin Kuthan wrote: >> >> Hi >> >> My multi module project is structured with separate aggregate pom and >> parent pom (aggregate pom is not a parent pom). >> All modules are aggregated by aggragate pom (parent pom is also >> submodule of aggregate pom). All submodules inherit from parent pom. >> >> Aggregate pom: >> >> http://code.google.com/p/m4enterprise/source/browse/trunk/modular-war/pom.xml >> >> Parent pom: >> >> http://code.google.com/p/m4enterprise/source/browse/trunk/modular-war/modular-war-parent/pom.xml >> >> And other submodules: >> >> http://code.google.com/p/m4enterprise/source/browse/trunk/modular-war/modular-war-core/pom.xml >> >> http://code.google.com/p/m4enterprise/source/browse/trunk/modular-war/modular-war-webapp/pom.xml >> >> For all modules<url> are defined to reflect project structure. When >> the site is deployed (mvn site-deploy) links between modules are >> valid, but for site stage (mvn site:stage or mvn site:stage-deploy) >> are broken. >> >> It looks that relative links point one directory level too high. In >> the index page of aggregate pom the link to the parent module looks >> like: >> >> ../../../../../my-site-url-from-dist-management-section/modular-war-parent/index.html >> >> If I change it to (remove one directory level): >> >> ../../../../my-site-url-from-dist-management-section/modular-war-parent/index.html >> link is valid. >> >> Links to modular-war-parent from modular-war-core and >> modular-war-webapp are valid, e.g: "../index.html", only links from >> aggregate pom to submodules are broken. >> >> I tried to remove trailing slashes from<url> element but it didn't >> help, the links were unchanged. >> >> Do you have an idea where is a mistake in my configuration? And why >> links are broken only for site stage, when for regular site deployment >> are valid? >> >> Thanks, >> Marcin >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org