博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
maven
阅读量:5042 次
发布时间:2019-06-12

本文共 1957 字,大约阅读时间需要 6 分钟。

1.下载maven

 

 

 

maven  库 默认存放地址

 

 

 <?xml version="1.0" encoding="utf-8"?> 

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="         http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> 
    <!--本地仓库。该值表示构建系统本地仓库的路径。其默认值为~/.m2/repository。  
        <localRepository>F:\apache-maven-3.5.2\dependy\repository</localRepository>  
    --> 
    <!--Maven是否需要和用户交互以获得输入。如果Maven需要和用户交互以获得输入,则设置成true,反之则应为false。默认为true。  
        <interactiveMode>true</interactiveMode>  
    --> 
    <mirrors> 
        <!-- mirror | Specifies a repository mirror site to use instead of a given  
            repository. The repository that | this mirror serves has an ID that matches  
            the mirrorOf element of this mirror. IDs are used | for inheritance and direct  
            lookup purposes, and must be unique across the set of mirrors. | --> 
        <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>net-cn</id> 
            <mirrorOf>central</mirrorOf> 
            <name>Nexus net</name> 
            <url>http://maven.net.cn/content/groups/public/</url> 
        </mirror> 
    </mirrors> 
 
    <profiles> 
        <profile> 
            <id>jdk-1.8</id> 
            <activation> 
                <jdk>1.8</jdk> 
            </activation> 
            <repositories> 
                <repository> 
                    <id>nexus</id> 
                    <name>local private nexus</name> 
                    <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
                    <releases> 
                        <enabled>true</enabled> 
                    </releases> 
                    <snapshots> 
                        <enabled>false</enabled> 
                    </snapshots> 
                </repository> 
            </repositories> 
            <pluginRepositories> 
                <pluginRepository> 
                    <id>nexus</id> 
                    <name>local private nexus</name> 
                    <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
                    <releases> 
                        <enabled>true</enabled> 
                    </releases> 
                    <snapshots> 
                        <enabled>false</enabled> 
                    </snapshots> 
                </pluginRepository> 
            </pluginRepositories> 
        </profile> 
    </profiles> 
    <!-- --> 
    <activeProfiles> 
        <activeProfile>nexus</activeProfile> 
    </activeProfiles> 
</settings> 

 

转载于:https://www.cnblogs.com/xusongfeng/p/8359771.html

你可能感兴趣的文章
Reverse Nodes in K-Group
查看>>
golang 线程与通道
查看>>
Deep learning chapter10(part2)
查看>>
C++ 最简单的日志类
查看>>
Unity3d dotween
查看>>
Java深入学习之NIO(1)
查看>>
51单片机基于定时器0的硬件延时代码
查看>>
HTML & CSS: The Good Parts
查看>>
Perl语言编程(第三版) 大骆驼书 网络最完美版 英文原版+中文文字版PDF下载
查看>>
Java语言概述
查看>>
mysql批量插入运用
查看>>
WCF与WebService的区别(转)
查看>>
usaco Broken Necklace(dp)
查看>>
关于php操作windows计划任务管理
查看>>
深度学习性能提升方法
查看>>
原型继承
查看>>
windows下使用mingw编译python扩展模块
查看>>
UVa 12034 (递推) Race
查看>>
UVa 10900 (连续概率、递推) So you want to be a 2n-aire?
查看>>
HDU 1698 (线段树 区间更新) Just a Hook
查看>>