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

# Get the dependencies of a Maven build.

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

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/maven-dependencies`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/maven-dependencies/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 dependencies of a Maven build.

- MavenDependencies: Dependencies of a Maven build. While there are many possible types of dependencies, initial support is for library dependencies of the software. Dependency identifiers are based on the package url (purl) [specification](https://github.com/package-url/purl-spec).
  - `dependencies` MavenDependency[]: List of dependencies of a Maven build.
    - `scheme` string, required: The scheme used to identify the dependency.
    - `type` string, required: The type of the dependency.
    - `namespace` string, nullable: A prefix used to qualify the dependency name.
    - `name` string, required: The name of the dependency.
    - `version` string, nullable: The version of the dependency.
    - `qualifiers` object, nullable: Additional information to qualify the identity of the dependency. The names and their meanings are type-specific.
    - `subpath` string, nullable: Subpath within a dependency.
    - `purl` string, nullable: The [package URL](https://github.com/package-url/purl-spec) identifier for the dependency.
    - `repository` object, nullable: The repository where the dependency was resolved from.
      - `url` string, nullable: The URL of the repository.
      - `type` 'maven' | 'ivy' | 'flatDir' | 'npm', nullable: The type of the repository.
      - `resolutionSource` 'remote' | 'local' | 'unknown', nullable: A classification of the source this repository uses to resolve dependencies.

## 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)
