users@jersey.java.net

[Jersey] Re: Deploying on Jetty

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 24 May 2011 17:01:21 +0200

Hello,

yes, it is possible, see helloworld-webapp sample [1] and execute mvn
clean package jetty:run.

Jetty:run doesn't work out of the box, it must be configured, see pom
file of that sample.

Regards,
Pavel

[1]
http://download.java.net/maven/2/com/sun/jersey/samples/helloworld-webapp/1.7/helloworld-webapp-1.7-project.zip

On 5/24/11 4:56 PM, Dário Abdulrehman wrote:
> I would include some services in a VM but glassfish is very big and I
> would like to keep the VM as small as possible.
> Is it possible to deploy the web services on the Jetty web server?
>
> I tried to add jetty to the project dependencies and then running mvn
> jetty:run but I get a
> [ERROR] No plugin found for prefix 'jetty' in the current project and
> in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] ...
>
>
> Is it possible to deploy a Jersey web services on Jetty?
>
> Thanks.
>