apache-maven在Ideal中的配置

一、

*.lastUpdated
是EveryThing清理下载失败的文件

 二、

一定要记住,每次新建一个Maven时,都要在Settings中配置路径,不然默认在C盘,内存越来越大,电脑越卡。

 Sttings-->Build、Execution...-->Build Tools-->Maven

apache-maven在Ideal中的配置_第1张图片

 图中三条蓝线:前两条能看懂,最后Local_repository是本地仓库,我们自己建一个文件夹m2/repository(最好和Idea目录放到一起)除系统盘外。因为仓库是我们运行项目时下载的一些插件等,会越来越大。

 

 

3、IDEA环境准备(配置来源 sou Hadoop:https://mvnrepository.com/search?q=hadoop

{$MAVEN_HOME/conf/settings}

  

F:\m2\repository

 

  

    

      alimaven

      aliyun maven

      http://maven.aliyun.com/nexus/content/groups/public/

      central        

    

  

 

 

  jdk-1.8  

     

     true  

     1.8  

     

 

1.8  

1.8  

1.8

 

3.1.0 Maven配置

3.1.1 Maven准备

所有的配置都会下载到我们配置的本地仓库中repository

G:\IntelliJ IDEA Community Edition 2016.3.1\bendicangku\repository

 

 

<dependencies>
    <dependency>
        <groupId>org.apache.hadoopgroupId>
        <artifactId>hadoop-commonartifactId>
        <version>2.8.4version>
    dependency>

    <dependency>
        <groupId>org.apache.hadoopgroupId>
        <artifactId>hadoop-commonartifactId>
        <version>2.8.4version>
    dependency>
    <dependency>
        <groupId>org.apache.hadoopgroupId>
        <artifactId>hadoop-hdfsartifactId>
        <version>2.8.4version>
    dependency>
    <dependency>
        <groupId>org.apache.hadoopgroupId>
        <artifactId>hadoop-clientartifactId>
        <version>2.8.4version>
    dependency>

    <dependency>
        <groupId>org.projectlombokgroupId>
        <artifactId>lombokartifactId>
        <version>1.16.10version>
    dependency>

    <dependency>
        <groupId>log4jgroupId>
        <artifactId>log4jartifactId>
        <version>1.2.17version>
    dependency>
    <dependency>
        <groupId>org.slf4jgroupId>
        <artifactId>slf4j-apiartifactId>
        <version>1.7.7version>
    dependency>

    
    <dependency>
        <groupId>junitgroupId>
        <artifactId>junitartifactId>
        <version>4.12version>
        <scope>testscope>
    dependency>
dependencies>

 

你可能感兴趣的:(java)