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

# Get the extensions of a Maven build.

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

## Request

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

- MavenExtensions
  - `extensions` MavenExtension[]: A list of applied extensions in a Maven build.
    - `groupId` string, nullable: The extension group ID. May be null if it cannot be retrieved by the Develocity extension.
    - `artifactId` string, nullable: The extension artifact ID. May be null if it cannot be retrieved by the Develocity extension.
    - `version` string, nullable: The extension version. May be null if it cannot be retrieved by the Develocity extension.
    - `type` 'CORE' | 'MAVEN_EXT_CLASSPATH' | 'LIB_EXT' | 'PROJECT' | 'POM' | 'UNKNOWN', required: The extension application type. * `CORE` - A core extension, provided in the lib folder of the Maven installation. * `MAVEN_EXT_CLASSPATH` - A core extension provided via the -Dmaven.ext.class.path system property. * `LIB_EXT` - A core extension, provided in the lib/ext folder of the Maven installation. * `PROJECT` - A project extension, provided via a declaration in .mvn/extensions.xml in the Maven working directory. * `POM` - A build extension, provided via a declaration in the build section of the top level project pom.xml * `UNKNOWN` - An extension for which none of the other types match.

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