exrm发布时出现重复模块错误

时间:2015-12-29 18:05:38

标签: elixir phoenix-framework

我正在使用elixir <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="container"> <div class="left-column"> <div class="row">User 1:</div> <div class="row">User 2:</div> <div class="row">User 3:</div> </div> <div class="right-column"> <div class="row">James</div> <div class="row">Jennifer</div> <div class="row">John</div> </div> </div>,exrm版本1.1.0,httpoison是0.19.9 当我从0.8文件中删除HTTPoison十六进制包时,我的应用程序使用gcm,其他名为HTTPoison的十六进制包在其应用程序中有gcm ,它工作正常。 有没有一种干净的方法来解决这些依赖关系?

mix

我的===> Provider (release) failed with: {error, {rlx_prv_assembler, {release_script_generation_error, systools_make, {duplicate_modules, [{{'Elixir.HTTPoison.Response', httpoison, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/httpoison-0.8.0/ebin"}, {'Elixir.HTTPoison.Response', cabs, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/cabs-0.0.1/ebin"}}, {{'Elixir.HTTPoison.Error', httpoison, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/httpoison-0.8.0/ebin"}, {'Elixir.HTTPoison.Error', cabs, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/cabs-0.0.1/ebin"}}, {{'Elixir.HTTPoison.Base', httpoison, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/httpoison-0.8.0/ebin"}, {'Elixir.HTTPoison.Base', cabs, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/cabs-0.0.1/ebin"}}, {{'Elixir.HTTPoison.AsyncStatus', httpoison, "/home/vysakh/propro/phoenix/cabs/rel/cabs/lib/httpoison-0.8.0/ebin"}, {'Elixir.HTTPoison.AsyncStatus', cabs, 文件

mix.exs

听起来很奇怪,在我从 defmodule Cabs.Mixfile do use Mix.Project def project do [app: :cabs, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type `mix help compile.app` for more information def application do [mod: {Cabs, []}, applications: [ :phoenix, :phoenix_html, :cowboy, :logger, :phoenix_ecto, :postgrex, :inflex, :httpoison, :gcm ] ] end # Specifies which paths to compile per environment defp elixirc_paths(:test), do: ["lib", "web", "test/support"] defp elixirc_paths(_), do: ["lib", "web"] # Specifies your project dependencies # # Type `mix help deps` for examples and options defp deps do [{:phoenix, "~> 1.0.3"}, {:phoenix_ecto, "~> 1.1"}, {:postgrex, ">= 0.0.0"}, {:phoenix_html, "~> 2.1"}, {:phoenix_live_reload, "~> 1.0", only: :dev}, {:mailgun, "~> 0.1.2"}, {:httpoison, "~> 0.8"}, {:gcm, "~> 1.0.0"}, {:cowboy, "~> 1.0"}] end end 中使用的库中删除httpoison后,它必须包含叉子的github url(https://github.com/vysakh0/gcm)< / p>

0 个答案:

没有答案