You are here

Module properties file

The module properties file is required by the module service to identify the module, and its details, when it is installed.

The file should be located in the directory extension_root/alfresco/module/module_name. Where extension_root is the root directory of the extension, and module_name is the name of the module.

The file itself contains the module id, version, title and description of the module. The following uses the records management module to give an example of a typical contents.

    # MyModule module properties
    module.aliases=myModule-123, my-module
    module.title=My Module
    module.description=This is my first Alfresco module
    # The following optional properties can be used to prevent the module from being added
    # to inappropriate versions of the WAR file.
    # The following describe dependencies on other modules
    # Depends on net.sf.myproject.module.SupportModuleA version 1.0 or later*
    # Depends on net.sf.myproject.module.SupportModuleB version 1.0 to 2.0
    # Depends on net.sf.myproject.module.SupportModuleC - any version* (required)
The module ID specified in this file will act as a unique identifier for this module. It is important that the module ID is globally unique so that it never clashes with other modules when it is installed. For example: org_alfresco_module_rm_share.
Note: Module IDs can contain a-z, A-Z, 0-9, dot, space, minus and underscore. Module renaming is supported using the alias mechanism.
module.aliases (optional)
When a module gets renamed, it is necessary to add the original name to the list of aliases. This ensures that the module tool and repository startup can correctly match the new name to one of the old names.
Attention: The module.aliases property can only be used in AMPs, not Simple Modules.
module.version (required)
The module version number specifies the current version of the module. This is taken into consideration when installing the module into a WAR. It will determine whether it is a new install or an update to an existing installation of a previous version. The version number must be made up of numeric values separated by dots. For example '2.1.56' is a valid version number, '2.3.4a' is not.
module.title (required)
The title of the module.
module.description (required)
The description of the module.
module.depends.* (optional)
When a module is installed, it might be a requirement that another module is installed. It might be a requirement that a specific version, set of versions or range of versions is present. The dependency has been met as long as the installed version of the dependency matches any of the ranges or versions give. Here are some examples:
# Any version of X must be installed
# Need to have versions 1.0, 1.5 or 2.0 of Y installed
module.depends.Y=1.0, 1.5, 2.0
# Need to have any version of Z in the range between 1.0 and 2.0 inclusive
# Need to have version any version of Z less than 1.0 installed
# Need to have any version of Z greater than or equal to 1.0 installed

The Records Management Share extension also provides another example:

# Alfresco Records Management Share Module                                                                                                            

# 28/02/2012 - Renamed                                                                                                                                         

module.title=Alfresco Record Management Share Extension
module.description=Alfresco Record Management Share Extension



Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.