云飞九天

idea与maven整合

 

1.官网下载

apache-maven-3.3.3

2.解压安装后配置conf-settings文件

a. <localRepository>E:\JAVA\maven_cangku</localRepository>-设置自己的maven仓库

b. <mirror>
     <id>nexus-aliyun</id>
     <mirrorOf>central</mirrorOf>
     <name>Nexus aliyun</name>
     <url>http://maven.aliyun.com/nexus/content/groups/public</url>
     </mirror>--设置远程下载地址-阿里云下载速度快

c. <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>
  </profiles>--设置jdk版本

3.配置maven环境变量

打开cmd,输入mvn -v

配置成功

3.打开idea开始界面,进去setting配置全局变量,

4.配置完重启idea

 

posted on 2018-11-17 14:54  云飞九天  阅读(1158)  评论(0编辑  收藏  举报

导航