Skip to content

Maven allows random namespaces on project #10985

@elharo

Description

@elharo

Affected version

HEAD

Bug description

It does not only allow the correct namespace and no namespace. Any random URL or string you throw in does not cause an error:

<project xmlns="https://ff.com">
  <!-- Test that we can parse a pom.xml with no namespace -->
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.apache.maven.its</groupId>
  <artifactId>missing-namespace</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>pom</packaging>
</project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions