maven项目下载ojdbc报错

报错:

[ERROR] Failed to execute goal on project : Could not resolve dependencies for project com.travelMS_SSM:travelMS_SSM_domain:jar:1.0-SNAPSHOT: Failure to find com.oracle:ojdbc14:jar:10.2.0.1.0 in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced -> [Help 1]

解决办法:手动将jar包导入maven本地仓库

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.1.0 -Dpackaging=jar -Dfile=D:\JavaEE\JavaEE\tools\Jar\ojdbc14-10.2.0.1.0.jar  (后面是本地jar包位置)

你可能感兴趣的:(Java)