7. Creating Maven-based Skyway Projects

PROBLEM

How to create projects that can fully leverage Eclipse web development capabilities.

SOLUTION

Skyway Builder supports Eclipse-based projects and Maven-based projects. While in all cases the Skyway Builder Eclipse plugins are being used for code generation, Maven-based Skyway projects can leverage Maven capabilities including compiling, packaging, dependency management, and deployment.

The decision to use Maven can only be made at project creation.

HOW IT WORKS

Here are the steps for creating an Maven-based Skyway project:

Steps For Creating an Maven-based Skyway Project

  1. From the file menu select New Project.

  2. From the New Project Wizard, select Skyway Project. The Skyway Project option is located in the Skyway folder.

  3. From the New Skyway Project Wizard, specify a name for the project. Click Next.

  4. From the Folder Names panel specify the folder name for storing the models. The default models. Click Next.

  5. From the Artifact Category Mapping panel enable the "Use Maven to create projects for generated code" checkbox.

  6. Next configure the destination project for each artifact category. You can also configure the Maven archetype that will be used to create the destination project for each artifact category. Click Finish

Note: For Eclipse-based Skyway projects all artifact categories must point to the same destination project, and two projects will be created. One project is for storing the models, and the other project is the Eclipse dynamic web application that the Spring application generated from the models will be generated into.

The package name can be defined staticly or derived from a package name template. The package template can include several tokens that will be resolved during code generation. The ${project.name} token will be replaced with the project name.