smh/grunt-maven-tasks — pull request #2 by leftieFriele (2013-06-14 11:54:24+00:00)
Title: WAR-file support and the option to not do the injection of destination folders

There is a Maven plugin for having WAR-files as dependencies. It is just a zipped file, but with the .war extension. This fix prevents you from having to update existing Maven projects in order to work with artifacts published by the grunt task.
I have added support for using the type configuration setting in order to publish artifacts with the .war extension. This is the configuration required in the Gruntfile:
maven: {
options: {
groupId: 'no.finntech',
artifactId: 'core-js',
packaging: 'zip',
type: 'war'
}
}
I have also added the option to not do the injectDestFolder thing, because it enforces a certain preference on how the resulting archive file should be structured. That broke compability with the way we have been doing things, so an option which can remove it is really useful. You just add it to the Maven options object:
maven: {
options:{
injectDestFolder: false
}
}