Using with the License Plugin


This is a tip on using the buildmetadata-plugin with the maven-license-plugin.

To use the build.copyright.year property with the maven-license-plugin, the buildmetadata-plugin has to be run in the same build execution. Use the following tip to run the

goal successfully.


The maven-buildmetadata-plugin is configured to run in the initialize phase.


The license plugin uses the copyright year property provided by the buildmetadata-plugin.


Run the Build

Run the build by typing

mvn initialize license:format