Fix incorrect package name for JAR main class

Generated projects were packaging JARs with a main class derived from
the groupId and artifactId of the project, rather than the package and
name attributes.