Running mvn compile
does what you've seen - it compiles the source files to .class files (it will also any process resources defined in the project as well).
You can use another Maven command: mvn package
to create a jar file, then use that as a you would any other jar file. In Netbeans the simplest thing to do would be to copy the jar to your project and add it to the project's classpath.
The project you have compiled "adds object serialization capabilities on top of dispatch-json
", so you can define your own type that uses the library to serialise and deserialise objects to json by calling the in() and out() methods of serializer respectively.
The readme.txt in the github page you reference lists some examples of usage.