Maven setting配置镜像仓库的方法步骤
1.配置IDE构建的Maven存放目录(解压目录)
2.配置IDE的Usersettingfile路径,修改setting配置文件
配置本地仓库
E:\JAVA\Maven
配置mirrors远程镜像(一般配置一到两个镜像)
alimaven aliyunmaven http://maven.aliyun.com/mvn/view central jboss-public-repository-group central JBossPublicRepositoryGroup http://repository.jboss.org/nexus/content/groups/public ibiblio central HumanReadableNameforthisMirror. http://mirrors.ibiblio.org/pub/mirrors/maven2/ central MavenRepositorySwitchboard http://repo1.maven.org/maven2/ central repo2 central HumanReadableNameforthisMirror. http://repo2.maven.org/maven2/
配置profiles构建
jdk18 1.8 true 1.8 1.8 1.8
国内Maven镜像仓库值得收藏
alimaven aliyunmaven http://maven.aliyun.com/mvn/view central jboss-public-repository-group central JBossPublicRepositoryGroup http://repository.jboss.org/nexus/content/groups/public ibiblio central HumanReadableNameforthisMirror. http://mirrors.ibiblio.org/pub/mirrors/maven2/ central MavenRepositorySwitchboard http://repo1.maven.org/maven2/ central repo2 central HumanReadableNameforthisMirror. http://repo2.maven.org/maven2/
完整setting配置
D:\ProgramFiles\Develop\Portable\localRepository alimaven aliyunmaven http://maven.aliyun.com/mvn/view central jboss-public-repository-group central JBossPublicRepositoryGroup http://repository.jboss.org/nexus/content/groups/public ibiblio central HumanReadableNameforthisMirror. http://mirrors.ibiblio.org/pub/mirrors/maven2/ central MavenRepositorySwitchboard http://repo1.maven.org/maven2/ central repo2 central HumanReadableNameforthisMirror. http://repo2.maven.org/maven2/ jdk18 1.8 true 1.8 1.8 1.8
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持毛票票。
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:czq8825#qq.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。