http://repo1.xueliang.org/
-
MAVEN & Gradle & NPM & BOWER!
-
TRUSTY!
-
HTTPS!
-
FAST!
-
FREE!
Enjoy!
Tips:
Maven:
update your ${user.home}/.m2/settings.xml
:
<settings>
...
<mirrors>
<mirror>
<id>UK</id>
<name>UK Central</name>
<url>http://repo1.xueliang.org/repository/maven-public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
...
</settings>
Gradle:
update your ${GRADLE_USER_HOME}/init.gradle
apply plugin:EnterpriseRepositoryPlugin
class EnterpriseRepositoryPlugin implements Plugin<Gradle> {
private static String CENTRAL_REPOSITORY_URL = "http://repo1.xueliang.org/repository/maven-public/"
void apply(Gradle gradle) {
// ONLY USE ENTERPRISE REPO FOR DEPENDENCIES
gradle.allprojects{ project ->
project.repositories {
// Remove all repositories not pointing to the enterprise repository url
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository && repo.name.equals("MavenRepo")) {
project.logger.lifecycle "Repository ${repo.url} removed"
remove repo
}
}
// add the enterprise repository
maven {
name "STANDARD_ENTERPRISE_REPO"
url ENTERPRISE_REPOSITORY_URL
}
}
}
}
}
NPM:
if you using nrm
:
nrm add xueliang https://repo1.xueliang.org/repository/npmjs.org-proxy/
nrm use xueliang
or:
npm config set registry https://repo1.xueliang.org/repository/npmjs.org-proxy/
Bower:
first,
cd your_project_dir
npm install bower-nexus3-resolver --save-dev
then, update your ${user.home}/.bowerrc
{
...
"registry" : {
"search" : [
"https://repo1.xueliang.org/repository/bower.io-proxy/"
],
"register" : "https://repo1.xueliang.org/repository/bower.io-proxy/"
},
"resolvers" : [ "bower-nexus3-resolver" ]
...
}