0
点赞
收藏
分享

微信扫一扫

六祎-maven设置为自己的仓库地址

幺幺零 2022-08-26 阅读 53


第一步:下载maven,解压,配置自己的仓库地址

maven
-conf
-settings.xml
找到settings.xml,打开,找到第 55 行<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.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">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
<!-- 自己设置的仓库地址- 红色字体->
<localRepository>D:\Development tools\Java\.m2\repos</localRepository> <!-- interactiveMode
| This will determine whether maven prompts you when it needs input. If set to false,
| maven will use a sensible default value, perhaps based on some other setting, for
| the parameter in question.
|
| Default: true
<interactiveMode>true</interactiveMode>
-->

举报

相关推荐

0 条评论