An Alfresco Module Package (AMP) is a bundle of code, content model, content, and the directory structure that is used to distribute additional functionality for Content Services. Use the Module Management Tool (MMT) to install and manage AMP files. You can install an AMP in an Alfresco WAR using the MMT, or by using the apply_amps tool.
The MMT is available as a JAR file from the distribution zip (alfresco-content-services-distribution-xx.x.x.zip, where xx.x.x is the latest version), in the zip’s /bin directory. Place the /bin directory and its contents in the same location where you extracted the Content Services distribution zip; for example <installLocation>/bin.
When the repository is next started, the installed module configuration will be detected, and the repository will be bootstrapped to include the new module functionality and data.
We don’t recommended that you overwrite an existing file in an AMP, however it’s sometimes necessary. The MMT makes a backup copy of the updated file and stores it in the WAR. When a module is updated, and the old files are removed, this backup is restored prior to the installation of the new files. Problems can occur if multiple installed modules modify the same existing file. In these cases, a manual restore might be necessary, if recovery to an existing state is required.
Some application servers (notably Tomcat) don’t always fully clean up their temporary working files, and this can interfere with successful installation of an AMP file. To remedy this situation, it’s recommended that you delete (or move) the Tomcat work and temp directories while Tomcat is shut down.