The following sections describe the ways the plugin can support an erlang-otp projects application resource and upgrade file management. For further information about application resource and upgrade files see http://www.erlang.org/doc/man/app.html and http://www.erlang.org/doc/man/appup.html.
The plugin supports the management of application resource and application upgrade files by providing application packaging variables. These will be replaced by values on application packaging time. Provided application packaging variables currently include:
In case there's no application resource file found in the src/main/erlang folder the plugin will create one automatically. The values are based on the project configuration and the supported application packaging variables. The default would look like this and is suitable for library applications:
{application, ${ARTIFACT}, [{description, ${DESCRIPTION}}, {id, ${ID}}, {vsn, ${VERSION}}, {modules, ${MODULES}}, {maxT, infinity}, {registered, ${REGISTERED}}, {included_applications, []}, {applications, []}, {env, []}, {mod, undefined}, {start_phases, []}]}.
Will be performed on (erlang-otp) project packaging regardless whether the application resource file was generated or not. Checks include:
The following sections describe the ways the plugin can support an erlang-rel projects release and release upgrade file management. For further information about application resource and upgrade files see http://www.erlang.org/doc/man/rel.html and http://www.erlang.org/doc/man/relup.html.
The plugin supports the management of release and release upgrade files by providing release packaging variables. These will be replaced by values on release packaging time. Provided release packaging variables currently include:
In case there's no release file found in the src/main/erlang folder the plugin will create one automatically. The values are based on the project configuration and the supported release packaging variables. The default would look like this:
{release, {${ARTIFACT}, ${VERSION}}, {erts, ${ERTS}}, [{kernel, ${KERNEL}}, {stdlib, ${STDLIB}}] ++ ${APPLICATIONS}}.
The plugin will try to generate a release upgrade file for an erlang-rel project based on the information provided in the subsequentVersions and previousVersions variables in the pom. These specify a list of versions to upgrade from or to downgrade to. If these lists are not specified in the projects pom the the release script generation will be skipped.