Here's an issue that wasted a few hours of my time before I found the
solution.  I'm just posting it to help others that may hit the same thing.

I was trying to make my own link; here's my simplified site.xml:

<project>
  <body>
    <menu name="Other Documents">
      <item name="MPA Plan" href="MPA-plan.xls" />
    </menu>
  </body>
</project>

I ran 'mvn site' inside the following directory:
/home/trent/dev/icentris/money-planner-admin/trunk/mpadmin

and the generated link (in the index.html source) looks like this:
../home/trent/dev/icentris/money-planner-admin/trunk/mpadmin/mpadmin

Note how it includes my file system path as an absolute path, it duplicates
the 'mpadmin' at the end, and it doesn't include the file name at all.

My problem was the main URL in the pom.xml: it was not a real URL but rather
the word "mpadmin".  Oops.  I changed it to the URL of my expected
deployment location and everything works like a charm.  These little things
can really trip you up, eh?

Cheers!

-- 
View this message in context: 
http://www.nabble.com/relative-href-link-generates-strange-filesystem-path-tp16610702s177p16610702.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to