How to setup Wicket Examples in Eclipse

时间:2023-03-08 19:59:13
How to setup Wicket Examples in Eclipse

Wicket examples is a good place to learn Apache Wicket by examples, and a must reference site for new or experienced Wicket’s developers. In this Wicket examples site, it almost contains all of the usage of the common wicket’s components.

In this guide, we show you how to setup the above Apache Wicket example site in your local development environment (Eclipse IDE).

Tools used :

  • Apache Wicket 1.4.17
  • Eclipse 3.6
  • Maven 3

1. Download Source Code

Download Apache Wicket 1.4.17 from http://wicket.apache.org/. The Wicket example code is packaged inside the “src” folder.

2. Review Directory

Extracts the downloaded Wicket zip file, review the directory structure. The folder “wicket-examples“, which inside the “$WICKET_PATH/src” folder is what you need.

How to setup Wicket Examples in Eclipse

3. Maven Build

Navigate to the “wicket-examples” folder , compile and build with Maven, and make it support Eclipse WTP features.

$WICKET_EXAMPLE_FILE_PATH> mvn eclipse:eclipse -Dwtpversion=2.0

P.S Maven will configure the project and download the project dependencies automatically.

4. Eclipse Project + WTP

Import the project into Eclipse IDE (you should know how