Maven 2.x Documentation Checker Plugin

Set user agent for URL verifications

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-beta-2
  • Fix Version/s: 1.0
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Running the plugin on the JDepend Plugin from Mojo causes a false alarm:

o JDepend Maven Plugin (1 error, 0 warnings)
  [ERROR] Cannot reach license 'BSD' with URL: 'http://www.clarkware.com/software/license.txt'.

The URL is fine. After some telnet sessions, it appears the server is blocking the request (with code 412) just because of the user agent header field which is currently "Jakarta Commons-HttpClient/3.0.1". That seems like a good reason to tell the server, who is really knocking on its door.

Issue Links

Activity

Hide
Benjamin Bentmann added a comment -

Fixed in r675162 by setting UA to "Apache Maven/2.0 (Maven Documentation Checker Plugin)".

Show
Benjamin Bentmann added a comment - Fixed in r675162 by setting UA to "Apache Maven/2.0 (Maven Documentation Checker Plugin)".

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: