Le Sat, 14 Aug 2010 16:15:35 +0200, Nicolas Nobelis <nicolas@nobelis.eu> a écrit :
Hello,
I am a user of your nice Maven Plugin that generates license files/headers.
I have a question regarding a feature : is this possible, when running license:update-file-header, to force the overwriting of the headers ? It seems to me that the plugin, if it finds an header, leaves it untouched (thus not updating it).
Yes it was possible before (2.1), but we loose this functionnality... but it will be back soon. In fact, before (2.1) the header was considered as a single content, now we can digest it as 3 parts (project description, copyright and license) and just update single part.
When I first run the command update-file-header, I realized that I was lacking the copyright part of the header. Because the option to overwrite the header was lacking, I had to erase all the produced headers in each of my source files. Then, after the second generation, I realized once again that the project description part was not so nice. Hence, I had once again to erase manually the headers and regenerate it. My opinion is that a property, e.g. license.overwrite, would allow the user to easily re-generate the headers. Then, specific properties for updating only the project description/the copyright/license/year wouldn't be required.
Yes there is something like this in preparation [0], [1]. It will be available in a 2.3.2 version I says about the end of the month or in septembre.
As a sidenote, I noticed that if you have no inceptionYear in your pom or CLI, the plugin fail with :
[INFO] could not execute goal UpdateFileHeaderMojo for reason : null
I will have a look at it. I encourage you to subscribe to this mailing list, and then you will be noticited of new releases ;) [2]
Thanks by advance for your time and support !
Thanks for using us \o/ Tony.
Best regards, Nicolas
[0] http://nuiton.org/issues/show/810 [1] http://nuiton.org/issues/show/811 [2] http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-users
_______________________________________________ Maven-license-plugin-users mailing list Maven-license-plugin-users@list.nuiton.org http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-users
-- Tony Chemit -------------------- tél: +33 (0) 2 40 50 29 28 email: chemit@codelutin.com http://www.codelutin.com