...
Below is the annotated pom.xml file. It executes two , which executes three maven phases in sequence: validate, prepare-package and package. Although Maven executes the prepare-package phase before the package phaseHowever, the code for the prepare-package code appears after the prepare code in the pom.xml file. In the annotationscommands in the code do not appear in the sequence in which they are executed. For clarity, we discuss the code commands in the sequence in which it is executed rather than the sequence in which it appearsare executed.
Installer pom.xml file part 0
...
As we described in a previous section, the installation folder for a particular feature contains the zipped maven repository and an installation script for that feature. The script is below, and as you can see, it references the <features.respositories> and <features.boot> properties in commands sent to the karaf client.
...
Continuing with the pom.xml file in the installer module, we now discuss the command first command executed in the "prepare-packagevalidate" phase.
Installer pom.xml file part 2
Now the command executed in the "prepare-package" phase.
Installer pom.xml part 3
Parts 1 and 2 have copied all of the necessary maven repositories and scripts into the correct folder structure and with the correct parameter values. The pom.xml file now zips them up.