Tuesday, April 8, 2008

Keep your copyright/license headers updated with a nice maven2 plug-in

Isn't it boring to keep the copyright/licenses headers of your code updated?
I just found a nice Maven2 plug-in that can do the job for you. It scans your code for file types like .java, .xml., .xsd, .ssh, .sql and many others and add the header formatted according to the file type.
There are many configurations available but the defaults for me were OK. I just had to create a file with the text of my license header and change my pom.
The plug-in site is: http://code.google.com/p/maven-license-plugin/
If you want my pom as sample, you can see it here, just search for "START: LICENSE PLUGIN"


Anonymous said...

I really want my Cogroo T-shirt.

Anonymous said...

I really do