O'Reilly logo

Maven Build Customization by Giacomo Veneri, Riccardo Giomi, Umberto Antonio Cicero, Roberto Baldi, Lorenzo Anardu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Maven Assembly Plugin

The Maven plugin generates a structure that fits our needs, but in some cases, we have to produce an output different from the common plugin structure; in such cases, the appropriate choice is Maven Assembly Plugin.

Fitting to environment

Our particular case of study has to face a deployment of batch application. In the specific batch application called BatchHandler, we have to perform read operations for data acquisition, produce output on files, and send files via FTP to be stored in other locations. In order to be deployed, our batch has to satisfy some specifications:

  • It must be a ZIP file
  • Once the ZIP file is unpacked, we must have a precise directory structure

To accomplish this specification without making strange operations ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required