In this example here we'll use the
NetBeans IDE, but of
course any other will work as well. After installing the IDE, go
to File -> New Project, select
Maven and Java
Application. Give it a name (like "examples") and
change the location to a directory where you want to place the
files. We'll use the com.couchbase namespace,
but you can use your own if you like (just make sure to change
it later in the source files when you copy them).
Now that you've created your project, it's time to add the
Couchbase Maven repository. The easiest way to do this is to go
to Window -> Services, spot the
Maven Repositories tree, right click on it
and click Add Repository. Use the following
settings (or modify the directly):
ID: couchbase
Name: Couchbase Maven Repository
URL: http://files.couchbase.com/maven2/
Jump back to your new project and right click on
Dependencies, and then Add
Dependency. For now, we only need to add the Couchbase
SDK itself, because the transitive dependencies will be fetched
automatically. Use the following settings:
Group ID: couchbase
Artifact ID: couchbase-client
Version: 1.1.7
Now all dependencies are in place and we can move forward to our first application with Couchbase!