Migrating Couchbase to MongoDB: Creating a Maven Project

We shall use a Maven project to create Couchbase documents and subsequently migrate the Couchbase documents to MongoDB. Next, create a Maven project in Eclipse.

  1. Select File New Other.
  2. In the New window, select Maven Maven Project and click on Next as shown in Figure 7-2.

  1. In the New Maven Project wizard select the “Create a simple project” check box and the “Use default Workspace location” check box, and click on Next as shown in Figure 7-3.

  1. To create the Maven project, specify the following and click on Finish as shown in Figure 7-4.
  • Group Id: com.mongodb.migration
  • Artifact Id: CouchbaseToMongoDB
  • Version: 1.0.0
  • Packaging: jar
  • Name: CouchbaseToMongoDB

A Maven project gets added to the Package Explorer in Eclipse as shown in Figure 7-5.

Source: Vohra Deepak (2015), Pro MongoDB™ Development, Apress; 1st ed. edition.

Leave a Reply

Your email address will not be published. Required fields are marked *