From the course: Java EE 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JSON-B project setup

JSON-B project setup - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

JSON-B project setup

- [Instructor] In this lesson, we're going to configure our JAX-RS project and our EJB project to use JSONB. In order to do that, we're going to have to include the JSONB API. So we can easily include dependencies within our projects using Maven. To enable Maven on your project, just right click on it, go to Configure and then Convert to Maven Project. This is going to add a pom.xml file to the project and if you click on the Dependencies tab, Maven allows us to easily manage the dependencies or different libraries that our application needs to use and we just need to enter a group ID of javax.json.bind and then for the artifact ID, we want to specify javax.json.bind-api and then we're going to be using version 1.0 of the API, so let's go ahead and add that. And then you're going to do the same thing for the EJB project. So I'll just add the Maven configuration. Now, if it pops up this screen, just click on Deselect…

Contents