Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-440

Site generation fails if unable to retrieve schema (in offline mode)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1
    • 2.1.1
    • doxia integration
    • None
    • Maven 2.2.1
      Site Plugin 2.1-SNAPSHOT
      Doxia 1.1.2

    Description

      The changes included DOXIA-263 to validate XML documents retrieves the DTD/Schema to validate the document.

      For example, for FML, xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd" the Doxia FML parser will retrieve http://maven.apache.org/xsd/fml-1.0.1.xsd before validating the document.

      If in offline mode, or in an environment without connectivity to apache.org, site generation will appear to hang until the HTTP client code times out (which is many minutes for each retry) then fail.

      Workaround: remove the schema definition from the document (and lose validation when online and IDE editing support).

      Perhaps each Doxia parser should have some embedded schemas (for FML, at least http://maven.apache.org/FML/1.0.1) so the entities can be resolved locally.

      Or at least a property for disabling document validation.

      I don't think v2.1 can be released with this issue unresolved.

      Attachments

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              sprynter David Meibusch
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: