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 3<br />

Getting ready<br />

To set up team information in a POM, make sure you have a <strong>Maven</strong> project and have write<br />

permissions to this file. The team information setup consists of:<br />

ff<br />

ff<br />

ff<br />

ff<br />

Licenses<br />

Organization<br />

Developers<br />

Contributors<br />

Make sure you have all this team meta information available before we proceed.<br />

How to do it...<br />

License information is entered in the POM file in the following structure:<br />

<br />

<br />

...<br />

...<br />

...<br />

...<br />

...<br />

<br />

<br />

The licensing information can include the name, description, URL, and inception year along<br />

with additional comments.<br />

Adding license information inside the POM is important because it is likely that the license<br />

purchased by a business would be a team license and individuals in the team would need this<br />

information to get started. While teams can share this information on wikis and mailing lists, it<br />

makes sense that the project POM file contains this information. After all, the underlying idea<br />

of the POM file is that it contains all requisite information for that particular project and all you<br />

should ever need is the source code, POM file, and an <strong>Apache</strong> <strong>Maven</strong> instance to get started.<br />

Organization information can be set up in the following format:<br />

<br />

...<br />

...<br />

<br />

61

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

Saved successfully!

Ooh no, something went wrong!