Wicket Quick Start


Quick start will provide a ready-to-use project with jetty plugin configuration.

Tools and technologies used
Maven 2, wicket 1.5.9 and Eclipse.

Steps to create a wicket project
1) Use below command to create project structure/files.


mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.5.9 -DgroupId=com.javaassist -DartifactId=helloworld -DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false 

Note : Change "-DgroupId"(java package structure) and "-DartifactId"(application name) values as per your needs.


2) Eclipse configuration

I)Change directory into the project that you just created in above step. Now, run mvn eclipse:eclipse. This will set up the .project, .settings, and .classpath files that Eclipse requires.

II)Eclipse, choose “File” (menu), then “Import”, “Existing project”. Navigate to the folder where your project exists and let Eclipse import it. The classpath should be fully configured.

Note : Eclipse workspace should have the classpath variable M2_REPO set to point to the directory where local Maven repository exists.

3) Now you can see the project structure/files as below

4) Run the Jetty server using start.java.

5) Test the app using below url
http://localhost:8080/

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...