jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x and 3.x Site Plugin
  • MSITE-338

URLs in site.xml banner tags not rendered by site plugin if host not resolved by "nslookup"

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0-beta-6
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Absolute URL's in the banner tags of site.xml are translated to relative URLs by the maven-site-plugin when the hostname is not found by nslookup. In my case the hostname only exists in my hosts files on a the Windows machine running "mvn site".

In the example below, the generated URLs for bannerLeft will be absolute and the URL's for bannerRight will be relative. Adding "badhost.apache.org" to the hosts file will not change the outcome.

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven">
<bannerLeft>
<name>Maven</name>
<src>http://maven.apache.org/images/apache-maven-project.png</src>
<href>http://maven.apache.org/</href>
</bannerLeft>
<bannerRight>
<name>Maven</name>
<src>http://badhost.apache.org/images/apache-maven-project.png</src>
<href>http://badhost.apache.org/</href>
</bannerRight>
</project>

It appears the plugin is validating the hostname. Is their a way of turning this validation off?

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MSITE-159 Absolute URI rendered as relative URI if absolute URI related to domain of POM URI

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 28/Jan/11 4:25 AM

See http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why_do_my_absolute_links_get_translated_into_relative_links

Show
Lukas Theussl added a comment - 28/Jan/11 4:25 AM See http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why_do_my_absolute_links_get_translated_into_relative_links

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Paul Spencer
Vote (0)
Watch (1)

Dates

  • Created:
    19/Jun/08 8:29 AM
    Updated:
    28/Jan/11 4:25 AM
    Resolved:
    28/Jan/11 4:25 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.