17.08.2016 Views

Apache Maven 3 Cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5<br />

Seam Forge is a <strong>Maven</strong> project which is publicly hosted on GitHub.com. You will need a Git<br />

client installed to "clone" (similar to svn checkout) the project on to your workstation.<br />

You will need <strong>Maven</strong> 3 and Java 6<br />

There are five steps for downloading, installing, and executing Seam Forge. They are as follows:<br />

1. The first step is to clone the project using a Git or Git client:<br />

$ git clone git://github.com/seam/forge.git seam-forge<br />

This will clone, checkout, download the Seam Forge sources on to a new folder<br />

created on your current working directory called seam-forge.<br />

2. Navigate into this folder:<br />

$ cd seam-forge<br />

3. Build/install Seam Forge:<br />

$ mvn install<br />

4. Once you see build success, navigate into the dist folder:<br />

$ cd dist<br />

5. Execute!:<br />

$ mvn exec:java<br />

How it works...<br />

A Seam Framework <strong>Maven</strong> web application works exactly like any typical <strong>Maven</strong> web<br />

application; it is compiled and tested, then artifacts are generated and made ready for<br />

deployment on an application server.<br />

Seam Framework artifacts are of course dependencies that are required during the compile<br />

and test phases of the project lifecycle.<br />

123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!