首页 > 其他分享 >mvn:downloading from central

mvn:downloading from central

时间:2023-05-14 19:46:32浏览次数:45  
标签:插件 downloading central https repository maven aliyun com mvn

不喜欢在maven的settings.xml里改,更喜欢直接在pom.xml里改,因为受git管理,小伙伴们拉下来即可。

pom中更换阿里云仓库时不要忽略了pluginRepositories,原来,只有项目本身的依赖,走了aliyun这个repository,maven命令需要的插件(比如clean、install都是maven的插件),走的还是默认的repository

<repositories>
    <repository>
        <id>aliyun</id>
        <url>https://maven.aliyun.com/repository/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>aliyun-plugin</id>
        <url>https://maven.aliyun.com/repository/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

参考:https://www.cnblogs.com/default/p/11856188.html

标签:插件,downloading,central,https,repository,maven,aliyun,com,mvn
From: https://www.cnblogs.com/2008nmj/p/17399967.html

相关文章

  • ch583/ch582/ch573/ch571 central(主机)程序
    本程序是在CH582m上运行的,一、主从连接主机这里可以根据从机的MAC地址进行连接。staticuint8_tPeerAddrDef[B_ADDR_LEN]={0x02,0x02,0x03,0xE4,0xC2,0x84};一般从机在使用的时候不做其他配置时使用的是芯片本身的MAC地址,可以通过修改从机端对应的MAC地址和主机进行连......
  • java jar 没有主清单属性_Spring Boot jar中没有主清单属性的解决方法「建议收藏」
    javajar没有主清单属性_SpringBootjar中没有主清单属性的解决方法「建议收藏」原文链接:https://cloud.tencent.com/developer/article/2133065大家好,又见面了,我是你们的朋友全栈君。使用SpringBoot微服务搭建框架,在eclipse和Idea下能正常运行,但是在打成jar包部署或者直接......
  • mvn命令上传分步上传jar和pom文件
    1、首先在setting.xml文件<server>配置id和用户名、密码 假如id:snapshot 2、上传pom。文件mvndeploy:deploy-file-Dfile=XX-0.0.5-SNAPSHOT.pom-DgroupId=com.XX-DartifactId=XX-Dversion=0.0.5-SNAPSHOT-Dpackaging=pom-DrepositoryId=snapshot-Durl=http://n......
  • mvn 构建错误总结
    问题总结:mvn仓库查找顺序本地仓库=>没有就找中央仓库=>远程仓库mvn构建失败三大原因1.误删除./m2文件夹,构建失败解决:重新使用中央仓库拉取配置2.本地仓库是否有错误依赖(以lastUpdated结尾)缓存失败;产生的原因:可能是网络波动或者前期新手配置有误解决方案:删除本地有问......
  • chatgpt--mvn install 当做笔记保留
    在Maven中安装外部包需要使用`mvninstall:install-file`命令,其语法如下:mvninstall:install-file-Dfile=<path-to-file>\-DgroupId=<group-id>\-DartifactId=<artifact-id>\-Dversion=<version>\-Dpackaging=<packaging>\-Dg......
  • UVa 757 / POJ 1042 / East Central North America 1999 Gone Fishing (枚举&贪心&想
    757-GoneFishingTimelimit:3.000secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=698http://poj.org/problem?id=1042Johnisgoingonafishingtrip.Hehas h hoursavailable( ),andther......
  • mvn的简介、安装、使用及常用命令
    一、简介nvm是一个node的版本管理工具,可以简单操作node版本的切换、安装、查看等,与npm不同的是,npm是依赖包的管理工具,nvm是nodejs的版本管理工具,通过它可以安装和切换不同版本的nodejs。 二、安装可以在GitHub上下载最新版本。nvm-noinstall.zip:绿色免安装版,但......
  • java 项目使用 本地的gradle wrapper 或者 mvn gradle
    使用ganradle的好处是当前项目对版本idea自动下载mvnwrapper目录结构.mvnwrappermaven-wrapper.jarmaven-wrapper.propertiesMaven......
  • linux服务器解压缩zip文件时报错End-of-central-directory signature not found
    在向服务器上传一个windows上压缩的zip文件时出现报错End-of-central-directorysignaturenotfound. Eitherthisfileisnotazipfile,oritconstitutesonedis......
  • Error downloading packages: glibc-2.17-326.el7_9.i686: [Errno 5]
     001、yum安装软件出现如下报错  002、其中的一个原因是python的版本造成的,即将系统默认调用的python有python2改用了python3,而yum命令兼容的python版本是python......