Le plus rapide maven entrepôt miroir repository-- Ali

Meilleur dépôt Maven domestique
première étape: le fichier de configuration de fichier Modifier dans le dossier répertoire racine maven, comme suit:

< Miroirs > 
    < miroir > 
      < id > alimaven </ id > 
      < nom > aliyun maven </ nom > 
      < url > http://maven.aliyun.com/nexus/content/groups/public/ </ url > 
      < mirrorOf > central </ mirrorOf >         
    </ miroir > 
  </ miroirs >

 

Deuxième étape: fichier pom.xml pour ajouter

< Dépôts >   
        < dépôt >   
            < id > alimaven </ id >   
            < name > aliyun maven </ nom >   
            < url > http://maven.aliyun.com/nexus/content/groups/public/ </ url >   
            < presse >   
                < activé > true </ enabled >   
            </ presse >   
            < instantanés >   
                < activé > false </ Permis >  
            </ Instantanés >   
        </ dépôt >   
</ dépôts >  

 

Je suppose que tu aimes

Origine www.cnblogs.com/lfw421935678/p/12446281.html
conseillé
Classement