You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Trent Larson <la...@gmail.com> on 2008/04/10 19:32:08 UTC

relative href link generates strange filesystem path

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: relative href link generates strange filesystem path

Posted by Michael <sg...@gmx.net>.
Trent Larson wrote:
> 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

Trent,

try site plugin 2.0-beta-5! Beta 6 has some bugs which kept me 2 night 
of investigation.


Mike
-- 
<NO> OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org