`

mvn help:system报错

阅读更多
mvn help:system最后出错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.1.1:
system (default-cli) on project standalone-pom: Execution default-cli of goal or
g.apache.maven.plugins:maven-help-plugin:2.1.1:system failed: Plugin org.apache.
maven.plugins:maven-help-plugin:2.1.1 or one of its dependencies could not be re
solved: Could not transfer artifact org.apache.maven.plugin-tools:maven-plugin-t
ools-api:jar:2.4.3 from/to central (http://repo1.maven.org/maven2): Error transf
erring file: Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException


解决:设置HTTP代理
编辑~/.m2/settings.xml文件添加代理配置如下:

<settings>
… 
<proxies>

    <proxy>

      <id>my-proxy</id>

      <active>true</active>

      <protocol>http</protocol>

      <host>本机IP</host>

      <port>80</port>

      <!--

      <username>***</username>

      <password>***</password>

      <nonProxyHosts>repository.mycom.com|*.google.com</nonProxyHosts>

      -->

    </proxy>

  </proxies>
  …
</settings>
分享到:
评论

相关推荐

    mvn install:install-file -Dfile

    mvn install单独jar到仓库使用方法举例

    settings.xml

    很多人配置maven文件出错,执行mvn -v没问题,但是执行mvn help:system报错,最终解决办法就是用一个配置好的替换就行,记得改一下本地仓库路径&lt;localRepository&gt;E:\maven\repository,改成你的本地仓库路径,然后再...

    maven更新本地私服报错

    更新本地仓库命令 mvn help:system 回车如图是成功: 失败报错如下: Failed to execute goal org.apache.maven.plugins:maven-help-plugin:3.1.0:system &#40;default-cli&#41; on project standalone-pom: ...

    MVN常用命令.docx

     mvn archetype:create  -DgroupId=packageName  -DartifactId=projectName  2. 创建Maven的Web项目:   mvn archetype:create  -DgroupId=packageName   -DartifactId=webappName  -...

    mapreduce:映射学习自我

    mapreduce创建代码项目mvn原型:generate -DarchetypeGroupId = org.apache.maven.archetypes -DgroupId = org.conan.mymahout -DartifactId = myPro -DpackageName = org.conan.mymahout -Dversion = 1.0-SNAPSHOT ...

    jar-jconn3,ojdbc14-10.2.0.2.0,sigar-dist-1.6.3.82,sqljdbc4-4.0.0

    mvn install:install-file -DgroupId=org.hyperic -DartifactId=sigar-dist -Dversion=1.6.3.82 -Dpackaging=jar -Dfile=C:\Users\XXXXX\Desktop\sigar-dist-1.6.3.82.zip mvn install:install-file -DgroupId=org....

    DM-jar.zip,达蒙jar包含 17.16.15.14

    mvn install:install-file -Dfile=D:\xxxx\Dm7JdbcDriver15.jar -DgroupId=com.dm -DartifactId=dmJDBC -Dversion=7.6.15 -Dpackaging=jar mvn install:install-file -Dfile=D:\xxxx\Dm7JdbcDriver16.jar -...

    jasperreports mvn的依赖包olap4j-0.9.7.309-JS-3

    下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...

    ckfinder2.3.rar

    ckfinder Jar包,版本2.3,...mvn install:install-file -Dfile=D:\ckfinder2.3\ckfinderplugin-imageresize-2.3.jar -DgroupId=com.ckfinder -DartifactId=ckfinderplugin-imageresize -Dversion=2.3 -Dpackaging=jar

    Maven常用命令

    mvn archetype:create :创建 Maven 项目 mvn compile :编译源代码 mvn test-compile :编译测试代码 mvn test : 运行应用程序中的单元测试 mvn site : 生成项目相关信息的网站 mvn clean :清除目标目录中的生成...

    Maven的Dependency详解

    mvn install:install-file -D groupId=org.zenika.widget -D artifactId=gwt-datepicker -D version=r29 -D packaging=jar -D file=C:\gwt-datepicker-r29.jar 命令参数详解: mvn install:install-file: maven 安装...

    olap4j-0.9.7.309-JS-3.jar包.rar

    下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...

    WePay-Java-SDK:用于使用WePay开发的绝佳Java SDK

    WePay Java SDK 该API实现了WePay API的v2。... mvn release:perform mvn clean deploy; mvn release:clean; mvn release:prepare; mvn release:perform如何使用首先,熟悉其API的工作方式(请参见上面

    Maven2 来完成Struts2.0项目的打包实例

    mvn install:install-file -D groupId=org.zenika.widget -D artifactId=gwt-datepicker -D version=r29 -D packaging=jar -D file=C:\gwt-datepicker-r29.jar 命令参数详解: mvn install:install-file: maven 安装...

    Maven命令整合到一起

    mvn clean install compile -Dmaven.test.skip=true -fn mvn eclipse:clean mvn eclipse:eclipse mvn eclipse:myeclipse mvn clean install compile -Dmaven.test.skip=true -fn mvn install compile -Dmaven.test....

    Maven2_Struts2.0打包实例源码

    * 然后建一个Ecllipse项目:my-webapp&gt;mvn eclipse:eclipse * 先写jsp文件 和 web.xml文件 * 接着在src/main/java下写自已的java class文件 * 写pom.xml方件,最关键是添加dependencies * mvn package打包 * ...

    基于微服务架构实现的智能招聘系统(可用于毕业设计)

    docker部署:mvn docker:build & java -jar 物理机部署:mvn install & java -jar 技术栈 Spring-Boot Spring-Cloud Spring-Cloud-Gateway Spring-Cloud-Sleuth(对业务侵入性较大,建议替换到 Skywalking ) Sentinel...

    maven+jmock

    NULL 博文链接:https://oywl2008.iteye.com/blog/1391514

    aagil:AAGIL-AssociaçãoParaense de Aggressive Inline

    敏捷 积极内联协会(AssociaçãoParaense de Aggressive Inline) 清醒 。 该项目是从“ wildfly-jakartaee-webapp-archetype”原型创建的。 JAX-RS 温泉 安装步骤: ... 运行:“ mvn wildfly:undepoy”

    comfirm-perf:使用rabbitmq确认基准测试

    确认性能 使用rabbitmq确认基准测试。 用法 ###1。 设置配置。 $ cd comfirm-perf $ vim src/main/java/MQConfig.java $ mvn 干净编译 ...$ mvn exec:java -Dexec.mainClass="AsyncConfirmSender

Global site tag (gtag.js) - Google Analytics