svn更新maven项目报错_在svn中导出的maven工程执行tomcat:run命令时的错误

使用JDK8、Tomcat8和Maven3.3.3时,从svn导出的maven项目运行遇到问题。尽管项目本身无误且其他同事能正常运行,但更换电脑后,执行`tomcat:run`命令报错,提示无法解析依赖。错误信息显示为连接中央仓库超时。尝试了各种maven命令后,错误意外地解决了,但原因未明。
摘要由CSDN通过智能技术生成

一、exception描述:

1、jdk版本8,tomcat版本8,maven版本3.3.3

2、在svn中导出的工程,工程本身并没有问题,其他同事都能够运行,

3、怀疑是maven版本问题,在之前的工作电脑上的maven是3.2.3,换了电脑之后maven是3.3.3,运行项               目就出错了,但是不知道具体原因。

二、exception栈中的错误信息

[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-

maven-plugin:2.1:run (default-cli) on project projectName:

Execution default-cli of goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:run

failed: Plugin org.apache.tomcat.maven:tomcat7-maven-

plugin:2.1 or one of its dependencies could not be resolved:

Could not transfer artifact org.apache.tomcat.embed:tomcat-

embed-core:jar:7.0.37 from/to central

(https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443

[repo.maven.apache.org/23.235.47.215]failed: Connection timed out:connect->[Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[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 read the following articles:

[ERROR] [Help 1]

http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

三、后来在网上找了很多文章,并没有和这个一样的错误,我就总是执行maven那几个常用命令,莫名其妙的好了。。。。。到现在还是不知道这是为什么。。。。。。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值