17.08.2016 Views

Apache Maven 3 Cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4<br />

2. The next step is to configure the site descriptor to customize the <strong>Maven</strong> project site.<br />

Here’s an example of the site descriptor:<br />

<br />

<br />

...<br />

...<br />

...<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

A quick look and it’s easy to figure out that the site descriptor defines the upper-left<br />

banner and navigation menus for the site.<br />

The site descriptor goes in the folder /src/site and is<br />

conventionally named site.xml.<br />

Your project’s site structure should look like this:<br />

+- src/<br />

+- site/<br />

+- apt/<br />

| +- index.apt<br />

|<br />

+- xdoc/<br />

| +- other.xml<br />

|<br />

+- fml/<br />

| +- general.fml<br />

| +- faq.fml<br />

|<br />

+- site.xml<br />

3. Once you have a project site that is ready to be served to the intended audience<br />

(developers and user community), the site plugin’s deploy goal can be used to<br />

deploy a number of protocols including FTP, SFTP, DAV, and SCP.<br />

Here’s an example of configuring the remote server:<br />

<br />

...<br />

<br />

<br />

75

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

Saved successfully!

Ooh no, something went wrong!