The project discussed below can be found here on GitHub:
Both the above files are created via templates in the New File dialog and the default location suggested by the New File dialog puts these files into the same location where the "pom.xml" file is found, that is, the root of the Maven project.
After doing the above, notice the small yellow warning icon on the project icon in the Projects window:
Note: Notice how NetBeans IDE 8.1 shows "Java Dependencies" and "Bower Libraries" in the project view of Java EE Maven projects. That's a really handy feature, being able to see all your dependencies, from the back to the front, in one place, as well as the entry points provided by the RESTful Web Services.
If you're going to play with this specific example, make sure that your application server supports Java EE 7 and that you have started up the Sample database that comes with GlassFish and is shown in the Databases node in NetBeans IDE.