Iranian proxy for Maven Central

Global Settings (recommended)

Add to ~/.m2/settings.xml

settings.xml
<settings>
  <mirrors>
    <mirror>
      <id>mvnhub</id>
      <url>https://mvnhub.ir/</url>
      <mirrorOf>central,*,!my-internal</mirrorOf>
    </mirror>
  </mirrors>
</settings>

✓ Best choice for most teams — transparent replacement

Project-Level Configuration

Add to your pom.xml

pom.xml
<repositories>
  <repository>
    <id>mvnhub</id>
    <url>https://mvnhub.ir/</url>
    <releases><enabled>true</enabled></releases>
    <snapshots><enabled>false</enabled></snapshots>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>mvnhub</id>
    <url>https://mvnhub.ir/</url>
  </pluginRepository>
</pluginRepositories>
Gradle (Groovy DSL)
build.gradle
repositories {
    maven { url 'https://mvnhub.ir/' }
    mavenCentral()
}
Gradle (Kotlin DSL)
build.gradle.kts
repositories {
    maven(url = uri("https://mvnhub.ir/"))
    mavenCentral()
}
Scala / SBT
build.sbt
resolvers += "mvnhub" at "https://mvnhub.ir/"

Why Use This Mirror?

Hosted on Mobinhost
Deployed on Mobinhost — reliable, scalable hosting with high availability and performance optimization
Located in Iran
Server located in Iran — always fast and accessible for Iranian users, no international routing issues.
Lightning Fast
Global edge caching • very low latency in most regions (especially Iran & Middle East).