Here is an example configuration for a basic maven ear plugin for packaging both .war and .jar artifacts