...
This command runs the Release Audit Tool to verify files have the necessary license header. Sometimes a unit test flakes out (doesn't wait long enough to delete a temporary file) so the RAT check will fail. Try running the test suite again or deleting the temp file then RAT should succeed.
An alternative command is "mvn -P rat -DskipTests clean verify".
Verify content on staging website
A release manager will publish content from https://github.com/apache/logging-log4j-site/tree/asf-
...
staging to https://logging.staged.apache.org/log4j. Verify the staged website is correct.
"mvn site -DskipTests" will build the website locally This command rebuilds the website based on Markdown files in /src/site. Its the slowest verification and can take over an hour even on modern 2020/2021 hardware. It takes a long time because it generates documentation for all ~34 Log4j2 modules (jpa, docker, couchdb, etc). Managing the Logging Services Web Sites describes a technique for quickly generating the core files (articles.md, index.md.vm, security.md, etc) without all module HTML.
...