Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2417

Add XML declaration to POM's

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.0.1.Final, 2.4.5.Final
    • None
    • None
    • None

    Description

      All POM's within the Weld project are without a XML declaration like:

      <?xml version="1.0" encoding="UTF-8"?>
      

      It would be good to add it.
      This causes problems with Nexus3 which does not mirror Weld artifacts when "Strict Content Type Validation" is enabled on a repository which is the default.

      org.sonatype.nexus.repository.InvalidContentException: Detected content type [text/html], but expected [application/xml, text/xml, application/x-xml]: org/jboss/weld/weld-core-parent/2.2.1.Final/weld-core-parent-2.2.1.Final.pom.xml
      

      The POM is correctly loaded from the upstream repository with content-type application/xml, but the mime type detection of Nexus 3 inspects the POM and concludes it is not an XML document due to the missing XML declaration.
      See nexus.log for the detailed logging.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            ton@finalist.nl Ton Swieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: