Error trying to compile Kurento Java tutorial [maven dependency resolution] [duplicate]

拜拜、爱过 提交于 2019-12-06 11:31:59

问题


After trying the following as specified on the kurento website,

git clone https://github.com/Kurento/kurento-tutorial-java.git
cd kurento-tutorial-java/kurento-one2one-call-advanced
mvn compile exec:java

I get an error like :

Failed to execute goal on project kurento-client: Could not resolve dependencies for project org.kurento:kurento-client:jar:6.1.1-SNAPSHOT: The following artifacts could not be resolved: org.kurento:kurento-jsonrpc-client:jar:6.1.1-SNAPSHOT, org.kurento:kurento-jsonrpc-server:jar:6.1.1-SNAPSHOT, org.kurento:kms-api-core:jar:6.1.1-SNAPSHOT, org.kurento:kms-api-elements:jar:6.1.1-SNAPSHOT, org.kurento:kms-api-filters:jar:6.1.1-SNAPSHOT: Could not find artifact org.kurento:kurento-jsonrpc-client:jar:6.1.1-SNAPSHOT ->

How best can i resolve such a dependency issue ?


回答1:


You have checked out the development version of the tutorials, 6.1.1-SNAPSHOT, which depends on other development versions of kurento artifacts. Those artifacts are not published in maven central, so you have three options here

  • Check out kurento-java and all related projects, such as kurento-module-creator and a bunch more. You can pull the thread from the pom, they are about 5 projects. You'll have to compile and install all of them in your local .m2 repository
  • Use our internal archiva repository
  • Checkout a tag containing a release version (i.e. git co 6.1.0)

In any case, the version of the tutorials should match the version of your KMS, so if you are using a development version of KMS, please use the development version of the tutorials. But if you are using a stable version of KMS, you should be using the matching release version of the tutorials.

You can find more info on how to work with development versions here




回答2:


Try checking out Kurento Java and run mvn install on that first. That should place those missing jars in your maven repo, so those dependencies can then be found when you compile the tutorial.



来源:https://stackoverflow.com/questions/32729319/error-trying-to-compile-kurento-java-tutorial-maven-dependency-resolution

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!