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

# Get the attributes of a Maven build.

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

## Request

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

- MavenAttributes: The attributes of a Maven build.
  - `id` string, required: The Build Scan ID.
  - `buildStartTime` integer, required: The time when the build starts, as milliseconds since Epoch.
  - `buildDuration` integer, required: The duration of the build, as milliseconds.
  - `mavenVersion` string, required: The Maven version used.
  - `extensionVersion` string, required: The Develocity Maven extension version used.
  - `topLevelProjectName` string, nullable: The top level project name. `null` in case of very early build failure.
  - `requestedGoals` string[], required: The list of requested goals.
  - `hasFailed` boolean, required: True when the build fails, false otherwise.
  - `hasVerificationFailure` boolean: Set only if the build fails: true when the build has at least one failure classified as "Verification", false otherwise. The Verification classification is meant for failures that are expected within a standard application development lifecycle. They typically represent a problem with the developer’s inputs to the build such as the source code.
  - `hasNonVerificationFailure` boolean: Set only if the build fails: true when the build has at least one failure classified as "Non-verification", false otherwise. The Non-verification classification is meant for failures that are typically not expected within a standard application development lifecycle, such as build configuration failures, dependency resolution failures, and infrastructure failures.
  - `tags` string[], required: The list of Build Scan tags.
  - `values` BuildAttributesValue[], required: The list of Build Scan values.
    - `name` string, required: The name of the Build Scan value.
    - `value` string: The value of the Build Scan value. `null` if the Build Scan value is not set.
  - `links` BuildAttributesLink[], required: The list of Build Scan links.
    - `label` string, required: The label of the Build Scan link.
    - `url` string, required: The url of the Build Scan link.
  - `develocitySettings` MavenDevelocitySettings, required: Settings for Develocity.
    - `backgroundPublicationEnabled` boolean, nullable: Indicates whether background Build Scan publication is enabled for the build. `null` if Develocity Maven extension version is < `1.6`. See https://gradle.com/help/maven-extension-configuring-background-uploading.
    - `buildOutputCapturingEnabled` boolean, nullable: Indicates whether to capture build logging output for the build. `null` if Develocity Maven extension version is < `1.11`. See https://gradle.com/help/maven-extension-capturing-build-and-test-outputs.
    - `fileFingerprintCapturingEnabled` boolean, nullable: Indicates whether file fingerprint capturing is enabled for the build. `null` if Develocity Maven extension version is < `1.1`. See https://gradle.com/help/maven-extension-capturing-goal-input-files/.
    - `goalInputsFileCapturingEnabled` boolean, nullable: Indicates whether to capture goal input file snapshots for the build. `null` if Develocity Maven extension version is < `1.1`. See https://gradle.com/help/maven-extension-capturing-goal-input-files. **This property is deprecated, use `fileFingerprintCapturingEnabled` instead.**
    - `testOutputCapturingEnabled` boolean, nullable: Indicates whether to capture test logging output for the build. `null` if Develocity Maven extension version is < `1.11`. See https://gradle.com/help/maven-extension-capturing-build-and-test-outputs.
    - `resourceUsageCapturingEnabled` boolean, nullable: Indicates whether resource usage capturing is enabled for the build. `null` if Develocity Maven extension version is < `1.22`. See https://gradle.com/help/maven-extension-capturing-resource-usage.
  - `buildOptions` MavenBuildOptions, required: Maven build options for this build.
    - `batchModeEnabled` boolean, nullable: Indicates whether the build is configured to run in non-interactive (batch) mode. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#batch-mode.
    - `daemonEnabled` boolean, nullable: Indicates whether the build runs with the Maven Daemon. `null` if Develocity Maven extension version is < `1.24`. See https://github.com/apache/maven-mvnd.
    - `debugEnabled` boolean, nullable: Indicates whether the build is configured to produce execution debug output. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#debug.
    - `errorsEnabled` boolean, required: Indicates whether the build is configured to produce execution error messages. See https://maven.apache.org/ref/current/maven-embedder/cli.html#errors.
    - `failAtEndEnabled` boolean, nullable: Indicates whether the build is configured to only fail at the end. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#fail-at-end.
    - `failFastEnabled` boolean, nullable: Indicates whether the build is configured to fail at the first error. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#fail-fast.
    - `failNeverEnabled` boolean, nullable: Indicates whether the build is configured to never fail, regardless of errors produced. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#fail-never.
    - `laxChecksumsEnabled` boolean, nullable: Indicates whether the build is configured to only warn if checksums don't match. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#lax-checksums.
    - `maxNumberOfThreads` integer, required: Maximum number of threads used when executing the build. See https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3.
    - `nonRecursiveEnabled` boolean, required: Indicates whether the build is configured to not recurse into sub-projects. See https://maven.apache.org/ref/current/maven-embedder/cli.html#non-recursive.
    - `rerunGoalsEnabled` boolean, nullable: Indicates whether the build is configured to rerun goals without checking the build cache. `null` if Develocity Maven extension version is < `1.13`. See https://gradle.com/help/maven-extension-rerunning-goals.
    - `noSnapshotsUpdatesEnabled` boolean, required: Indicates whether the build is configured to suppress snapshot updates. See https://maven.apache.org/ref/current/maven-embedder/cli.html#no-snapshot-updates.
    - `offlineModeEnabled` boolean, required: Indicates whether the build is configured to run offline. See https://maven.apache.org/ref/current/maven-embedder/cli.html#offline.
    - `quietEnabled` boolean, nullable: Indicates whether the build is configured to run in quiet mode. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#quiet.
    - `strictChecksumsEnabled` boolean, nullable: Indicates whether the build is configured to fail if checksums don't match. `null` if capturing is not possible. See https://maven.apache.org/ref/current/maven-embedder/cli.html#strict-checksums.
    - `updateSnapshotsEnabled` boolean, required: Indicates whether the build is configured to force a check for missing releases and updated snapshots on remote repositories. See https://maven.apache.org/ref/current/maven-embedder/cli.html#update-snapshots.
    - `rerunGoals` boolean, nullable: **This property is deprecated, use `rerunGoalsEnabled` instead.** Indicates whether the build is configured to rerun goals without checking the build cache. `null` if Develocity Maven extension version is < `1.13`. See https://gradle.com/help/maven-extension-rerunning-goals.
    - `resumeEnabled` boolean, nullable: Indicates whether the build resumes from the last failed subproject. `null` if Develocity Maven extension version is < `2.2` or Maven version is < Maven 4.
  - `environment` BuildAttributesEnvironment, required: The environment where the build is executed.
    - `username` string, nullable: Operating system username of the build user. `null` if no username is captured.
    - `operatingSystem` string, required: Operating system of the build machine.
    - `numberOfCpuCores` integer, required: Number of cores available to the build JVM.
    - `jreVersion` string, required: Version of the Java runtime executing the build.
    - `jvmVersion` string, required: Version of the Java Virtual Machine executing the build.
    - `jvmMaxMemoryHeapSize` integer, required: Maximum heap memory available to the build JVM in bytes.
    - `jvmCharset` string, nullable: The default charset of the JVM executing the build. `null` if capturing is not possible.
    - `jvmLocale` string, required: The locale of the JVM executing the build.
    - `publicHostname` string, nullable: The hostname of the build machine, as seen on the network. `null` if capturing is not possible.
    - `localHostname` string, nullable: The hostname of the build machine, as specified by itself. `null` if capturing is not possible.
    - `localIpAddresses` string[], nullable: The local IP addresses of the build machine. `null` if capturing is not possible.
  - `gradleEnterpriseSettings` MavenGradleEnterpriseSettings, required: **This property is deprecated, use `develocitySettings` instead.** Settings for Develocity.
    - `backgroundPublicationEnabled` boolean, nullable: Indicates whether background Build Scan publication is enabled for the build. `null` if Develocity Maven extension version is < `1.6`. See https://gradle.com/help/maven-extension-configuring-background-uploading.
    - `buildOutputCapturingEnabled` boolean, nullable: Indicates whether to capture build logging output for the build. `null` if Develocity Maven extension version is < `1.11`. See https://gradle.com/help/maven-extension-capturing-build-and-test-outputs.
    - `goalInputsFileCapturingEnabled` boolean, nullable: Indicates whether to capture goal input file snapshots for the build. `null` if Develocity Maven extension version is < `1.1`. See https://gradle.com/help/maven-extension-capturing-goal-input-files.
    - `testOutputCapturingEnabled` boolean, nullable: Indicates whether to capture test logging output for the build. `null` if Develocity Maven extension version is < `1.11`. See https://gradle.com/help/maven-extension-capturing-build-and-test-outputs.
    - `resourceUsageCapturingEnabled` boolean, nullable: Indicates whether resource usage capturing is enabled for the build. `null` if Develocity Maven extension version is < `1.22`. See https://gradle.com/help/maven-extension-capturing-resource-usage.

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