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/ ...
Get Maven: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.