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不知什么情况无法获取了Could not find artifact org.opencv:opencv:pom:4.5.2 in central (https://repo.maven.apache.org/maven2_第1张图片
Could not find artifact org.opencv:opencv:pom:4.5.2 in central (https://repo.maven.apache.org/maven2_第2张图片
需要手动安装opencv4.5.2

步骤如下:

  1. 下载opencv-4.5.2.jar opencv-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所在的路径

你可能感兴趣的:(opencv,人工智能,计算机视觉,java)