网上资源参考
1, https://blog.csdn.net/xuchao_blog/article/details/62893851
Bintray/JCenter/JitPack发布及配置流程:
2, https://blog.csdn.net/u014780554/article/details/79628041
下载maven
https://jingyan.baidu.com/article/0202781151f3471bcc9ce5d9.html
检验一下刚才的设置是否生效
命令行输入:mvn help:system
配置本地仓库
http://www.cnblogs.com/duanxz/p/5210189.html
https://blog.csdn.net/G0_hw/article/details/81159724

此时,B Repository被称为A Repository的镜像。
如果仓库X可以提供仓库Y存储的所有内容,那么就可以认为X是Y的一个镜像。换句话说,任何一个可以从仓库Y获得的构件,都胡够从它的镜像中获取
Sonatype Nexus私服安装与配置
https://blog.csdn.net/wuxiaobingandbob/article/details/79396239
1.nexus里可以配置3种类型的仓库,分别是proxy、hosted、group
2.proxy是远程仓库的代理。比如说在nexus中配置了一个central repository的proxy,当用户向这个proxy请求一个artifact,这个proxy就会先在本地查找,如果找不到的话,就会从远程仓库下载,然后返回给用户,相当于起到一个中转的作用。
3.hosted是宿主仓库,用户可以把自己的一些构件,deploy到hosted中,也可以手工上传构件到hosted里。比如说oracle的驱动程序,ojdbc6.jar,在central repository是获取不到的,就需要手工上传到hosted里。
4.group是仓库组,在maven里没有这个概念,是nexus特有的。目的是将上述多个仓库聚合,对用户暴露统一的地址,这样用户就不需要在pom中配置多个地址,只要统一配置group的地址就可以了。
注意:
1,注册Bintray 不能用QQ邮箱,需要用google邮箱注册,需要翻墙
2,jcenter修改 https为http
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter(){ url 'http://jcenter.bintray.com/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter(){url 'http://jcenter.bintray.com/'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

3,Shadowsocks PAC模式和全局模式的区别
1.在全局模式下,所有的网站都默认走代理(使你的所有http/socks数据经过代理服务器的转发送出。)
2.在PAC模式是只有被墙了的网站才会走代理(连接网站的时候读取PAC文件里的规则,来确定你访问的网站有没有被墙,如果符合,那就会使用代理服务器连接网站)。
4,Maven本地仓库配置
https://blog.csdn.net/thm521888/article/details/53453071

网友评论