By default the compilation goal is bound to the compile phase when the project packaging is defined as erlang-otp.
Information about configuration options see the goal reference documentation.
The following example shows a simple setup:
<project> ... <packaging>erlang-otp</packaging> ... <build> <plugins> <plugin> <groupId>eu.lindenbaum</groupId> <artifactId>maven-erlang-plugin</artifactId> <version>1.0.0-beta</version> <extensions>true</extensions> </plugin> </plugins> </build> ... </project>
This all that is required to compile the Erlang sources found in src/main/erlang.
+- src/ +- main/ +- erlang/ +- sample_module.erl
The output beam files will be put into target/ebin.
+- target/ +- ebin/ +- sample_module.beam