Yes. You can use the license file (we have already added), add placeholders for year, users and so. The plugin will check every source file, if the header is existing and will check it for failures. If you specify it would fail or add/replace it.
2012/12/6 Christian Grobmeier <[email protected]> > On Thu, Dec 6, 2012 at 11:29 AM, Daniel Manzke > <[email protected]> wrote: > > The maven plugin runs on every package, deploy or install phase and adds > > the license header to the source files. If we would be hard, we would add > > it to the compile phase. ;) > > > > From my side this give us a better chance to keep track on it. > > So the sources would actually be touched and the license would be > visible in SVN? > Might be worth a look then > > > > > 2012/12/6 Christian Grobmeier <[email protected]> > > > >> Hi Daniel, > >> > >> On Thu, Dec 6, 2012 at 10:59 AM, Daniel Manzke > >> <[email protected]> wrote: > >> > in my project I always used the license plugin for maven, which uses a > >> > local file to add the license headers. I don't want to care about if I > >> have > >> > added the license in a new file or not. > >> > > >> > WDYT? > >> > >> While i like this from a technical perspective, the Apache rules are > >> very clear on this: one must add the license to every and each file. > >> If somebody goes to svn via webview he must see the license, even when > >> he does not build the project. > >> > >> One way to measure it is the Apache Creadur RAT tool: > >> http://creadur.apache.org/ > >> > >> We have it somewhere in our poms but i never saw its output. However > >> it would be great to somehow output the report :-) > >> > >> Cheers, > >> Christian > >> > >> > > >> > ---------- Forwarded message ---------- > >> > From: Simone Tripodi (JIRA) <[email protected]> > >> > Date: 2012/12/6 > >> > Subject: [jira] [Created] (ONAMI-19) license headers are corrupted in > all > >> > files > >> > To: [email protected] > >> > > >> > > >> > Simone Tripodi created ONAMI-19: > >> > ----------------------------------- > >> > > >> > Summary: license headers are corrupted in all files > >> > Key: ONAMI-19 > >> > URL: https://issues.apache.org/jira/browse/ONAMI-19 > >> > Project: Apache Onami > >> > Issue Type: Bug > >> > Reporter: Simone Tripodi > >> > > >> > > >> > even if text in > >> > > >> > http://svn.apache.org/repos/asf/incubator/onami/committers/LICENSE-headeris > >> > right, > >> > http://www.apache.org/legal/src-headers.html#headers shows that the > >> format > >> > is quiet different - and checkstyle complains about header license in > all > >> > components > >> > > >> > -- > >> > This message is automatically generated by JIRA. > >> > If you think it was sent incorrectly, please contact your JIRA > >> > administrators > >> > For more information on JIRA, see: > >> http://www.atlassian.com/software/jira > >> > > >> > > >> > > >> > -- > >> > Viele Grüße/Best Regards > >> > > >> > Daniel Manzke > >> > >> > >> > >> -- > >> http://www.grobmeier.de > >> https://www.timeandbill.de > >> > > > > > > > > -- > > Viele Grüße/Best Regards > > > > Daniel Manzke > > > > -- > http://www.grobmeier.de > https://www.timeandbill.de > -- Viele Grüße/Best Regards Daniel Manzke
