public sealed class Repository.Types.MavenRepositoryConfig : IMessage<Repository.Types.MavenRepositoryConfig>, IEquatable<Repository.Types.MavenRepositoryConfig>, IDeepCloneable<Repository.Types.MavenRepositoryConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Artifact Registry v1beta2 API class Repository.Types.MavenRepositoryConfig.
MavenRepositoryConfig is maven related repository details.
Provides additional configuration details for repositories of the maven
format type.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eMavenRepositoryConfig\u003c/code\u003e class within the Artifact Registry v1beta2 API, focusing on its role in managing Maven repository configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMavenRepositoryConfig\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.ArtifactRegistry.V1Beta2\u003c/code\u003e namespace and is used to specify configuration details for repositories that are of the Maven format type.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several 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\u003eKey properties of \u003ccode\u003eMavenRepositoryConfig\u003c/code\u003e include \u003ccode\u003eAllowSnapshotOverwrites\u003c/code\u003e, which determines whether the repository will allow publishing the same snapshot versions, and \u003ccode\u003eVersionPolicy\u003c/code\u003e, which dictates the accepted version types.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this API class is 2.0.0-beta05, with older versions 2.0.0-beta04, and 1.0.0-beta06 also documented.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry v1beta2 API - Class Repository.Types.MavenRepositoryConfig (2.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig)\n- [2.0.0-beta04](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/2.0.0-beta04/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/1.0.0-beta06/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig) \n\n public sealed class Repository.Types.MavenRepositoryConfig : IMessage\u003cRepository.Types.MavenRepositoryConfig\u003e, IEquatable\u003cRepository.Types.MavenRepositoryConfig\u003e, IDeepCloneable\u003cRepository.Types.MavenRepositoryConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Artifact Registry v1beta2 API class Repository.Types.MavenRepositoryConfig.\n\nMavenRepositoryConfig is maven related repository details.\nProvides additional configuration details for repositories of the maven\nformat type. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Repository.Types.MavenRepositoryConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository)[Types](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types)[MavenRepositoryConfig](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository)[Types](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types)[MavenRepositoryConfig](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository)[Types](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types)[MavenRepositoryConfig](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ArtifactRegistry.V1Beta2](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2)\n\nAssembly\n--------\n\nGoogle.Cloud.ArtifactRegistry.V1Beta2.dll\n\nConstructors\n------------\n\n### MavenRepositoryConfig()\n\n public MavenRepositoryConfig()\n\n### MavenRepositoryConfig(MavenRepositoryConfig)\n\n public MavenRepositoryConfig(Repository.Types.MavenRepositoryConfig other)\n\nProperties\n----------\n\n### AllowSnapshotOverwrites\n\n public bool AllowSnapshotOverwrites { get; set; }\n\nThe repository with this flag will allow publishing\nthe same snapshot versions.\n\n### VersionPolicy\n\n public Repository.Types.MavenRepositoryConfig.Types.VersionPolicy VersionPolicy { get; set; }\n\nVersion policy defines the versions that the registry will accept."]]