Sounds like the jars should be module dependencies, not resources.