[erlang-questions] Erlang and Maven

Chandru chandrashekhar.mullaparthi@REDACTED
Mon Sep 11 09:23:13 CEST 2006


On 10/09/06, Olivier Sambourg <olivier.sambourg@REDACTED> wrote:
>
> If we take a look at various OTP applications, the common directory
> structure seems to be :
>
> application/
> |-> src/ (source files, flat)
> |-> include/ (include files...)
> |-> doc/ (documentation)
> |-> ebin/ (beam files)
>
> I don't know wheter to keep this structure intact (just adding a pom.xmlfile in the base directory, and directories for test files and website
> generation), or to have a more "mavenish" setup, such as :
>
application/
> |-> pom.xml (maven project descriptor)
> |-> src/
>   |-> main/
>     |-> erlang/ (erlang source files)
>     |-> c/ (C code for ports, etc.)
>     |-> include/
>   |-> test/
>     |-> erlang/ (erlang test files)
>     |-> c/ (C test files)
>   |-> site/
>     |-> site.xml (maven site descriptor)
>     |-> etc.
> |-> target/
>   |-> ebin/
>   |-> test-ebin/
>
> This last structure ***could*** be useful in a multi-language project, and
> has various other advantages from a maven point of view. And of course the
> application can be deployed using the standard OTP structure.
> Bottom line : I don't know what to choose :)
>

I don't know anything about Maven, but maybe you can use the OTP structure
for your system installation and the "mavenish" structure for your code
repository?

cheers
Chandru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060911/d31207fc/attachment.htm>


More information about the erlang-questions mailing list