You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by Marlon Pierce <mp...@cs.indiana.edu> on 2011/03/09 14:27:19 UTC

Maven license plugin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does anyone have an opinion on the maven license plugin (http://code.google.com/p/maven-license-plugin/)?  I'm trying to wrap up the gadget container code clean up for contribution and would like to use it or some other nice tool to insert the Apache headers (http://www.apache.org/legal/src-headers.html#headers) in our code without breaking XML, JSP, etc.


Staging area is http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by the way.


Thanks--


Marlon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNd4A3AAoJEEfVXEODPFID9F8H/1Dammt78HyJbAIh71B2Am2P
xo+CJi7oeTAfvukLIsmURBeicL7Y1bZggYOMeGlEHoF+sM/FAXXN2pmuVKXam39U
vx4ePmoDniMfCWISJpd8pQdhIR0wDIDeUIGEVkV0XQtTuQ32PGpz4NpFXrNxffRl
URHer+zTND/8FGCv9AwkIhbF3FlO8Mnm33Ogl2pASfGK22BGstG4Efpgvk313msW
2lpCVOzuUkrngkwwpxXT8yHPrqA1sPKt+55ns2i2x1y9KH1Y5VlWtKRAy6buMI0D
9wXtjxsaSdJSLNFK7EdLthmEk2pjlPZdspjR6tFwnJzCtec0SjXX8dSDxL6WP9I=
=qxN3
-----END PGP SIGNATURE-----

Re: Maven license plugin

Posted by Ross Gardler <rg...@apache.org>.
On 09/03/2011 15:46, Ate Douma wrote:
> On 09/03/11 16:28, Scott Wilson wrote:
>>
>> On 9 Mar 2011, at 14:26, Ross Gardler wrote:
>>
>>> I have no opinion on that plugin, I've not used it. I would say be
>>> cautious as you have to make sure the headers are only inserted into
>>> files that we own copyright on (not files from other projects for
>>> example).
>>>
>>> The ASF has a project that will check for the correct licenses and,
>>> optionally, add a license header. I use that. This is a really useful
>>> tool, because once setup right it will stop us forgetting to add
>>> license headers. However, it has to be set up right as I mention above.
>>>
>>> See http://incubator.apache.org/rat
>>
>> +1 RAT is a really helpful tool
> +1

The docs for relicensing features are at 
http://incubator.apache.org/rat/apache-rat/index.html

Ross

Re: Maven license plugin

Posted by Ross Gardler <rg...@apache.org>.
On 10/03/2011 21:49, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>
> Rat's command line didn't insert license headers, either, so I set
> out to debug the source code in fine Apache fashion.
> org.apache.rat.Report.java has two bugs:

Well it works just fine for me, but then I am still running the 0.5 
release so not sure if it has been broken.

> * They misspell "license" as "licence" in their options, so
> "--addLicense" doesn't work, but "-a" is OK.

That's not a mispelling. I wrote the licence insertion code and I'm 
English so it's correct as "licence" ;-)

> * More seriously, the logic of the option parsing is not good: if you
> don't specify a stylesheet, you get sent to a broken version of
> report() that throws away your other command line options.

I don't know about that one. Sounds like an addition in a later version.

> This raises another question: do we have jira accounts?

You create your own Jira accounts (you will need an admin to assign them 
rights to Rave, but you don't need that to submit a bug to RAT)

Ross

>
>
> Marlon
>
>
> On 3/10/11 11:30 AM, Ross Gardler wrote:
>> On 10/03/2011 14:32, Marlon Pierce wrote:
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>
>>> The links were a helpful start, but is there any way to insert
>>> the Apache header in appropriate files with the maven plugin?
>>> That is, I'm looking for the maven pom equivalent to the command
>>> line described at
>>> http://incubator.apache.org/rat/apache-rat/index.html.
>>
>> I know I only ever implemented it as a command line, but don't know
>> if anyone has added this to the maven plugin.
>>
>> However, why do you need it in the plugin? It's only done once
>> right?
>>
>> If you really want it to happen in mvn surely mvn can run a java
>> app?
>>
>> Ross
>>
>>>
>>>
>>> Thanks--
>>>
>>>
>>> Marlon
>>>
>>>
>>> On 3/9/11 10:46 AM, Ate Douma wrote:
>>>> On 09/03/11 16:28, Scott Wilson wrote:
>>>>>
>>>>> On 9 Mar 2011, at 14:26, Ross Gardler wrote:
>>>>>
>>>>>> I have no opinion on that plugin, I've not used it. I would
>>>>>> say be cautious as you have to make sure the headers are
>>>>>> only inserted into files that we own copyright on (not
>>>>>> files from other projects for example).
>>>>>>
>>>>>> The ASF has a project that will check for the correct
>>>>>> licenses and, optionally, add a license header. I use that.
>>>>>> This is a really useful tool, because once setup right it
>>>>>> will stop us forgetting to add license headers. However, it
>>>>>> has to be set up right as I mention above.
>>>>>>
>>>>>> See http://incubator.apache.org/rat
>>>>>
>>>>> +1 RAT is a really helpful tool
>>>> +1
>>>>
>>>> For Apache Portals we have RAT configured in our Maven master
>>>> pom in a separate "rat" profile so we can run a check any time
>>>> we want, especially before doing a release. See:
>>>> https://svn.apache.org/repos/asf/portals/portals-pom/trunk/pom.xml
>>>>
>>>>>
>>>>>>
>>>>>>
>>>>
On 09/03/2011 13:27, Marlon Pierce wrote:
>>>> Does anyone have an opinion on the maven license plugin
>>>> (http://code.google.com/p/maven-license-plugin/)?  I'm trying
>>>> to wrap up the gadget container code clean up for contribution
>>>> and would like to use it or some other nice tool to insert the
>>>> Apache headers
>>>> (http://www.apache.org/legal/src-headers.html#headers) in our
>>>> code without breaking XML, JSP, etc.
>>>>
>>>>
>>>> Staging area is
>>>> http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/,
>>>> by the way.
>>>>
>>>>
>>>> Thanks--
>>>>
>>>>
>>>> Marlon
>>>>>>
>>>>>>
>>>>>> -- rgardler@apache.org @rgardler
>>>>>
>>> -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16
>>> (Darwin) Comment: Using GnuPG with Mozilla -
>>> http://enigmail.mozdev.org/
>>>
>>> iQEcBAEBAgAGBQJNeODpAAoJEEfVXEODPFIDASsH/jgWK6rycdREPuX5WCtFH/1U
>>> Tp5vNG5BbCplRo3o6BWBO99mM7JPg77Mat2AevoE79jpk7Tk9BdhS06gZkGWrHaP
>>> HFoev3cz9Is94RngzNdSjtimwj7aKFZL8T6+/M9+1+3JVGr9obR9l/kIUd+k8KKX
>>> u1IgUzhSRjV+vM2mY9n/4ZzUyAsSS2jRAXZR3cj7EeoAehX4gGywX6wLTYRIyQEm
>>> j3oAEPqZ5bI4UX6dLyaf8zjTADg97Py4tAHEafmmLUzazQ4AV3du+6DAwAbyJo5s
>>> q8Xe+q4b24CtjWGJaARqFvu/owqHckHn4bDCn4H1Rkw06l+YbOh600O4Y3CFTxw=
>>> =TONs -----END PGP SIGNATURE-----
> -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16
> (Darwin) Comment: Using GnuPG with Mozilla -
> http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNeUeFAAoJEEfVXEODPFIDCIYIAJNL+eh2xbm9gyU3Po6tV6qF
> c3vf62RpPucMi1TDVzyZ605Tb4rqXccHWEiAc2ZyfnEGcA7RFta8E9mJCkbpktaD
> 1l6s6RfimdjZ4T59eQhUasG/QjjPVC5XX40ubkEbNEV/Rcnv0+leDwLsUWmyrqDn
> 9WsvdnxBYVJrRRZNmiE0se+COdaRn94sU+omcGxvBDtLN/MzwCyZngj1DlYipYX5
> BpYdQNnNr3KJMmNvIp6P1/cHgBguqlKVS0xUY+iTbF7BOTLnpwnT+TZUAkHuU/hD
> t6VKt2ajOq2HhtrxlmlQqfp0RteV+BnOCUOie9SYAYz5W5hgkxr/ouw9XTbh+qI=
> =EcGN -----END PGP SIGNATURE-----


Re: Maven license plugin

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rat's command line didn't insert license headers, either, so I set out to debug the source code in fine Apache fashion.  org.apache.rat.Report.java has two bugs:

* They misspell "license" as "licence" in their options, so "--addLicense" doesn't work, but "-a" is OK.

* More seriously, the logic of the option parsing is not good: if you don't specify a stylesheet, you get sent to a broken version of report() that throws away your other command line options.

This raises another question: do we have jira accounts?


Marlon


On 3/10/11 11:30 AM, Ross Gardler wrote:
> On 10/03/2011 14:32, Marlon Pierce wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> The links were a helpful start, but is there any way to insert the
>> Apache header in appropriate files with the maven plugin?  That is,
>> I'm looking for the maven pom equivalent to the command line
>> described at http://incubator.apache.org/rat/apache-rat/index.html.
> 
> I know I only ever implemented it as a command line, but don't know if anyone has added this to the maven plugin.
> 
> However, why do you need it in the plugin? It's only done once right?
> 
> If you really want it to happen in mvn surely mvn can run a java app?
> 
> Ross
> 
>>
>>
>> Thanks--
>>
>>
>> Marlon
>>
>>
>> On 3/9/11 10:46 AM, Ate Douma wrote:
>>> On 09/03/11 16:28, Scott Wilson wrote:
>>>>
>>>> On 9 Mar 2011, at 14:26, Ross Gardler wrote:
>>>>
>>>>> I have no opinion on that plugin, I've not used it. I would say
>>>>> be cautious as you have to make sure the headers are only
>>>>> inserted into files that we own copyright on (not files from
>>>>> other projects for example).
>>>>>
>>>>> The ASF has a project that will check for the correct licenses
>>>>> and, optionally, add a license header. I use that. This is a
>>>>> really useful tool, because once setup right it will stop us
>>>>> forgetting to add license headers. However, it has to be set up
>>>>> right as I mention above.
>>>>>
>>>>> See http://incubator.apache.org/rat
>>>>
>>>> +1 RAT is a really helpful tool
>>> +1
>>>
>>> For Apache Portals we have RAT configured in our Maven master pom
>>> in a separate "rat" profile so we can run a check any time we want,
>>> especially before doing a release. See:
>>> https://svn.apache.org/repos/asf/portals/portals-pom/trunk/pom.xml
>>>
>>>>
>>>>>
>>>>> On 09/03/2011 13:27, Marlon Pierce wrote:
>>> Does anyone have an opinion on the maven license plugin
>>> (http://code.google.com/p/maven-license-plugin/)?  I'm trying to
>>> wrap up the gadget container code clean up for contribution and
>>> would like to use it or some other nice tool to insert the Apache
>>> headers (http://www.apache.org/legal/src-headers.html#headers) in
>>> our code without breaking XML, JSP, etc.
>>>
>>>
>>> Staging area is
>>> http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by
>>> the way.
>>>
>>>
>>> Thanks--
>>>
>>>
>>> Marlon
>>>>>
>>>>>
>>>>> -- rgardler@apache.org @rgardler
>>>>
>> -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16
>> (Darwin) Comment: Using GnuPG with Mozilla -
>> http://enigmail.mozdev.org/
>>
>> iQEcBAEBAgAGBQJNeODpAAoJEEfVXEODPFIDASsH/jgWK6rycdREPuX5WCtFH/1U
>> Tp5vNG5BbCplRo3o6BWBO99mM7JPg77Mat2AevoE79jpk7Tk9BdhS06gZkGWrHaP
>> HFoev3cz9Is94RngzNdSjtimwj7aKFZL8T6+/M9+1+3JVGr9obR9l/kIUd+k8KKX
>> u1IgUzhSRjV+vM2mY9n/4ZzUyAsSS2jRAXZR3cj7EeoAehX4gGywX6wLTYRIyQEm
>> j3oAEPqZ5bI4UX6dLyaf8zjTADg97Py4tAHEafmmLUzazQ4AV3du+6DAwAbyJo5s
>> q8Xe+q4b24CtjWGJaARqFvu/owqHckHn4bDCn4H1Rkw06l+YbOh600O4Y3CFTxw=
>> =TONs -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNeUeFAAoJEEfVXEODPFIDCIYIAJNL+eh2xbm9gyU3Po6tV6qF
c3vf62RpPucMi1TDVzyZ605Tb4rqXccHWEiAc2ZyfnEGcA7RFta8E9mJCkbpktaD
1l6s6RfimdjZ4T59eQhUasG/QjjPVC5XX40ubkEbNEV/Rcnv0+leDwLsUWmyrqDn
9WsvdnxBYVJrRRZNmiE0se+COdaRn94sU+omcGxvBDtLN/MzwCyZngj1DlYipYX5
BpYdQNnNr3KJMmNvIp6P1/cHgBguqlKVS0xUY+iTbF7BOTLnpwnT+TZUAkHuU/hD
t6VKt2ajOq2HhtrxlmlQqfp0RteV+BnOCUOie9SYAYz5W5hgkxr/ouw9XTbh+qI=
=EcGN
-----END PGP SIGNATURE-----

Re: Maven license plugin

Posted by Ross Gardler <rg...@apache.org>.
On 10/03/2011 14:32, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>
> The links were a helpful start, but is there any way to insert the
> Apache header in appropriate files with the maven plugin?  That is,
> I'm looking for the maven pom equivalent to the command line
> described at http://incubator.apache.org/rat/apache-rat/index.html.

I know I only ever implemented it as a command line, but don't know if 
anyone has added this to the maven plugin.

However, why do you need it in the plugin? It's only done once right?

If you really want it to happen in mvn surely mvn can run a java app?

Ross

>
>
> Thanks--
>
>
> Marlon
>
>
> On 3/9/11 10:46 AM, Ate Douma wrote:
>> On 09/03/11 16:28, Scott Wilson wrote:
>>>
>>> On 9 Mar 2011, at 14:26, Ross Gardler wrote:
>>>
>>>> I have no opinion on that plugin, I've not used it. I would say
>>>> be cautious as you have to make sure the headers are only
>>>> inserted into files that we own copyright on (not files from
>>>> other projects for example).
>>>>
>>>> The ASF has a project that will check for the correct licenses
>>>> and, optionally, add a license header. I use that. This is a
>>>> really useful tool, because once setup right it will stop us
>>>> forgetting to add license headers. However, it has to be set up
>>>> right as I mention above.
>>>>
>>>> See http://incubator.apache.org/rat
>>>
>>> +1 RAT is a really helpful tool
>> +1
>>
>> For Apache Portals we have RAT configured in our Maven master pom
>> in a separate "rat" profile so we can run a check any time we want,
>> especially before doing a release. See:
>> https://svn.apache.org/repos/asf/portals/portals-pom/trunk/pom.xml
>>
>>>
>>>>
>>>> On 09/03/2011 13:27, Marlon Pierce wrote:
>> Does anyone have an opinion on the maven license plugin
>> (http://code.google.com/p/maven-license-plugin/)?  I'm trying to
>> wrap up the gadget container code clean up for contribution and
>> would like to use it or some other nice tool to insert the Apache
>> headers (http://www.apache.org/legal/src-headers.html#headers) in
>> our code without breaking XML, JSP, etc.
>>
>>
>> Staging area is
>> http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by
>> the way.
>>
>>
>> Thanks--
>>
>>
>> Marlon
>>>>
>>>>
>>>> -- rgardler@apache.org @rgardler
>>>
> -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16
> (Darwin) Comment: Using GnuPG with Mozilla -
> http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNeODpAAoJEEfVXEODPFIDASsH/jgWK6rycdREPuX5WCtFH/1U
> Tp5vNG5BbCplRo3o6BWBO99mM7JPg77Mat2AevoE79jpk7Tk9BdhS06gZkGWrHaP
> HFoev3cz9Is94RngzNdSjtimwj7aKFZL8T6+/M9+1+3JVGr9obR9l/kIUd+k8KKX
> u1IgUzhSRjV+vM2mY9n/4ZzUyAsSS2jRAXZR3cj7EeoAehX4gGywX6wLTYRIyQEm
> j3oAEPqZ5bI4UX6dLyaf8zjTADg97Py4tAHEafmmLUzazQ4AV3du+6DAwAbyJo5s
> q8Xe+q4b24CtjWGJaARqFvu/owqHckHn4bDCn4H1Rkw06l+YbOh600O4Y3CFTxw=
> =TONs -----END PGP SIGNATURE-----


Re: Maven license plugin

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The links were a helpful start, but is there any way to insert the Apache header in appropriate files with the maven plugin?  That is, I'm looking for the maven pom equivalent to the command line described at http://incubator.apache.org/rat/apache-rat/index.html.


Thanks--


Marlon


On 3/9/11 10:46 AM, Ate Douma wrote:
> On 09/03/11 16:28, Scott Wilson wrote:
>>
>> On 9 Mar 2011, at 14:26, Ross Gardler wrote:
>>
>>> I have no opinion on that plugin, I've not used it. I would say be cautious as you have to make sure the headers are only inserted into files that we own copyright on (not files from other projects for example).
>>>
>>> The ASF has a project that will check for the correct licenses and, optionally, add a license header. I use that. This is a really useful tool, because once setup right it will stop us forgetting to add license headers. However, it has to be set up right as I mention above.
>>>
>>> See http://incubator.apache.org/rat
>>
>> +1 RAT is a really helpful tool
> +1
> 
> For Apache Portals we have RAT configured in our Maven master pom in a separate "rat" profile so we can run a check any time we want, especially before doing a release.
> See: https://svn.apache.org/repos/asf/portals/portals-pom/trunk/pom.xml
> 
>>
>>>
>>> On 09/03/2011 13:27, Marlon Pierce wrote:
> Does anyone have an opinion on the maven license plugin (http://code.google.com/p/maven-license-plugin/)?  I'm trying to wrap up the gadget container code clean up for contribution and would like to use it or some other nice tool to insert the Apache headers (http://www.apache.org/legal/src-headers.html#headers) in our code without breaking XML, JSP, etc.
> 
> 
> Staging area is http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by the way.
> 
> 
> Thanks--
> 
> 
> Marlon
>>>
>>>
>>> -- 
>>> rgardler@apache.org
>>> @rgardler
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNeODpAAoJEEfVXEODPFIDASsH/jgWK6rycdREPuX5WCtFH/1U
Tp5vNG5BbCplRo3o6BWBO99mM7JPg77Mat2AevoE79jpk7Tk9BdhS06gZkGWrHaP
HFoev3cz9Is94RngzNdSjtimwj7aKFZL8T6+/M9+1+3JVGr9obR9l/kIUd+k8KKX
u1IgUzhSRjV+vM2mY9n/4ZzUyAsSS2jRAXZR3cj7EeoAehX4gGywX6wLTYRIyQEm
j3oAEPqZ5bI4UX6dLyaf8zjTADg97Py4tAHEafmmLUzazQ4AV3du+6DAwAbyJo5s
q8Xe+q4b24CtjWGJaARqFvu/owqHckHn4bDCn4H1Rkw06l+YbOh600O4Y3CFTxw=
=TONs
-----END PGP SIGNATURE-----

Re: Maven license plugin

Posted by Ate Douma <at...@douma.nu>.
On 09/03/11 16:28, Scott Wilson wrote:
>
> On 9 Mar 2011, at 14:26, Ross Gardler wrote:
>
>> I have no opinion on that plugin, I've not used it. I would say be cautious as you have to make sure the headers are only inserted into files that we own copyright on (not files from other projects for example).
>>
>> The ASF has a project that will check for the correct licenses and, optionally, add a license header. I use that. This is a really useful tool, because once setup right it will stop us forgetting to add license headers. However, it has to be set up right as I mention above.
>>
>> See http://incubator.apache.org/rat
>
> +1 RAT is a really helpful tool
+1

For Apache Portals we have RAT configured in our Maven master pom in a separate 
"rat" profile so we can run a check any time we want, especially before doing a 
release.
See: https://svn.apache.org/repos/asf/portals/portals-pom/trunk/pom.xml

>
>>
>> On 09/03/2011 13:27, Marlon Pierce wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Does anyone have an opinion on the maven license plugin (http://code.google.com/p/maven-license-plugin/)?  I'm trying to wrap up the gadget container code clean up for contribution and would like to use it or some other nice tool to insert the Apache headers (http://www.apache.org/legal/src-headers.html#headers) in our code without breaking XML, JSP, etc.
>>>
>>>
>>> Staging area is http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by the way.
>>>
>>>
>>> Thanks--
>>>
>>>
>>> Marlon
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iQEcBAEBAgAGBQJNd4A3AAoJEEfVXEODPFID9F8H/1Dammt78HyJbAIh71B2Am2P
>>> xo+CJi7oeTAfvukLIsmURBeicL7Y1bZggYOMeGlEHoF+sM/FAXXN2pmuVKXam39U
>>> vx4ePmoDniMfCWISJpd8pQdhIR0wDIDeUIGEVkV0XQtTuQ32PGpz4NpFXrNxffRl
>>> URHer+zTND/8FGCv9AwkIhbF3FlO8Mnm33Ogl2pASfGK22BGstG4Efpgvk313msW
>>> 2lpCVOzuUkrngkwwpxXT8yHPrqA1sPKt+55ns2i2x1y9KH1Y5VlWtKRAy6buMI0D
>>> 9wXtjxsaSdJSLNFK7EdLthmEk2pjlPZdspjR6tFwnJzCtec0SjXX8dSDxL6WP9I=
>>> =qxN3
>>> -----END PGP SIGNATURE-----
>>
>>
>> --
>> rgardler@apache.org
>> @rgardler
>


Re: Maven license plugin

Posted by Scott Wilson <sc...@gmail.com>.
On 9 Mar 2011, at 14:26, Ross Gardler wrote:

> I have no opinion on that plugin, I've not used it. I would say be cautious as you have to make sure the headers are only inserted into files that we own copyright on (not files from other projects for example).
> 
> The ASF has a project that will check for the correct licenses and, optionally, add a license header. I use that. This is a really useful tool, because once setup right it will stop us forgetting to add license headers. However, it has to be set up right as I mention above.
> 
> See http://incubator.apache.org/rat

+1 RAT is a really helpful tool

> 
> On 09/03/2011 13:27, Marlon Pierce wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Does anyone have an opinion on the maven license plugin (http://code.google.com/p/maven-license-plugin/)?  I'm trying to wrap up the gadget container code clean up for contribution and would like to use it or some other nice tool to insert the Apache headers (http://www.apache.org/legal/src-headers.html#headers) in our code without breaking XML, JSP, etc.
>> 
>> 
>> Staging area is http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by the way.
>> 
>> 
>> Thanks--
>> 
>> 
>> Marlon
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> 
>> iQEcBAEBAgAGBQJNd4A3AAoJEEfVXEODPFID9F8H/1Dammt78HyJbAIh71B2Am2P
>> xo+CJi7oeTAfvukLIsmURBeicL7Y1bZggYOMeGlEHoF+sM/FAXXN2pmuVKXam39U
>> vx4ePmoDniMfCWISJpd8pQdhIR0wDIDeUIGEVkV0XQtTuQ32PGpz4NpFXrNxffRl
>> URHer+zTND/8FGCv9AwkIhbF3FlO8Mnm33Ogl2pASfGK22BGstG4Efpgvk313msW
>> 2lpCVOzuUkrngkwwpxXT8yHPrqA1sPKt+55ns2i2x1y9KH1Y5VlWtKRAy6buMI0D
>> 9wXtjxsaSdJSLNFK7EdLthmEk2pjlPZdspjR6tFwnJzCtec0SjXX8dSDxL6WP9I=
>> =qxN3
>> -----END PGP SIGNATURE-----
> 
> 
> -- 
> rgardler@apache.org
> @rgardler


Re: Maven license plugin

Posted by Ross Gardler <rg...@apache.org>.
I have no opinion on that plugin, I've not used it. I would say be 
cautious as you have to make sure the headers are only inserted into 
files that we own copyright on (not files from other projects for example).

The ASF has a project that will check for the correct licenses and, 
optionally, add a license header. I use that. This is a really useful 
tool, because once setup right it will stop us forgetting to add license 
headers. However, it has to be set up right as I mention above.

See http://incubator.apache.org/rat

On 09/03/2011 13:27, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Does anyone have an opinion on the maven license plugin (http://code.google.com/p/maven-license-plugin/)?  I'm trying to wrap up the gadget container code clean up for contribution and would like to use it or some other nice tool to insert the Apache headers (http://www.apache.org/legal/src-headers.html#headers) in our code without breaking XML, JSP, etc.
>
>
> Staging area is http://vigyan.svn.sourceforge.net/viewvc/vigyan/rave-sandbox/, by the way.
>
>
> Thanks--
>
>
> Marlon
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNd4A3AAoJEEfVXEODPFID9F8H/1Dammt78HyJbAIh71B2Am2P
> xo+CJi7oeTAfvukLIsmURBeicL7Y1bZggYOMeGlEHoF+sM/FAXXN2pmuVKXam39U
> vx4ePmoDniMfCWISJpd8pQdhIR0wDIDeUIGEVkV0XQtTuQ32PGpz4NpFXrNxffRl
> URHer+zTND/8FGCv9AwkIhbF3FlO8Mnm33Ogl2pASfGK22BGstG4Efpgvk313msW
> 2lpCVOzuUkrngkwwpxXT8yHPrqA1sPKt+55ns2i2x1y9KH1Y5VlWtKRAy6buMI0D
> 9wXtjxsaSdJSLNFK7EdLthmEk2pjlPZdspjR6tFwnJzCtec0SjXX8dSDxL6WP9I=
> =qxN3
> -----END PGP SIGNATURE-----


-- 
rgardler@apache.org
@rgardler