Goals available for this plugin:
Goal | Report? | Description |
---|---|---|
erlang:compile | No | This Mojo compiles the projects erlang sources and
SNMP files. |
erlang:copy-resources | No | This |
erlang:copy-test-resources | No | This |
erlang:coverage | Yes | Generates a test coverage report with: project summary, showing the number of functions, clauses executable lines and their test coverage percentage. A module list with individual coverage reports and an extensive source code report, with lines annotated in red or green, showing the exact coverage. |
erlang:dialyzer | No | This The |
erlang:dialyzer-release | No | This |
erlang:doc | Yes | This The output will be put into
BUG It is known that BUG It is known that |
erlang:package | No | This Besides that this
In case there is no application resouce file specified the
{application, ${ARTIFACT}, [{description, ${DESCRIPTION}}, {id, ${ID}}, {vsn, ${VERSION}}, {modules, ${MODULES}}, {maxT, infinity}, {registered, ${REGISTERED}}, {included_applications, []}, {applications, []}, {env, []}, {mod, undefined}, {start_phases, []}]}. The resulting application resource file as well as the application upgrade file will be checked for plausability regardless if generated or not. This is done by checking the application version against the project version, checking the application modules against the found compiled modules as well as checking the application's start module. |
erlang:package-release | No | This The build can be customized by providing additional options
through the |
erlang:prepare-release | No | This The builds can be customized by passing user options through the
In case there is no release file specified the {release, {${ARTIFACT}, ${VERSION}}, {erts, ${ERTS}}, [{kernel, ${KERNEL}}, {stdlib, ${STDLIB}}] ++ ${APPLICATIONS}}. The resulting release file will be checked for plausability regardless if generated or not. This is done by checking the release version against the project version and checking all dependency versions against the application versions in the release file. In order to create the release downgrade/upgrade script the
TODO The generation of relup files has not yet been tested. |
erlang:run | No | This mvn erlang:run BUG It is known that control characters cannot be used in the interactive shell. TODO Running release projects is currently not supported, but could be useful to be implemented in the future. |
erlang:setup | No | Utility goal that will setup a new Erlang/OTP Maven project, creating the basic resources and folders required, from a best practice point of view. This will typically replaces the functionality given by a Maven archetype, checking and creating any missing resource:
|
erlang:test | No |
This The user can also choose to skip testing by specifying
|
erlang:test-compile | No | Compile erlang test sources and recompile erlang sources with debug
information using the export_all option. |
erlang:test-doc | Yes | This The output will be put into
BUG It is known that BUG It is known that |
erlang:unpack-dependencies | No | Unpack erlang-otp dependencies. This will unpack all
dependencies of this MavenProject into the
AbstractErlangMojo.targetLib directory. This is done
only in case the dependency has changed since the last unpack
process. |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.6 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>eu.lindenbaum</groupId> <artifactId>maven-erlang-plugin</artifactId> <version>1.0.0-beta</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>eu.lindenbaum</groupId> <artifactId>maven-erlang-plugin</artifactId> <version>1.0.0-beta</version> </plugin> ... </plugins> </build> ... <!-- To use the report goals in your POM or parent POM --> <reporting> <plugins> <plugin> <groupId>eu.lindenbaum</groupId> <artifactId>maven-erlang-plugin</artifactId> <version>1.0.0-beta</version> </plugin> ... </plugins> </reporting> ... </project>
For more information, see "Guide to Configuring Plug-ins"