Before you start
The Quick Start Wizard uses Apache Maven to make it really fast to get started. You should have Maven installed and working before you can use the Quick Start wizard.
5 small steps to a web application
Use the following steps to quickly generate a project to get you started:
- Fill in the Maven coordinates for your project in the wizard and select the appropriate Wicket version
- Copy the generated commandline to your clipboard and paste it in a terminal (or a DOS box)
- Open the project in your IDE of choice
- Start the
Startclass in the src/test/java folder
- Open your browser to http://localhost:8080
And you’re done!
Quick Start Wizard
Fill in your project details in the wizard below and copy the generated command line to your clipboard.
With the generated command line on your clipboard open up a terminal window (or DOS box) and navigate to where you want the project to be generated (e.g. for Eclipse users this would be your workspace folder). Paste the command line into your terminal window and press «enter» to execute the command.
You can create your quickstart interactively too with the following Maven command:
mvn archetype:generate -DarchetypeCatalog=http://wicket.apache.org
Result of the Maven command
Executing the Maven command line will result the following directory structure:
.\myproject | pom.xml | \---src +---main | +---java | | \---com | | \---mycompany | | HomePage.html | | HomePage.java | | WicketApplication.java | | | +---resources | | log4j.properties | | | \---webapp | \---WEB-INF | web.xml | \---test \---java \---com \---mycompany Start.java
It might be different depending on your settings (and version of Wicket), but this is basically the standard layout for web projects.
Import the Quick Start in your IDE
The Wicket Quick Start uses Apache Maven to make it really fast to get started. You should have Maven installed and working before you can use the Quick Start wizard.
For Eclipse you should generate the Quick Start project within your workspace folder. You also need to ensure that you have m2eclipse installed in order to import the project. To import the project you select “Import existing project” from the File menu, and select the folder of your generated Quick Start project.
IntelliJ IDEA has native support for Maven projects. You just point the open project dialog to the place where you generated the Quick Start project and open the pom.xml file. IDEA will then open the project as any other Java project.
Netbeans has native support for Maven projects. You just point the open project dialog to the place where you generated the Quick Start project and open the pom.xml file. Netbeans will then open the project as any other Java project.