I am trying to include ejabberd in elixir app, as described at https://docs.ejabberd.im/developer/extending-ejabberd/elixir/. Everything works, however when I want to create release package from app using mix release, I got error:
** (Mix) :p1_utils is listed both as a regular application and as an included application
Any idea how to solve this? My exs is very simple, just ejabberd with no other deps.
defmodule Ejapp.MixProject do
use Mix.Project
def project do
[
app: :ejapp,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ejabberd, "~> 19.2"}
]
end
end
def application, do: []looks a bit weird; even if compiled, your release will not be robust because it has no application declared. - Aleksei Matiushkin