Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a best solution for hot deploy to Jetty?

I have a web application which is running on jetty. Continues builds are built on hudson. I would like to make a hot deploy on demand from hudson.

I found cargo plugin which should be able to do so but cargo's web doesn't show any complete example how to do it - for remote jetty server - may be I miss it?

What do you suggest? Do you have any other better solution?

thank you,

Vitek

like image 515
Vitek Avatar asked Feb 18 '09 12:02

Vitek


People also ask

How to deploy WAR to Jetty?

Deploying by Copying WAR The easiest way to deploy a web application to Jetty server is probably by copying the WAR file into the $JETTY_HOME/webapps directory. Jetty will scan its $JETTY_HOME/webapps directory at startup for web applications to deploy. Our new app will be deployed at /jetty-app context.

What does Mvn Jetty run do?

Using the Jetty Plugin enables you to quickly test your web application by skipping the last two steps. By default the Jetty Plugin scans target/classes for any changes in your Java sources and src/main/webapp for changes to your web sources.

What is Jetty maven plugin?

The Jetty Maven plugin is useful for rapid development and testing. You can add it to any webapp project that is structured according to the usual Maven defaults. The plugin can then periodically scan your project for changes and automatically redeploy the webapp if any are found.

How to run Jetty server?

Start Jetty standalone from the JAR file. To start Jetty, switch on the command line to the installation directory and issue the following command. To stop Jetty press Ctrl + C . To start Jetty as Windows service you can use Apache Procrun.


1 Answers

Cargo's documentation shows that it is possible to deploy to jetty via maven 2.

And here is the configuration.

I assume you tried this? What was the problem?

like image 58
kazanaki Avatar answered Sep 22 '22 20:09

kazanaki