javaCV Maven项目

时间:2015-06-08 14:12:56

标签: maven javacv

我从这里下载了javaCV项目

https://github.com/bytedeco/javacv

然后我尝试在Netbeans中导入它,但是我收到了以下错误

Failed to execute goal on project javacv: Could not resolve dependencies for project org.bytedeco:javacv:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: 
org.bytedeco:javacpp:jar:1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:opencv:jar:3.0.0-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:ffmpeg:jar:2.6.3-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:flycapture:jar:2.7.3.19-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:libdc1394:jar:2.2.3-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:libfreenect:jar:0.5.2-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:videoinput:jar:0.200-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:artoolkitplus:jar:2.3.1-1.0-SNAPSHOT, 
org.bytedeco.javacpp-presets:flandmark:jar:1.07-1.0-SNAPSHOT: 
Could not find artifact org.bytedeco:javacpp:jar:1.0-SNAPSHOT -> [Help 1]

我也尝试手动安装它,但是我得到了同样的错误。我该怎么做才能解决这个问题?感谢

1 个答案:

答案 0 :(得分:0)

根据http://search.maven.org/#search|ga|1|bytedeco,不存在1.0.-Snapshot的版本。

因此您必须将依赖项列表更改为旧版本:

  <dependency>
    <groupId>org.bytedeco</groupId>
    <artifactId>javacv</artifactId>
    <version>0.11</version>
  </dependency>

以及javacpp:

<dependency>
    <groupId>org.bytedeco</groupId>
    <artifactId>javacpp-presets</artifactId>
    <version>0.11</version>
</dependency>

我认为作者忘了发布“新版本”。