Maven仓库配置

maven-settings.xml配置本地仓库目录

<localRepository>D:\software\maven\repo</localRepository>

maven-settings.xml配置阿里云,*仓库,CDH仓库

   <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
    <mirror>
      <id>central-repos</id>
      <name>Nexus aliyun</name>
      <url>http://repo.maven.apache.org/maven2</url>
      <mirrorOf>central1</mirrorOf>        
    </mirror> 
    <mirror>
      <id>cloudera</id>
      <name>CDH</name>
      <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
      <mirrorOf>central2</mirrorOf>  
    </mirror>
上一篇:换成阿里云源yum


下一篇:虚拟机Virtualbox网络设置HostOnly模式连接外网配置CentOS7的阿里云yum源