Open PhilAndrew opened 8 years ago
Well the missing dependency for orientdb-graphdb is:
[error] Failed to find package with (&(package=javax.annotation.meta)) for com.o rientechnologies.orientdb-core
Which means there's a dependency on javax.annotation.meta which wasn't listed in the POM metadata, so you'll need to find a maven dependency that has that package, a quick google says jsr305 is the jar you'll need to add.
You have to follow the same process for the other missing dependencies too, or add rewrite rules to ignore the packages which aren't actually required (could be for testing for example).
Thanks, I'm starting to get to understand this. The rewrite is useful.
I found that the easiest way for me to resolve dependency issues for situations which seem complicated is to first create a small SBT app which only uses the library which is the one I want to use which is a problem library.
Then my sample project I publish to local repo.
Then I import it using SBT and rewrite if necessary.
This is because its so complicated for me to work out the dependency issues,this is my lazy solution for which I have most success.
For example, I wanted to use Neo4J OGM in OSGi, it has a few problems, I created a sample app project here https://github.com/PhilAndrew/neo4j-ogm-osgi where I adapted its code and now it works in OSGi. In my project I import as SBT and rewrite if necessary to rewrite.
Why do I get failed to find package errors when I add:
"com.orientechnologies" % "orientdb-graphdb" % "2.2.8"
To my sbt project dependencies.
What can I do to fix the problem?
Errors as shown.
Full errors.