Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many files with unapproved license Error running mvn clean package on main #496

Closed
3 of 4 tasks
eastlondoner opened this issue Jul 26, 2024 · 5 comments
Closed
3 of 4 tasks
Labels
user-misconfiguration The user provided mis-configured any argument, issues with user's cloud environments etc.

Comments

@eastlondoner
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Please describe the bug 🐞

I checked out main and used docker-used maven (https://hub.docker.com/_/maven) to run mvn clean package but it fails with this error:

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.16.1:check (default) on project xtable: Too many files with unapproved license: 624 See RAT report in: /usr/src/mymaven/target/rat.txt -> [Help 1]

To reproduce:

git checkout main
docker run -it --rm --name my-maven-project -v "$(pwd)":/usr/src/mymaven -w /usr/src/mymaven maven:3.8-openjdk-11-slim mvn clean package

The last part of the build output is:

 Reactor Summary for xtable 0.1.0-SNAPSHOT:
[INFO] 
[INFO] xtable ............................................. FAILURE [ 12.005 s]
[INFO] xtable-api ......................................... SKIPPED
[INFO] xtable-hudi-support ................................ SKIPPED
[INFO] xtable-hudi-support-utils .......................... SKIPPED
[INFO] xtable-core ........................................ SKIPPED
[INFO] xtable-utilities ................................... SKIPPED
[INFO] xtable-hudi-support-extensions ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.151 s
[INFO] Finished at: 2024-07-26T11:24:53Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.16.1:check (default) on project xtable: Too many files with unapproved license: 624 See RAT report in: /usr/src/mymaven/target/rat.txt -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Are you willing to submit PR?

  • I am willing to submit a PR!
  • I am willing to submit a PR but need help getting started!

Code of Conduct

@eastlondoner eastlondoner added the bug Something isn't working label Jul 26, 2024
@eastlondoner
Copy link
Author

adding -Drat.skip seems to fix it, but this isn't included in the README as far as I can tell

@eastlondoner
Copy link
Author

it also fails with the same error when running mvn install -DskipTests

@vinishjail97
Copy link
Contributor

Are you sure you don't have any local/uncommitted files without the apache header when running mvn install -DskipTests ?

@eastlondoner
Copy link
Author

eastlondoner commented Aug 1, 2024 via email

@vinishjail97 vinishjail97 added user-misconfiguration The user provided mis-configured any argument, issues with user's cloud environments etc. and removed bug Something isn't working labels Aug 7, 2024
@vinishjail97
Copy link
Contributor

Closing this, no longer an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-misconfiguration The user provided mis-configured any argument, issues with user's cloud environments etc.
Projects
None yet
Development

No branches or pull requests

2 participants