Setting packaging type and if the plugin is already in pom, do not repeatedly add it.