Maven setting配置镜像仓库的方法步骤

网友投稿 397 2023-01-17


Maven setting配置镜像仓库的方法步骤

1.配置IDE构建的Maven存放目录(解压目录)

2.配置IDE的User setting file路径,修改setting配置文件

配置本地仓库

E:\java\Maven

配置mirrors远程镜像(一般配置一到两个镜像)

alimaven

aliyun maven

http://maven.aliyun.com/mvn/view

central

jboss-public-repository-group

central

JBoss Public Repository Group

http://repository.jboss.org/nexus/content/groups/public

ibiblio

central

Human Readable Name for this Mirror.

http://mirrors.ibiblio.org/pub/mirrors/maven2/

central

Maven Repository Switchboard

http://repo1.maven.org/maven2/

central

repo2

central

Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/

配置profiles构建

jdk18

1.8

true

1.8

1.8

1.8

国内Maven镜像仓库值得收藏

alimaven

aliyun maven

http://maven.aliyun.com/mvn/view

central

jboss-public-repository-group

central

JBoss Public Repository Group

http://repository.jboss.org/nexus/content/groups/public

ibiblio

central

Human Readable Name for this Mirror.

http://mirrors.ibiblio.org/pub/mirrors/maven2/

central

Maven Repository Switchboard

http://repo1.maven.org/maven2/

central

repo2

central

Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/

完整setting配置

xmlns:xsi="http://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">

D:\Program Files\Develop\Portable\localRepository

alimaven

aliyun maven

http://maven.aliyun.com/mvn/view

central

jboss-public-repository-group

central

JBoss Public Repository Group

http://repository.jboss.org/nexus/content/groups/public

ibiblio

central

Human Readable Name for this Mirror.

http://mirrors.ibiblio.org/pub/mirrors/maven2/

central

Maven Repository Switchboard

http://repo1.maven.org/maven2/

central

repo2

central

Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/

jdk18

1.8

true

1.8

1.8

1.8

xmlns:xsi="http://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">

D:\Program Files\Develop\Portable\localRepository

alimaven

aliyun maven

http://maven.aliyun.com/mvn/view

central

jboss-public-repository-group

central

JBoss Public Repository Group

http://repository.jboss.org/nexus/content/groups/public

ibiblio

central

Human Readable Name for this Mirror.

http://mirrors.ibiblio.org/pub/mirrors/maven2/

central

Maven Repository Switchboard

http://repo1.maven.org/maven2/

central

repo2

central

Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/

jdk18

1.8

true

1.8

1.8

1.8


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:关于批量post测试的信息
下一篇:协同设计研发管理平台(协同设计平台系统)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~