Fixed wagon resources and dependencies for eap modules.
(cherry picked from commit f42f52f866f6f437d2d04719b99c58fc42fe72b6)