maven配置
1.下载maven路径https://maven.apache.org/

2.环境变量配置



3.setting.xml配置
  
 
- 本地仓库位置修改
 在<localRepository>标签内添加自己的本地仓库位置路径,这个本地仓库位置是自己创建的。
- 修改maven默认的JDK版本
 在<profiles>标签下添加一个<profile>标签,修改maven默认的JDK版本。- 
<profile> 
 <id>JDK-1.8</id>
 <activation>
 <activeByDefault>true</activeByDefault>
 <jdk>1.8</jdk>
 </activation>
 <properties>
 <maven.compiler.source>1.8</maven.compiler.source>
 <maven.compiler.target>1.8</maven.compiler.target>
 <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
 </properties>
 </profile>
 
- 
                    3.添加国内镜像源   添加<mirrors>标签下<mirror>,添加国内镜,这样下载jar包速度很快
                                <mirror>
                                <id>alimaven</id>
                                <mirrorOf>central</mirrorOf>
                                <name>aliyun maven</name>
                                <url>http://maven.aliyun.com/nexus/content/groups/public</url>
                                </mirror>
4.IDE修改maven配置
                            
4.MAVEN 仓地址
3、https://maven-repository.com/
4、(阿里云镜像站速度最快)http://maven.aliyun.com/nexus/#welcome
 
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号