November 15, 2012

A Better Maven POM for Wicket Archetypes

If you are new or just wants to try Apache Wicket there is a good Wicket Maven Archetype for that. You can find instruction for that at

But the generated pom.xml leafs room for improvement. A better pom would be

The differences I made are the following.

1. Downgrade the Jetty Maven Plugin to 7.5.0.v20110901

The new jetty plugin are much slower than the old one and you want miss anything important.

2. Add Wicket Datetime Dependency

Wicket provides a good datetime picker and I recommend that you use this.

3. Configure Jetty Maven Plugin for Autodeploy

The jetty plugin can automatically be configure to pick up any changes made within Eclipse and automatically redeploy your application. This is a great way to develop and I recommend it.

You also might want to mock any possible server facade class, which is located in your test directory. To enable that add your web test classes to jetty classpath.

No comments: