Jersey package is available on GlassFish V3 Prelude update center, which is easily accessible from
GlassFish admin console. After you start your GlassFish instance, the default location for the admin console is http://localhost:4848/
You will just click on the
Available Add-Ons button. Then the following table should appear:
In order for changes to take effect, you will now need to restart your GlassFish instance.
Besides Jersey 1.0 modules, the package will also install some additional samples
and docs. Check your
$AS_HOME/jersey/README.html for further details.
The important thing is, that:
And indeed, if you go to
mvn clean package
you will see, that the resulting
target/helloworld-webapp.war has only about 6kB!