erlang:compile

Full name:

eu.lindenbaum:maven-erlang-plugin:2.2.0:compile

Description:

This Mojo compiles the projects Erlang sources and MIB files.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: compile.

Optional Parameters

Name Type Since Description
compileFirst String[] 2.1.0 Optional list of source files that will be compiled first (and in the given order). For example:
  <compileFirst>
    <file>foo.erl</file>
    <file>bar.erl</file>
    <file>baz.erl</file>
  </compileFirst>

compilerOptions String - Additional compiler options (comma separated) for Erlang compilation that are directly passed to compile:file/2, e.g. "debug_info, nowarn_unused_function". Note: The user may not specifiy one of the report options since the Mojo itself uses the return option internally. Warnings and Errors will be printed without specifying extra options.
cookie String - The cookie to use for the java and the backend node.
erlCommand String - The erlang command used to start an erlang backend node. The path must exist and the destination must be executable. If the given command does not fullfill these requirements erl is used (assuming the command is part of the hosts PATH). The path must not contain any arguments.

Parameter Details

compileFirst:

Optional list of source files that will be compiled first (and in the given order). For example:
  <compileFirst>
    <file>foo.erl</file>
    <file>bar.erl</file>
    <file>baz.erl</file>
  </compileFirst>
  • Type: java.lang.String[]
  • Since: 2.1.0
  • Required: No
  • Expression: ${compileFirst}

compilerOptions:

Additional compiler options (comma separated) for Erlang compilation that are directly passed to compile:file/2, e.g. "debug_info, nowarn_unused_function". Note: The user may not specifiy one of the report options since the Mojo itself uses the return option internally. Warnings and Errors will be printed without specifying extra options.
  • Type: java.lang.String
  • Required: No
  • Expression: ${compilerOptions}

cookie:

The cookie to use for the java and the backend node.
  • Type: java.lang.String
  • Required: No
  • Expression: ${cookie}

erlCommand:

The erlang command used to start an erlang backend node. The path must exist and the destination must be executable. If the given command does not fullfill these requirements erl is used (assuming the command is part of the hosts PATH). The path must not contain any arguments.
  • Type: java.lang.String
  • Required: No
  • Expression: ${erlCommand}