Get ZK Up and Running with MVVM

Start a New Project

The following 2 sections will guide you on how to quickly create a new project with maven and m2e, an eclipse plugin for maven and run the project with jetty. For those readers who don't use Maven, please refer to ZK Installation Guide/Quick Start. If you want to know how to build the application with ZK first, please skip these two sections and start from Declaring Domain Class.

Maven

Create a new project with maven command is quick and doesn't need any IDE. We assume readers have basic understandings for maven, so we won't cover maven concepts here. If you are unfamiliar with maven, please take some time to read tutorials, like Maven Tutorial or Maven in 5 Minutes before commencing.

The archetype is a maven project template tool. It can help you quickly create a project with predefined configurations and dependencies. You can use the command below to generate a project with ZK provided archetypes:

mvn archetype:generate -DarchetypeCatalog=http://mavensync.zkoss.org/maven2/

Then follow the instructions described in Use the command line version of Maven to create a project to complete the creation and run the application.

Eclipse M2E Plugin

If you are using eclipse 4.3 (Kepler) - Eclipse IDE for Java EE Developers, you can skip this section for this plugin is already bundled with that version of package.

You need to install Eclipse and m2e plugin and setup the maven catalog, please follow the instructions described here ZK Installation Guide/Quick Start/Create and Run Your First ZK Application with Eclipse and Maven#Prepare Eclipse.

Then you can create a new project with ZK archetype and run it in eclipse, please refer to Create a Hello World Application with ZK Maven Archetype.