Maven Dependency with Netbeans 8 doesn't construct correct run classpath


#1

I’m trying the HelloWorld file, and it fails to run
because
Exception in thread “main” java.lang.NoClassDefFoundError: org/codehaus/jettison/json/JSONException

Looking at the IDE’s classpath for the HelloWorld class and comparing it with the explicit path in the tutorial, I see that jettison1.1.jar seems to be missing.

Does anyone know how to get this jar to be included in the CP? All the other ones seem to be there.


#2

Looking at the dependencies, it’s probably because the couchbase-client-1.4.4 depends on jettison 1.1 but my project includes jettison-1.3.3 already. How do I resolve this