In a certain stage of webapp-development, there is the requirement to deploy your application to a “real” webserver. If you are using Maven for your build-management you probably use the provided jetty plugin. This plugin allows you to start your application without downloading and configuring a webserver on your own.

The difference between a webserver on the internet and a local machine is the accessibility and the need, to encrypt your sessions. This is normally done by providing a HTTPS-protocol access to your web-application.

Hubert Klein Ikkink has written a nice blog-post how this can be achieve with the jetty-maven plugin.

Click here for the blog-post

Innerhalb eines unserer Projekte lernen wir gerade die Vorteile von Maven kennen. Dies betrifft vor allem das dynamische Nachladen von benötigten Libraries und die Möglichkeiten, die man zum Deployen einer Anwendung hat.

Bei unserem Projekt handelt es sich einerseits um eine Tapestry 5 Anwendung. Diese lässt sich auf jedem beliebigen Server mit installiertem Maven über den Befehl

mvn jetty:run

starten.

Auf der anderen Seite haben wir dann noch eine einfache Java-Anwendung, die eine Verbindung über einen Socket aufbaut.

Als Einführung ins Thema Maven haben wir uns das folgende Buch gekauft:
Maven: A Developer’s Notebook (Developer’s Notebooks)

Zwar behandelt es eine etwas ältere Maven Version, es ist aber gut für die Grundlagen geeignet.