Have you added lager as a dependency in rebar.config ? I think lager is not on the way.
From the rebar wiki :
To use lager in your application, you need to define it as an armature or have another way to include it in the erlangs path. Then you can add the following parameter to the erlang compiler flags:
{parse_transform, lager_transform}
You can add 'lager' as a dependency by editing your rebar.config :
%% == Dependencies == %% Where to put any downloaded dependencies. Default is "deps" {deps_dir, "deps"}. %% What dependencies we have, dependencies can be of 3 forms, an application %% name as an atom, eg. mochiweb, a name and a version (from the .app file), or %% an application name, a version and the SCM details on how to fetch it (SCM %% type, location and revision). Rebar currently supports git, hg, bzr and svn. {deps, [application_name, {application_name, "1.0.*"}, {application_name, "1.0.*", {git, "git://github.com/basho/rebar.git", {branch, "master"}}}]}.
In your case, it should be something like this:
{deps, [{lager, ".*", {git, "git://github.com/basho/lager.git", "HEAD"}}]}.
More information about the dependency manager in rebar:
https://github.com/basho/rebar/wiki/Dependency-management