The current solution that handles ejb, über war, and jboss types, is hard-coded. A better solution would be a generic way of handling project packaging <-> artifact type.
In Maven, type, packaging and extension are often the same but not always. Type
sources actually means classifier sources and extension jar for
example. Packaging maven-plugin actually means extension jar.