Summary

This chapter covered the common procedures to create code, artifacts, additional documentation, and packages in order to create maintainable code in the production environment.

We discussed the following topics in detail:

  • How to build different artifacts according to a given profile. Profiles are great tools that can change the final package according to the environment settings. On big projects, it is common to change the security policy or database JNDI name in order to fit the destination environment (for example, development, preproduction, test, and production).
  • How to change the web.xml file to accomplish operations.
  • How to produce a proof package, including additional resources (for example, for a batch) required for correct component execution.
  • How to produce a simple site hosting the Javadoc and project's information. Documentation is a boring activity as it's normally detached from the code.
  • How to produce a minimalistic site reporting Javadoc, dependencies, and generic information about SCM or CI.

In the following chapter, we will see how to exploit Maven's features to exercise the Continuous Integration and Delivery pattern through integration with some state-of-the-art open source tools.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset