XSD Apache Software Foundation · 4.0.0

Maven POM 4.0.0

Project Object Model

The pom.xml of Maven projects: dependencies, build plugins, modules.

About

Every Maven build is described by a pom.xml in the 4.0.0 model. The schema catches misplaced or misspelled elements that Maven would otherwise ignore or report late.

Good to know

  • Plugin <configuration> blocks are free-form and not checked. Property references, versions and inheritance are resolved by Maven, not by the schema.

Files

1 file · 127.1 KB

Example document

pom.xml · 826 B · valid against this schema

In CI and from code

The same schema by its name, maven-pom-4.0.0, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema maven-pom-4.0.0
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: maven-pom-4.0.0
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=maven-pom-4.0.0

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups