If you want to stay recent but don't want to build yourself, you can use the snapshots generated by our bamboo server, which are available at http://wicketstuff.org/maven/repository/.

Building Wicket from source

Building Wicket from Source

We use Maven 2 as our build system.

How to build Wicket 1.4

(Based on http://wicket.apache.org/building-from-svn.html.)

Before you start

Ensure that you're building with JDK1.5. (As I understand it, JDK 1.6 will build correctly but some of the tests fail as the test results verification doesn't allow for changes in Collection orderings.)

The build

Usage

For further instructions see the section "Using your own built artifacts" on http://wicket.apache.org/building-from-svn.html.

How to build Wicket 1.3

(Based on http://wicket.apache.org/building-from-svn.html.)

Before you start

If you want to ensure that your Wicket version is built using JDK-1.4 and fully compatible with that Java version, you will need to build it with a Java 1.4 compiler and runtime library. Maven is set up so that it will only build the JDK-1.4 projects when it is started using a 1.4 Java version. Note that to build the full set of examples and annotations will require a Java 1.5 compiler.

The build

Usage

For further instructions see the section "Using your own built artifacts" on http://wicket.apache.org/building-from-svn.html.

How to build Wicket 1.2

Complete instructions can be found at wicket-parent/README.TXT in branch 1.2.x

How to build with Maven 1 (up to Wicket 1.1)

Here's a list of commands used often for building wicket:

Misc notes

Missing Libraries

Occasionally, especially when building the examples from SVN, you will find that several libraries are not available from public sites like Ibiblio or one of its mirrors.

The fact that those libraries are not available for download by maven, comes from either two issues:

Either way, you need a way to get to those files. For both types of dependencies, there is only one solution:

YOU NEED TO DOWNLOAD THEM YOURSELF

After that, find the jar-file in the distribution that you need, rename it to contain the version of the product, and copy it into your local repository. From then on, you can use the dependency in all your projects, including the wicket examples.

For maven 2 you install a downloaded file to your repository with the following:
mvn install:install-file -Dfile=<file.jar> -DgroupId=<groupid> -DartifactId=<artifact> -Dversion=<version> -Dpackaging=jar -DgeneratePom=true

Example: java mail api

The Java mail api is not freely distributable. You will have a hard time finding a project distributing the javamail.jar file publicly without written consent of uncle Sun.

  1. Download the API Sun, don't forget to read the license agreement. You will see why the library is not on Ibiblio (erhm... the library is there, but AFAIK this is not supposed to be).
  2. Unzip the file and rename the necessary jar files to include the appropiate version numbers (otherwise, why use maven?)
  3. copy the files to your local repository (usually located under your home directory, C:\Documents and Settings\username\.maven\repository in a directory using a clear name (javamail comes to mind) and put the jars into the jars subdirectory, mimicking the repository layout.

Maven Gotchas