erlang:run

Full name:

eu.lindenbaum:maven-erlang-plugin:2.0.0:run

Description:

A Mojo that runs erlang applications packaged with packaging type PackagingType.ERLANG_OTP or PackagingType.ERLANG_STD on a specific (remote) node. This will start the application with all dependent applications and all modules pre-loaded. When finished the Mojo will stop and unload the started applications.

TODO: release projects cannot be run

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Invokes the execution of the lifecycle phase package prior to executing itself.
  • Executes in its own lifecycle: run.

Optional Parameters

Name Type Since Description
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.
remote String -

The name of the node to run the application on.

Note: The cookie of the remote node has to be set accordingly using the cookie parameter.


withDependencies boolean - Setting this to true will also upload all modules from the (maven) dependencies on the remote node before starting the application.
Default value is: false.

Parameter Details

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}

remote:

The name of the node to run the application on.

Note: The cookie of the remote node has to be set accordingly using the cookie parameter.

  • Type: java.lang.String
  • Required: No
  • Expression: ${remote}

withDependencies:

Setting this to true will also upload all modules from the (maven) dependencies on the remote node before starting the application.
  • Type: boolean
  • Required: No
  • Expression: ${withDependencies}
  • Default: false