|
|
|
[
Permlink
| « Hide
]
Dirk Olmes - 17/Dec/07 08:44 AM
Andrew, you have used the maven-groovy-plugin before, is there any easy way of wrapping ScanLicenseHeaders.groovy into a groovy mojo?
A groovy mojo could dynamically call the script. This is easy. I'm more concerned with the way results are output and how they are reported (e.g. fail build)
If the groovy mojo works the same way as plain mojos, it's a matter of throwing an exception. This exception could also list the nonconforming files.
A whiltelist of files to skip in the license check could be implemented as pom config option. If we have the mojo in place, there's no use in keeping the script around in buildtools as one could always run the maven plugin from the commandline. raise prio as old license headers keep creeping in over time
Dan, I set the fix version for a reason. This is really an issue which should be addressed ASAP.
Ah, the joys of Maven
I have refactored the existing ScanLicenseHeaders.groovy script to be callable from the commandline as well as from a pom using the groovy-maven-plugin. Unfortunately, we use the groovy-maven-plugin already for other tasks i.e. for testing the transport archetypes. These projects would now have two configurations of the groovy plugin: one for performing their work and another one inherited from the parent (toplevel) pom to check the license headers. Unfortunately, that does not work with Maven at all Instead of implementing the license header check as part of the build (which would add an approx. 10% overhead in runtime to each and every build) I have created a build plan on bamboo now (http://dev.mulesource.com/bamboo/browse/MULE-V20XLICHEA |
||||||||||||||||||||||||||||||||||||||||||||||||||