Cargo Jetty Documentation for remote deployment


It seems there is no clear documentation on how to set up Cargo with Jetty for remote (hot) deployment using the maven2 plugin.

In particular, I saw no place telling me to download and set-up 'cargo-jetty-deployer.war' on my remote server, nor did I find a place to download it aside from googling to get it from a maven repo. Besides that, setting the proper hostname in the doc isn't mentioned in any of the examples (they all seem to leave it out and use localhost? not my idea of remote...). There is also no information on how to set up the user expected for cargo.remote.username/password – it would be good if it said to add it to Jetty's file on the remote host with the role level 'manager' (at least the role name should be mentioned.)

Being absolutely new to configuring Cargo and Jetty, this took me several hours to figure out by trifling through old mailing list posts, JIRA issues and going as far as to read some of the source code.

Here is my example solution:

And in jetty's $JETTY_HOME/etc/ file:
user: password,manager
(note that there are several ways to securely store that password in the file, mentioned on Jetty's website)

It would be good if this information was available on the Cargo webpage, along with a simple run-through of the commands:
mvn war:war (I don't believe cargo does this for me, and I have no idea how to make it, but it would be nice if it did)
mvn cargo:deploy (or mvn cargo:redeploy)

Summary of info to be added:
+ link to cargo-jetty-deployer.war to be deployed manually on Jetty server
+ example of working plugin configuration with non-localhost hostname
+ note of user being created for Jetty on remote server with role manager
+ a typical command sequence (mvn war:war, mvn cargo:deploy)


Savas Ali Tokmen


S. Ali Tokmen


Fix versions