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.打开idea开始界面,进去setting配置全局变量,

4.配置完重启idea

猜你喜欢

转载自www.cnblogs.com/yunshao/p/9973910.html
今日推荐