To create a JAX-RS application, perform the following steps:
- Launch the NetBeans IDE.
- In the main toolbar, navigate to File | New Project.
- On the New Project dialog screen, navigate to Maven | Web Application for building the RESTful web service. Proceed to the next screen by clicking on the Next button.
- In the Name and Location screen, enter Project Name, Project Location (for storing the source), Group Id, Version (for the Maven project), and Package (for the Java source files), as follows:
- Project Name: rest-chapter3-service
- Group Id: com.packtpub
- Package: com.packtpub.rest.ch3.service
Refer to the following screenshot for the values used for this example: