tree: d0903411566dfc0bb249e1d7c8a6830d783dc96e [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
archetypes/jersey-example-java8-webapp/README.MD

Jersey (Java8) WebApp Example Archetype.

This module defines skeleton maven project (archetype) for developing new Java SE-based and Servlet-based examples for Jersey.

Instructions

  • install this archetype into your local repository, maven-archetype-plugin updates your local archetype-catalog.xml which is located in .m2 directory.
mvn clean install
  • run generation your new project using:
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"
  • confirm the project generation and feel free to start coding!