This module defines skeleton maven project (archetype) for developing new Java SE-based and Servlet-based examples for Jersey.
maven-archetype-plugin
updates your local archetype-catalog.xml
which is located in .m2
directory.mvn clean install
mvn archetype:generate -DarchetypeCatalog=local
maven provides you a set of your local installed maven archetypes, choose this one org.glassfish.jersey.archetypes:jersey-example-java8-webapp
fill in all input fields properly, e.g.
groupId: org.glassfish.jersey.examples (default value) artifactId: my-example version: Just use a release version - e.g. "2.20" package: Use org.glassfish.jersey.examples.my-example projectAuthor: Use "Name Surname (name.surname at mycompany.com)" projectDescription: "My New Example using Jersey." projectName: "My Jersey Example"