maven 配置笔记

打包时跳过测试

> mvn package -DskipTests

IDEA mac上的位置为 "/Applications/IntelliJ\ IDEA\ CE.app/Contents/plugins/maven/lib/maven3/conf/settings.xml"

添加如下内容 (好像有问题, 待验证)

    <repositories>
        <repository>
            <id>aliyun-repos</id>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>aliyun-plugin</id>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1.下载maven,https://maven.apache.org/download.cgi 2.将maven解...
    Hugh1029阅读 445评论 0 0
  • maven是一个好东西,但是由于各种问题(墙),导致在项目构建过程中,很卡很慢,因此我们可以找一下国内的库进行代替...
    猪猪侠0428阅读 693评论 0 0
  •   初学JavaWeb碰到过很多坑,而如今用Maven开始项目,记录自己从头到尾的配置方法。 目录 一、Maven...
    crossous阅读 7,885评论 0 1
  • nexus是广为人知的搭建maven私有仓库的工具。本文记录nexus在安装配置过程中的一些笔记。 使用docke...
    mr_franklin阅读 17,095评论 0 9
  • 尊敬的各位旅客: 大家好,欢迎来到北京长城,这次旅游由我来当大家的导游,我叫郭琪,大家可以叫我:郭导,接下来,...
    助之鑫阅读 262评论 0 4