...
Below is the annotated pom.xml file. It executes two maven phases: prepare-package and package. Although Maven executes the prepare-package phase before the package phase, the code for the prepare-package code appears after the prepare code in the pom.xml file. In the annotations, we discuss the code in the sequence in which it is executed rather than the sequence in which it appears.
Installer pom.xml file part
...
0
install-feature.sh script
As we described in the a previous section, the installation folder in CCSDK_FEATURE_DIR for a particular feature contains the zipped maven repository and an installation script for that feature and an installation script, shown here. 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.
Code Block | ||||
---|---|---|---|---|
| ||||
ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client} INSTALLERDIR=$(dirname $0) REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip if [ -f ${REPOZIP} ] then unzip -d ${ODL_HOME} ${REPOZIP} else echo "ERROR : repo zip ($REPOZIP) not found" exit 1 fi ${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories} ${ODL_KARAF_CLIENT} feature:install ${features.boot} |
Procedure to install CCSDK features prior to Casablanca
...
Installer pom.xml file part 1
Continuing with the pom.xml file in the installer module, we now discuss the first command executed in the "prepare-package" phase.