Maven
  1. Maven
  2. MNG-1997

document xsd support for pom and settings in guides

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.5
    • Component/s: Documentation: Guides
    • Labels:
      None
    • Complexity:
      Novice
    • Number of attachments :
      0

      Description

      Your favorite IDE probably supports xsd schema's for pom.xml and settings.xml editing.
      Yet very few have the defined the xsd in those files because they don't know about it.

      The guides should note that pom.xml files best start with:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

      Why isn't it http://maven.apache.org/xsd/maven-v4_0_0.xsd (notice the xsd subdirectory) btw?

      and the settings.xml starts with:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/???/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/???/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

      Of course, replace the ??? with something (I did "settings" but I ahve no idea if that's ok).

        Activity

        Hide
        Geoffrey De Smet added a comment -

        Just found out, settings should be:

        <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

        </settings>

        Show
        Geoffrey De Smet added a comment - Just found out, settings should be: <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd "> </settings>
        Hide
        Vincent Siveton added a comment -

        Reviewed documentation in the maven-model, maven-settings and site projects.
        Added also a new FAQ entry.

        Show
        Vincent Siveton added a comment - Reviewed documentation in the maven-model, maven-settings and site projects. Added also a new FAQ entry.

          People

          • Assignee:
            Vincent Siveton
            Reporter:
            Geoffrey De Smet
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: