栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

无法将工件org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1从中央传输到中央(http://repo1.maven.org/maven2)

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

无法将工件org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1从中央传输到中央(http://repo1.maven.org/maven2)

通过使用以下内容简化操作

settings.xml

<?xml version="1.0" encoding="UTF-8"?><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"> <proxies>    <proxy>      <id>myproxy</id>      <active>true</active>      <protocol>http</protocol>      <username>user</username>  <!-- Put your username here -->      <password>pass</password>  <!-- Put your password here -->      <host>123.45.6.78</host>   <!-- Put the IP address of your proxy server here -->      <port>80</port> <!-- Put your proxy server's port number here -->      <nonProxyHosts>local.net|some.host.com</nonProxyHosts> <!-- Do not use this setting unless you know what you're doing. -->    </proxy>      </proxies> </settings>

在Linux / Unix下,将其放在下

~/.m2/settings.xml
。在Windows下,将其放在
c:documents andsettingsyouruser.m2settings.xml
或下
c:usersyouruser.m2settings.xml

除非您真的知道它们的用途,否则不需要

<mirrors/>
<profiles/>
<settings/>
部分。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/449518.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号