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

# Get the performance profile overview of a Maven build.

`GET /api/builds/{id}/maven-build-profile-overview`

## Request

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

- MavenBuildProfileOverview: The performance profile overview of a Maven build.
  - `breakdown` MavenBuildTimeBreakdown, required: The build time breakdown of a Maven build.
    - `total` integer, required: Total duration of the build in milliseconds.
    - `initializationAndDiscovery` MavenBuildInitializationAndDiscoveryTimeBreakdown, required: The time breakdown of the initialization and discovery phase of a Maven build.
      - `total` integer, required: The elapsed time from the very start of the build to the start of the execution of the first project in milliseconds.
      - `settings` integer, required: The elapsed time taken to read the settings of the build in milliseconds.
      - `toolchains` integer, required: The elapsed time taken to read the toolchain settings of the build in milliseconds.
      - `projectDiscovery` integer, nullable: The elapsed time taken to discover all projects included in the build in milliseconds. `null` if the build failed before the project discovery phase.
      - `other` integer, required: Any other elapsed time between the start of the build and the start of the execution of the first project in milliseconds.
    - `execution` MavenBuildExecutionTimeBreakdown: The time breakdown of the execution phase of a Maven build.
      - `total` integer, required: The elapsed time from the start of the execution of the first project to the end of the build in milliseconds.
      - `goalExecution` integer, nullable: The elapsed time from the start of the execution of the first project to the end of the execution of the last project in milliseconds. `null` if the build failed before the goal execution phase.
      - `endOfBuild` integer, nullable: The elapsed time from the end of the execution of the last project to the end of the build in milliseconds. `null` if the build failed before the end of build phase.
  - `memoryUsage` MavenBuildJvmMemoryUsage: Memory usage stats of the Maven JVM while running the build.
    - `totalGarbageCollectionTime` integer, required: The total garbage collection time.
    - `memoryPools` MemoryPoolUsage[]: A list of all the heap memory pools of the JVM build process and their peak usage.
      - `name` string, required: The name of the memory pool.
      - `peakMemory` integer, required: The peak memory usage of this memory pool while running the build, in bytes.
      - `maxMemory` integer, required: The maximum amount of memory in bytes that can be used for memory management. `-1` if the maximum memory size is undefined.

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