2.23.0 (latest) 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Artifacts.Types.MavenArtifact

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Artifacts](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.md.txt)[MavenArtifact](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.MavenArtifact.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Artifacts](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.md.txt)[MavenArtifact](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.MavenArtifact.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Artifacts](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.md.txt)[MavenArtifact](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Artifacts.Types.MavenArtifact.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudBuild.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.md.txt)

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### MavenArtifact()

    public MavenArtifact()

### MavenArtifact(MavenArtifact)

    public MavenArtifact(Artifacts.Types.MavenArtifact other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ArtifactsTypesMavenArtifact` |

## Properties

### ArtifactId

    public string ArtifactId { get; set; }

Maven `artifactId` value used when uploading the artifact to Artifact
Registry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### GroupId

    public string GroupId { get; set; }

Maven `groupId` value used when uploading the artifact to Artifact
Registry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Path

    public string Path { get; set; }

Optional. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Repository

    public string Repository { get; set; }

Artifact Registry repository, in the form
"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

Artifact in the workspace specified by path will be uploaded to
Artifact Registry with this location as a prefix.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Version

    public string Version { get; set; }

Maven `version` value used when uploading the artifact to Artifact
Registry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |