在Maven的setting文件配了正确的私服地址但是拉不下jar

     

刚开始加的配置  

<mirror>
            <id>nexus</id>
            <name>nexus</name>
            <url>http://dev.***.com/nexus/content/groups/public/</url>
            <mirrorOf>*</mirrorOf>
        </mirror>

后面又加了就可以拉下来了

    <profiles>
        <profile>
            <!-- 对应activeProfiles-activeProfile的内容 -->
            <id>nexus</id>
            <!-- 仓库地址 -->
            <repositories>
                <repository>
                    <!-- 私服id,覆盖maven-model模块下的父id,让maven不走中央仓库下载,走私服下载 -->
                    <id>central</id>
                    <!-- 名字 -->
                    <name>Nexus</name>
                    <!-- 私服地址,写central后,会去mirror里面找 -->
                    <url>http://central</url>
                    <!-- 支持releases版本 -->
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <!-- 支持snapshots版本 -->
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <!-- 插件地址 -->
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <name>Nexus Plugin Repository</name>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>nexus</activeProfile>
    </activeProfiles>

   

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值