Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

Geertjan is a DZone Zone Leader and has posted 421 posts at DZone. You can read more from them at their website. View Full User Profile

How to Start Learning Wicket with Maven & NetBeans IDE

04.29.2008
Email
Views: 4015
  • submit to reddit
The Wicket project's Quick Start is, conveniently, based on Maven. Why convenient? Because NetBeans IDE has great support for it. Here I show you how easy it is to get started with Wicket's Maven-driven Quick Start in NetBeans IDE 6.x.

First, install the Maven plugin from the Plugin Manager. Then read the Apache Wicket Quick Start. Notice that this is the command line that the Quick Start instructs you to work with:

mvn archetype:create        -DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.3.3
-DgroupId=com.mycompany
-DartifactId=myproject

OK, let's go. In the New Project wizard, select the Maven project type...

...then click Add and use the info from the command line to create a new archetype:

...and in the final panel fill in whatever you like...

...finally, click Finish, watch the interesting output in the Output window, and then note that you have an entire new Maven project, populated with the info from the Wicket repository:

At this point, right-click the project, choose Properties, and select a server in the Run panel. Then run the application and you're done. Then take a quick tour of Wicket and use all the other cool resources on the Wicket site!

 

AttachmentSize
wicket-maven-0.png42.71 KB
wicket-maven-1.png54.82 KB
wicket-maven-2.png47.96 KB
wicket-maven-3.png53.8 KB
Published at DZone with permission of its author, Geertjan Wielenga.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)