To get this to work for us, we needed to have a <site> tag under <distributionManagement> in the parent pom and you need to explicitly do a mvn site:site site:deploy to properly get a site to work. Hope this helps.
On 10/5/07, Holt, Jack C. <[EMAIL PROTECTED]> wrote: > > I tried using "mvn site:stage" and it placed the staged site under > target/staging and the links to the subprojects seem like they should > work and it looks like the files for the subprojects are being generated > but not in the staging directory. Therefore the links to the subprojects > still don't work. Is there something I need to add or remove from the > subproject POMs? Where should I look for documentation on this? > > Here is a sample of a subproject pom.xml I'm using: > > <?xml version="1.0"?> > <project> > <parent> > <artifactId>mmtps</artifactId> > <groupId>org.rta.ith</groupId> > <version>2.0.1</version> > </parent> > <modelVersion>4.0.0</modelVersion> > <groupId>org.rta.ith</groupId> > <artifactId>mmtps-util</artifactId> > <name>mmtps-util</name> > <version>1.0</version> > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > </dependencies> > </project> > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Holt, Jack C. > Sent: Friday, October 05, 2007 6:13 AM > To: Maven Users List; Maven Users List > Subject: RE: mvn site and multprojects > > In answer to your question about which goals I'm running here is a part > of my original message that got "snipped"... > > "I have a project that contains several subprojects. When I run "mvn > site" in the top-level project's directory,...". > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Erik Drolshammer > Sent: Thursday, October 04, 2007 11:20 PM > To: Maven Users List > Subject: RE: mvn site and multprojects > > On Thu, 2007-10-04 at 07:03 -0700, Holt, Jack C. wrote: > > OK. It turns out that I had <url> tags in all but one POM that said > the > > modules were at maven.apache.org. I have removed them and things have > > changed but I still don't have a solution. Without any <url> tags in > my > > pom.xml's the links for my subprojects point to <main project > > dir>/target/site/<subproject dir>/index.html whereas <main project > > dir>/<subproject dir>/target/site/index.html is correct. How do I fix > > that? > > Which goals are you running? > With multi-module sites you must use site-staging or site-deploy to have > the submodules copied correctly. > > -- > Regards > Erik Drolshammer > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >