maven 设置下载地址

  
<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 http://maven.apache.org/xsd/settings-1.0.0.xsd">  

      
    <localRepository>C:\Users\v_huidongqu\.m2\mybaitsPlusReslocalRepository>  

      
    <interactiveMode>trueinteractiveMode>  

      
    <usePluginRegistry>falseusePluginRegistry>  

      
    <offline>falseoffline>  

    <mirrors>  
        <mirror>  
            <id>nexus-aliyunid>  
            <mirrorOf>centralmirrorOf>  
            <name>Nexus aliyunname>  
            <url>http://maven.aliyun.com/nexus/content/groups/public/url>  
        mirror>  
    mirrors>  



      
    <profiles>  
        <profile>  
            <id>defaultid>  
            <activation>  
                <activeByDefault>trueactiveByDefault>  
                <jdk>1.8jdk>  
            activation>  
            <repositories>  
                <repository>  
                    <id>spring-milestoneid>  
                    <name>Spring Milestone Repositoryname>  
                    <url>http://repo.spring.io/milestoneurl>  
                    <releases>  
                        <enabled>trueenabled>  
                    releases>  
                    <snapshots>  
                        <enabled>falseenabled>  
                    snapshots>  
                    <layout>defaultlayout>  
                repository>  
                <repository>  
                    <id>spring-snapshotid>  
                    <name>Spring Snapshot Repositoryname>  
                    <url>http://repo.spring.io/snapshoturl>  
                    <releases>  
                        <enabled>falseenabled>  
                    releases>  
                    <snapshots>  
                        <enabled>trueenabled>  
                    snapshots>  
                    <layout>defaultlayout>  
                repository>  
            repositories>  
        profile>  
    profiles>  
      
      

settings>  

转自博客

你可能感兴趣的:(maven)