Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2816

Pom without xsd import is not validated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.4
    • None
    • Bootstrap & Build
    • None

    Description

      I added a dependency to a module a couple of days ago. I did it just a tad too quickly (copy and paste from dependency management), and forgot to enclose with the dependency tag, i.e. I had the following structure:

      <dependencies>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      </dependencies>

      So - what happened when I did an "mvn install" the dependency was ignored rather than producing an error message as the pom was actually valid xml. It would be nice to have some defaulting of xsd if none was specified.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kristoffer79 Kristoffer Moum
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: