This looks like the issue I've been seeing as well: The cassandra module 
creates a .toDelete file inside the cassandra folder that the RAT check thinks 
is a source file without the required header.


Delete it and all is fine again (until after next build where you need to 
delete it again).


This is probably easily fixable by telling the RAT plugin ignore that 
particular file, but in general we should try to make sure that builds and 
tests never (ever ever) creates files outside the target folder to avoid stuff 
like this.


BR,

Dennis

________________________________
From: Henry Saputra <[email protected]>
Sent: Thursday, October 20, 2016 5:22:45 PM
To: [email protected]; [email protected]
Subject: Fwd: maven error

Forwarding the email to dev@ list.

This is weird. I am not able to repro this from master branch.
Could you share more the steps to repro this behavior?

Thanks,

- Henry

---------- Forwarded message ----------
From: Moeez Subhani <[email protected]>
Date: Thu, Oct 20, 2016 at 8:17 AM
Subject: maven error
To: "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>, "
[email protected]" <[email protected]>


Hello



I am a PHD student from University of Derby. I have been trying to install
Apache MetaModel on linux. While I am trying to build Maven first, I am
encountering the following error.





[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------
------------
[INFO] Total time: 4.413 s
[INFO] Finished at: 2016-10-10T19:08:03+01:00
[INFO] Final Memory: 16M/38M
[INFO] ------------------------------------------------------------
------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(rat-verify) on project MetaModel: Too many files with unapproved license:
1 See RAT report in: /home/mz/MetaModel-4.5.4/target/rat.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.rat:apache-rat-plugin:0.11:check (rat-verify) on project
MetaModel: Too many files with unapproved license: 1 See RAT report in:
/home/mz/MetaModel-4.5.4/target/rat.txt
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:212)
    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.
buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.
SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.
execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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: 1 See RAT report in: /home/mz/MetaModel-4.5.4/
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:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:207)
    ... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/
MojoFailureException


I have tried looking at the mentioned link, but it doesn't help much. Would
you be kind enough to help me to troubleshoot this problem asap.
Thank you in advance.







*Best Regards*

*Moeez M. Subhani*

*Postgraduate Research Student*

*University of Derby*

*Ph: +44-1332-593746 <%2B44-1332-593746>*




The University of Derby has a published policy regarding email and reserves
the right to monitor email traffic.
If you believe this was sent to you in error, please reply to the sender
and let them know.

Key University contacts: http://www.derby.ac.uk/its/contacts/

Reply via email to