Maven新导入项目时出现错误Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.

来源:互联网 发布:下载淘宝网2015新版 编辑:程序博客网 时间:2024/06/07 23:46

导入新项目时出现类似的错误:

1. Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates 

 are forced. Original error: Could not transfer artifact commons-lang:commons-lang:jar:2.1 from/to central (https://repo.maven.apache.org/maven2): Connection reset

或者是这种:

2. Missing artifact com.oracle:ojdbc14:jar:10.2.0.2.0


右键Maven Dependencies,configure build path,发现提示的jar包有的是缺失的。右键项目,选Maven,更新项目即可


1 0
原创粉丝点击