---
title: "Get the modules of a Maven build."
method: GET
path: "/api/builds/{id}/maven-modules"
tags: ["Builds", "GradleEnterprise", "Develocity"]
---

# Get the modules of a Maven build.

`GET /api/builds/{id}/maven-modules`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/maven-modules`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/maven-modules/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is Maven specific and cannot be requested for another build tool.

## Response `200`

The modules of a Maven build.

- MavenModule[]: List of Maven modules including structural relationships.
  - `name` string, required: The name of the module.
  - `groupId` string, required: The group ID of the module.
  - `artifactId` string, required: The artifact ID of the module.
  - `version` string, required: The version of the module.
  - `parent` integer, nullable: The index of the parent of this Maven module in the MavenModules array. `null` if this module has no parent (i.e. top level project).

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
