Could not find artifact org.opencv:opencv:pom:4.5.2 in central (https://repo.maven.apache.org/maven2

解决maven Could not find artifact org.opencv:opencv:pom:4.5.2 in central https://repo.maven.apache.org/maven2报错:
mvnrepository 中的opencv4.5.2不知什么情况无法获取了在这里插入图片描述
在这里插入图片描述
需要手动安装opencv4.5.2

进行如下操作:

  1. 下载opencv-4.5.2.jaropencv-4.5.2.jar–百度网盘提取码:7af3
  2. 创建或打开项目
  3. 以管理员身份运行cmd.exe,cd到上一步的工程目录下
  4. 运行 mvn install:install-file -Dfile=C:\Users\k1315\Desktop\opencv-4.5.2.jar -DgroupId=org.opencv -DartifactId=opencv -Dversion=4.5.2 -Dpackaging=Jar
    其中C:\Users\k1315\Desktop\opencv-4.5.2.jar改为自己opencv-4.5.2.jar所在的路径

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
xiaoxingxing的头像xiaoxingxing管理团队
上一篇 2022年3月16日 下午7:02
下一篇 2022年3月16日 下午7:18

相关推荐