Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume >> mail # dev >> Re: [jira] [Created] (FLUME-1372) Too many unapproved licenses


Copy link to this message
-
Re: [jira] [Created] (FLUME-1372) Too many unapproved licenses
I've just replied in the JIRA, but I'll do it also here.

Error "Too many unapproved licenses:" is generated when RAT finds files inside flume directory that do not contain proper license headers. Solution to this problem is to remove such files (list of problematic files is available in target/rat.txt) or run build with parameter "-Drat.numUnapprovedLicenses=100".

Jarcec

On Jul 16, 2012, at 10:06 AM, Denny Ye wrote:

> Same problem in my workbench.
> It's important!
>
> 2012/7/16 YongmingHe (JIRA) <[EMAIL PROTECTED]>
>
>> YongmingHe created FLUME-1372:
>> ---------------------------------
>>
>>             Summary: Too many unapproved licenses
>>                 Key: FLUME-1372
>>                 URL: https://issues.apache.org/jira/browse/FLUME-1372
>>             Project: Flume
>>          Issue Type: Bug
>>          Components: Build
>>    Affects Versions: v1.3.0
>>         Environment: jdk1.6   windows7
>>            Reporter: YongmingHe
>>
>>
>> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.7:check
>> (test.
>> rat) on project flume-ng-core: Too many unapproved licenses: 1 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal o
>> rg.apache.rat:apache-rat-plugin:0.7:check (test.rat) on project
>> flume-ng-core: T
>> oo many unapproved licenses: 1
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
>> .java:213)
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
>> .java:153)
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
>> .java:145)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
>> ct(LifecycleModuleBuilder.java:84)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
>> ct(LifecycleModuleBuilder.java:59)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
>> ild(LifecycleStarter.java:183)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
>> eStarter.java:161)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
>> cher.java:290)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
>> a:230)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
>> uncher.java:409)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>> 352)
>> Caused by: org.apache.rat.mp.RatCheckException: Too many unapproved
>> licenses: 1
>>        at org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:167)
>>        at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:159)
>>        at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
>> BuildPluginManager.java:101)
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
>> .java:209)
>>        ... 19 more
>> [ERROR]
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please rea
>> d the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
>> eption
>> [ERROR]