Maven 公共代理仓库
Maven 公共代理仓库,代理多种常见 Maven 仓库,帮助开发者有效解决部分冷门依赖包无法找到的问题,加速程序编译构建。
Maven 配置指南
打开 maven 的配置文件(一般在 maven 安装目录的 conf/settings.xml),在 <mirrors></mirrors> 标签中添加 mirror 子节点:
<mirror>
<id>renfeimaven</id>
<mirrorOf>*</mirrorOf>
<name>RENFEI公共仓库</name>
<url>https://maven.renfei.net/nexus/repository/public/</url>
</mirror>
如果想使用其它代理仓库,可在 <repositories></repositories> 节点中加入对应的仓库使用地址。以使用 central 代理仓为例:
<repository>
<id>central</id>
<url>https://maven.renfei.net/nexus/repository/central/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Gradle 配置指南
在 build.gradle 文件中加入以下代码:
allprojects {
repositories {
maven {
url 'https://maven.renfei.net/nexus/repository/public/'
}
mavenLocal()
mavenCentral()
}
}
如果想使用其它代理仓,以使用 central 仓为例,代码如下:
allprojects {
repositories {
maven {
url 'https://maven.renfei.net/nexus/repository/public/'
}
maven {
url 'https://maven.renfei.net/nexus/repository/central/'
}
mavenLocal()
mavenCentral()
}
}
代理仓库信息
仓库名称 | 仓库地址 | 代理源地址 |
---|---|---|
Public | https://maven.renfei.net/nexus/repository/public/ | 所有代理仓库的聚合仓库 |
Central | https://maven.renfei.net/nexus/repository/central/ | https://repo1.maven.org/maven2/ |
Gradle Plugin | https://maven.renfei.net/nexus/repository/gradle-plugin/ | https://plugins.gradle.org/m2/ |
Apache Snapshots | https://maven.renfei.net/nexus/repository/apache-snapshots/ | https://repository.apache.org/snapshots/ |
Atlassian | https://maven.renfei.net/nexus/repository/atlassian/ | https://packages.atlassian.com/mvn/maven-atlassian-external/ |
Hortonworks | https://maven.renfei.net/nexus/repository/hortonworks/ | https://repo.hortonworks.com/content/repositories/releases/ |
Spring Plugins | https://maven.renfei.net/nexus/repository/spring-plugins/ | https://repo.spring.io/ui/native/plugins-release/ |
Spring Libs Milestone | https://maven.renfei.net/nexus/repository/spring-libs-milestone/ | https://repo.spring.io/ui/native/libs-milestone/ |
JBossEA | https://maven.renfei.net/nexus/repository/jbossea/ | https://repository.jboss.org/nexus/content/repositories/ea/ |
KtorEAP | https://maven.renfei.net/nexus/repository/ktoreap/ | https://maven.pkg.jetbrains.space/public/p/ktor/eap/ |
WSO2 Public | https://maven.renfei.net/nexus/repository/wso2/ | https://maven.wso2.org/nexus/content/repositories/public/ |
BeDataDriven | https://maven.renfei.net/nexus/repository/bedatadriven/ | https://nexus.bedatadriven.com/content/groups/public/ |
Gigaspaces | https://maven.renfei.net/nexus/repository/gigaspaces/ | https://maven-repository.openspaces.org/ |
E-iceblue | https://maven.renfei.net/nexus/repository/E-iceblue/ | https://repo.e-iceblue.cn/repository/maven-public/ |
XWiki Releases | https://maven.renfei.net/nexus/repository/xwiki/ | https://maven.xwiki.org/releases/ |
JBoss Releases | https://maven.renfei.net/nexus/repository/jboss/ | https://repository.jboss.org/nexus/content/repositories/releases/ |
KotlinDev | https://maven.renfei.net/nexus/repository/kotlin-dev/ | https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/ |
Spring Lib Release | https://maven.renfei.net/nexus/repository/spring-libs-release/ | https://repo.spring.io/ui/native/libs-release/ |
Alfresco | https://maven.renfei.net/nexus/repository/alfresco/ | https://artifacts.alfresco.com/nexus/content/repositories/public/ |
Shibboleth | https://maven.renfei.net/nexus/repository/shibboleth-releases/ | https://build.shibboleth.net/maven/releases/ |
Shibboleth snapshot | https://maven.renfei.net/nexus/repository/shibboleth-snapshot/ | https://build.shibboleth.net/maven/snapshots/ |
JEECG | https://maven.renfei.net/nexus/repository/jeecg/ | https://maven.jeecg.org/nexus/content/repositories/jeecg/ |
仓库补充
如果您使用我们的公开代理仓库,还是未能找到您所需要的依赖包,您可以联系我们添加代理地址,或直接添加官方的 Jar 包。我们很乐意能能够解决您的问题。
如果是贵司或贵组织内部的私有包,就不要找我添加了,我只添加公开的包,内部私有包请找内部组织的仓库管理员解决。
发起故事
随着接手的项目越来越多,各个项目依赖包奇奇怪怪,什么达梦驱动包找不到了、com.oracle:ojdbc6 找不到了, 有的依赖不在中央仓库而在厂商自己的仓库中,有的是单独下载而不在中央仓库中发行,搞个项目本地有了服务器上编译又不过了, 因为依赖包浪费老夫的时间,所以我决定自己聚合一个 Maven 仓库,包罗万象。
这个仓库诞生了,代理各个公开仓库,解决各种依赖包找不到的问题。