Could not find artifact javax.jdo:jdo2-api:jar:2.3-ec in central

maven 编译打包时报错:Could not find artifact javax.jdo:jdo2-api:jar:2.3-ec in central (http://repo1.maven.org/maven2)

有人说是网络不好某些包下载不下来,重新执行好几遍还是这样

看来是maven的中央库里没有这个包,google了一下,看到这个链接:

https://maven-repository.com/artifact/javax.jdo/jdo2-api/2.3-ec

打开Repository URL  < http://repo.spring.io/plugins-release/javax/jdo/jdo2-api/2.3-ec/ >

尼妹,明明是有的啊!

wget http://repo.spring.io/plugins-release/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom

和 http://repo.spring.io/plugins-release/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar

-O存放到 home目录下的 .m2/repository/javax/jdo/jdo2-api/2.3-ec/ 

再执行mvn打包,OK。

这说明maven有坑。



你可能感兴趣的:(Could not find artifact javax.jdo:jdo2-api:jar:2.3-ec in central)