public sealed class 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 page provides documentation for the \u003ccode\u003eArtifacts.Types.MavenArtifact\u003c/code\u003e class within the Google Cloud Build v1 API, detailing its use in uploading Maven artifacts to Artifact Registry.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMavenArtifact\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1.dll\u003c/code\u003e assembly, inheriting from Object and implementing several interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines various properties of the \u003ccode\u003eMavenArtifact\u003c/code\u003e class, including \u003ccode\u003eArtifactId\u003c/code\u003e, \u003ccode\u003eGroupId\u003c/code\u003e, \u003ccode\u003ePath\u003c/code\u003e, \u003ccode\u003eRepository\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e, which are essential for defining the Maven artifact's attributes and upload location in Artifact Registry.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of this class are documented, ranging from version 1.0.0 to the latest 2.15.0, with links to each specific version's documentation page.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports the creation of \u003ccode\u003eMavenArtifact\u003c/code\u003e objects through two constructors, one being empty, and the other allowing for the passing of another \u003ccode\u003eMavenArtifact\u003c/code\u003e object to be used as a model.\u003c/p\u003e\n"]]],[],null,[]]