1. 程式人生 > >Maven新匯入專案時出現錯誤Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.

Maven新匯入專案時出現錯誤Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.

匯入新專案時出現類似的錯誤:

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,更新專案即可