Iranian Maven Central proxy provided by Sajjad Farhanizade
Thanks to our supporters:
Global Settings Recommended
Add to ~/.m2/settings.xml — applies to every project on your machine.
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 for Maven Central.
Project-Level Configuration
Use this when you can't modify global settings, or want the mirror scoped to one project.
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 Maven Hub?
Free to use
No accounts, no quotas. Donations keep the lights on.
Located in Iran
No international routing issues. Fast and reachable for Iranian users.
Lightning fast
Global edge caching and very low latency in Iran & the Middle East.
Reliable infrastructure
High availability with 24/7 monitoring and performance optimization.
Cost effective
Reduces international bandwidth usage — real savings on metered links.
Developer friendly
One-click copy for every build tool. No registration required.