The License Maven Plugin manages the licenses of a Maven project and its dependencies. It adds, updates and checks license headers in source files, creates the project license file, downloads the license texts of the dependencies, and builds the third-party license list and report.
It requires Maven 3.9.0 or later and Java 8 or later. To list the licenses that the plugin can put into file headers, run:
mvn org.codehaus.mojo:license-maven-plugin:license-listThe plugin site lists every goal, with a usage guide, examples and an FAQ.
AGENTS.md describes the build gates, how the unit and integration tests are written and run, and the test fixtures that must not be updated. It is written for contributors and coding agents alike.
- Make sure
gpg-agentis running. - Execute
mvn -B release:prepare release:perform
For publishing the site do the following:
cd target/checkout
mvn verify site -DperformRelease scm-publish:publish-scm