#Example project for jersey rest api.
'Help' > 'Install New Software...'
http://download.eclipse.org/webtools/repository/mars
Use this URL to download the latest Web Tools Platform SDK
http://download.eclipse.org/technology/m2e/releases
Use this URL to download Maven integration for Eclipse
-
'Window' > 'Preferences...'
-
Expand the 'Maven' option and select 'Archetypes'
-
Click 'Add Remote Catalog...'
Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml
Description: Remote Access
This will allow you to access the Jersey Archetypes we will be using.
-
'File' > 'New' > 'Other...'
-
Expand the 'Maven' folder and select 'Maven Project' then click next
-
Leave the workspace location and working set screen as default and click next
-
Filter the archetype list by typing 'Jersey' in the filter box
-
Select artifact-id 'jersey-quickstart-grizzly2' and click next
-
Set group-id to be your root package (i.e. com.gallup.gethip)
-
Set artifact-id to be your project name (i.e. jersey-example)
-
Set package to be an extension of the group-id (i.e. com.gallup.gethip.jersey)
-
Click finish. You now have a Jersey project created!
This architype contains a Grizzly servlet that can be run immidiately.