Hi Dave

I dont think you are the only person that does not want to know the absolute
URL of your pages, I think that absolutely OK. :-)

Here is what i have that actually works sometimes and generates a parent
link from the child projects.
What you will have to do is to point the maven site plugin relatively to the
following site.xml file

<?xml version="1.0" encoding="UTF-8"?>

<project name="DBWC">
  <bannerLeft>
    <name>Maven</name>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
    <href>http://maven.apache.org/</href>
  </bannerLeft>
  <bannerRight>
    <src>http://www.quest.com/images/common/quest_logo.gif</src>
    <href>http://www.quest.com/</href>
  </bannerRight>
  <body>

    <links>
      <item name="Apache" href="http://www.apache.org/"; />
      <item name="Maven 1.x" href="http://maven.apache.org/maven-1.x/"/>
      <item name="Maven 2" href="http://maven.apache.org/"/>
    </links>


    <menu ref="parent" />

    <menu ref="modules" />

    <menu ref="reports" />

  </body>


</project>

The important thing there is the yellow colored link to the parent project.

If you cant create a realive link to the that file , then just create a
src/main/site directory in each of your projects and place this xml there
too.
Dont forget put the link to the site-plugin

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <port>9000</port>

<tempWebappDirectory>${site.dir}/tempdir</tempWebappDirectory>
                    <stagingSiteURL>${url.site}</stagingSiteURL>
                    <siteDirectory>{relative_link}</siteDirectory>
                </configuration>
            </plugin>

Frankly i still have sometimes problems with that configuration, I didn't
figure it out when it does not work well, but there are some cases that it
doesnt.
Good Luck with that.. :-)


On Mon, Jul 13, 2009 at 5:54 AM, David C. Hicks <dhi...@i-hicks.org> wrote:

> Can anyone point me to anything that actually works?  I've tried every
> example I can find via Google (what few there are), and I cannot get the
> modules to generate a link back to the parent project.  Breadcrumbs
> don't seem to behave, either.  Maybe I'm an oddball and the only person
> who doesn't know the absolute URL where my pages will reside, but I
> would think that relative URLs would work.
>
> Any help?
> Thanks,
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to