idea的maven配置流程
maven下载地址:
1.打开后,左侧选中Donwload
2.找到下载的包,最好下到D盘
下载好了之后,直接解压,
1.添加一个meven-repository,作为maven的本地仓库,就是存下载的依赖jar包,
2.修改D:\apache-maven-3.6.0\conf下的setting.xml
打开setting.xml添加下面三块
1**.路径是刚健的maven-pepository的**
<localRepository>D:\apache-maven-3.6.0\meven-repository</localRepository>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
3。
<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>
idea,打开这个界面,设置全局的配置