Chapter 7. Multimodule Enterprise Project
Introduction
In this chapter, we create a multimodule project that evolves
the examples from Chapters 5 and 6 into a project that uses the Spring
Framework and Hibernate to create both a simple web application and a
command-line utility to read data from the Yahoo! Weather feed. The
simple-weather
code developed in Chapter 4 will be combined with the
simple-webapp
project defined in Chapter 5. In the process of creating this multimodule project,
we’ll explore Maven and discuss the different ways it can be used to
create modular projects that encourage reuse.
Downloading This Chapter’s Example
The multimodule project developed in this example consists of modified versions of the projects developed in Chapters 4 and 5, and we are not using the Maven Archetype plugin to generate this multimodule project. We strongly recommend downloading a copy of the example code to use as a supplemental reference while reading the content in this chapter. Without the examples, you won’t be able to recreate this chapter’s example code. This chapter’s example project may be downloaded with the book’s example code at http://www.sonatype.com/book/mvn-examples-1.0.zip or http://www.sonatype.com/book/mvn-examples-1.0.tar.gz. Unzip this archive in any directory, and then go to the ch07/ directory. In the ch07/ directory, you will see a directory named simple-parent/ that contains the multimodule Maven project developed in this chapter. In the simple-parent/ project ...
Get Maven: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.