[ 
https://issues.apache.org/jira/browse/AMBARI-23712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16456250#comment-16456250
 ] 

Doroszlai, Attila commented on AMBARI-23712:
--------------------------------------------

Hi [~codejoy], can you please check which files are listed as unapproved?  
Something like this should give you those 2 files:

{noformat}
fgrep '!?????' /home/sthomas/ambari/apache-ambari-2.6.1-src/target/rat.txt
{noformat}

The Apache Ambari 2.6.1 source normally shouldn't have anything that fails the 
RAT check, so it's likely something produced locally before the build, eg. by 
your IDE, text editor, etc.  Depending on what they turn out to be, you should 
either move those files out of the build directory, or remove them.  We may 
also need to add some exceptions to the RAT check, but that cannot be fixed for 
2.6.1, since it's already released.

> Install guide does not give advice for error on install rpm:rpm
> ---------------------------------------------------------------
>
>                 Key: AMBARI-23712
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23712
>             Project: Ambari
>          Issue Type: Documentation
>          Components: documentation
>    Affects Versions: 2.6.1
>         Environment: CentOS Linux 7 (Core)
>  
> Linux theBox 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 
> x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Shane Thomas
>            Priority: Blocker
>
>  
> Was running through this install guide:
>  
> [https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.6.1]
>  
> The part at for CentOS:
> mvn -B clean install rpm:rpm -DnewVersion=2.6.1.0.0 -DskipTests 
> -Dpython.ver="python >= 2.6"
>  
> Fails with:
> {code:java}
>  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5.420 s
> [INFO] Finished at: 2018-04-26T21:47:30Z
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check 
> (default) on project ambari: Too many files with unapproved license: 2 See 
> RAT report in: /home/sthomas/ambari/apache-ambari-2.6.1-src/target/rat.txt -> 
> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project ambari: 
> Too many files with unapproved license: 2 See RAT report in: 
> /home/sthomas/ambari/apache-ambari-2.6.1-src/target/rat.txt
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:154)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:146)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>  at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke (Method.java:564)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:289)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:229)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:415)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
> Caused by: org.apache.rat.mp.RatCheckException: Too many files with 
> unapproved license: 2 See RAT report in: 
> /home/sthomas/ambari/apache-ambari-2.6.1-src/target/rat.txt
>  at org.apache.rat.mp.RatCheckMojo.check (RatCheckMojo.java:194)
>  at org.apache.rat.mp.RatCheckMojo.execute (RatCheckMojo.java:182)at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:137)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:208)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:154)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:146)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>  at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke (Method.java:564)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:289)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:229)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:415)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to