public sealed class Artifacts.Types.MavenArtifact : IMessage<Artifacts.Types.MavenArtifact>, IEquatable<Artifacts.Types.MavenArtifact>, IDeepCloneable<Artifacts.Types.MavenArtifact>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class Artifacts.Types.MavenArtifact.
A Maven artifact to upload to Artifact Registry upon successful completion
of all build steps.
Path to an artifact in the build's workspace to be uploaded to
Artifact Registry.
This can be either an absolute path,
e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
or a relative path from /workspace,
e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eArtifacts.Types.MavenArtifact\u003c/code\u003e class within the Google Cloud Build v1 API, specifically detailing its structure and usage for uploading Maven artifacts to Artifact Registry.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eArtifacts.Types.MavenArtifact\u003c/code\u003e class has an inheritance chain beginning with \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to define key Maven properties, such as \u003ccode\u003eArtifactId\u003c/code\u003e, \u003ccode\u003eGroupId\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e, alongside \u003ccode\u003ePath\u003c/code\u003e to the artifact and the \u003ccode\u003eRepository\u003c/code\u003e location in Artifact Registry for uploading.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers versions ranging from 1.0.0 up to 2.15.0, with 2.15.0 as the latest release, and the current page is focused on version 2.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors, \u003ccode\u003eMavenArtifact()\u003c/code\u003e and \u003ccode\u003eMavenArtifact(Artifacts.Types.MavenArtifact other)\u003c/code\u003e, with the latter accepting another \u003ccode\u003eMavenArtifact\u003c/code\u003e object for instantiation.\u003c/p\u003e\n"]]],[],null,[]]