I use rat plugin and run `mvn clean rat:check`,  it failed and its output is:


[ERROR] Failed to execute goal 
org.codehaus.mojo:rat-maven-plugin:1.0-alpha-3:check (default-cli) on project 
root: Too many unapproved licenses: 63 -> [Help 1]


I check rat file under target directory, there are many files which should be 
ignored during the check of rat-plugin but it seems that rat plugin still 
marked them with no asf header.


Does anyone encounter the same problem?


*****************************************************
  Files with AL headers will be marked L
  Binary files (which do not require AL headers) will be marked B
  Compressed archives will be marked A
  Notices, licenses etc will be marked N
 !????? .checkstyle
 !????? .git/config
 !????? .git/description
 !????? .git/HEAD
 !????? .git/hooks/applypatch-msg.sample
 !????? .git/hooks/commit-msg.sample
 !????? .git/hooks/post-update.sample
 !????? .git/hooks/pre-applypatch.sample
 !????? .git/hooks/pre-commit.sample
 !????? .git/hooks/pre-push.sample
 !????? .git/hooks/pre-rebase.sample
 !????? .git/hooks/pre-receive.sample
 !????? .git/hooks/prepare-commit-msg.sample
 !????? .git/hooks/update.sample
  B     .git/index
On 1/19/2019 01:05,徐毅<[email protected]> wrote:
Can rat-Maven-plugin append header to java file? I check the document, it seems 
that rat plugin is used to check header?


Xu Yi
On 1/19/2019 00:52,Christofer Dutz<[email protected]> wrote:
Generally I had already setup everything correctly for Apache incubator 
projects, so just place the header Justin posted and use that. And probably 
replace the header plugin with the rat-Maven-plugin.

Chris

Outlook for Android<https://aka.ms/ghei36> herunterladen

________________________________
From: Justin Mclean <[email protected]>
Sent: Friday, January 18, 2019 5:50:49 PM
To: [email protected]
Subject: Re: ASF Headers including Year ...

Hi,

Does maven provide some plugins to append header?

Please take care when doing this you do not want to replace any 3rd parties 
files headers, they must be left intact.

Thanks,
Justin

Reply via email to