Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use maven Agent Warehouse

Shulou Source: shulou.com Published: 2022-06-02 07:52:45 10月04日 Update

This article mainly explains the "use of maven agent warehouse", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "the use of maven agent warehouse" bar!

Agent's warehouse list warehouse name the agent source address uses the address central https://repo1.maven.org/maven2/https://maven.aliyun.com/repository/central or https://maven.aliyun.com/nexus/content/repositories/centraljcenterhttp://jcenter.bintray.com/https://maven.aliyun.com/repository/jcenter or the aggregate warehouse https://maven.aliyun.com of https://maven.aliyun.com/nexus/content/repositories/jcenterpubliccentral and jcenter positions / repository/public or https://maven.aliyun.com/nexus/content/groups/publicgooglehttps://maven.google.com/https://maven.aliyun.com/repository/google or https://maven.aliyun.com/nexus/content/repositories/googlegradle-pluginhttps://plugins.gradle.org/m2/https://maven.aliyun.com/repository/gradle-plugin or https://maven.aliyun.com/nexus/content/repositories/gradle-pluginspringhttp://repo.spring.io/libs -milestone/ https://maven.aliyun.com/repository/spring or https://maven.aliyun.com/nexus/content/repositories/springspring-pluginhttp://repo.spring.io/plugins-release/https://maven.aliyun.com/repository/spring-plugin or https://maven.aliyun.com/nexus/content/repositories/spring-plugingrails-corehttps://repo.grails.org/grails/corehttps://maven.aliyun.com/repository/grails-core or https://maven.aliyun .com/nexus/content/repositories/grails-coreapache snapshots https://repository.apache.org/snapshots/https://maven.aliyun.com/repository/apache-snapshots or https://maven.aliyun.com/nexus/content/repositories/apache-snapshots configuration guide maven configuration guide

Open the configuration file of maven (the windows machine is usually located in the conf/settings.xml of the maven installation directory), and add the mirror child node to the label:

Aliyunmaven * Aliyun Public Warehouse https://maven.aliyun.com/repository/public

If you want to use other proxy repositories, you can add the corresponding warehouse usage address in the node. Take the use of spring proxy warehouse as an example:

Spring https://maven.aliyun.com/repository/spring true true gradle configuration Guid

Add the following code to the build.gradle file:

Allprojects {repositories {maven {url 'https://maven.aliyun.com/repository/public/'} mavenLocal () mavenCentral ()}

If you want to use other proxy repositories provided by maven.aliyun.com, take spring repositories as an example, the code is as follows:

AllProjects {repositories {url 'https://maven.aliyun.com/repository/public/'} maven {url' https://maven.aliyun.com/repository/spring/'} mavenLocal () mavenCentral ()}} Thank you for reading. This is the content of "how to use maven Agent Warehouse". After studying this article, I believe that you have a deeper understanding of the use of maven agent warehouse, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Warehouse agent method of use method configuration address guide learning code content file node available in name that is idea situation article more machine Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info Apple Huawei MariaDB