分类 java 下的文章

Go 项目拉取依赖速度慢

export GOPROXY=https://goproxy.cn,direct
export GOPRIVATE=git.mycompany.com,github.com/my/private

Python 项目拉取依赖速度慢

~/.pip/pip.conf文件:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

Node.js 项目拉取依赖速度慢

npm i --registry=https://registry.npmmirror.com --disturl=https://npmmirror.com/dist

Maven 项目拉取依赖速度慢

settings.xml文件:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <mirrors>
    <mirror>
      <id>aliyunmaven</id>
      <mirrorOf>*</mirrorOf>
      <name>阿里云公共仓库</name>
      <url>https://maven.aliyun.com/repository/public</url>
    </mirror>
  </mirrors>
</settings>