Maven takes care of this, see License Management

Including license information in your distributable

mvn license:update-project-license

Include license information in source files

mvn license:update-file-header

Include license information for the 3rd party components included in your distributable

mvn license:add-third-party
  • No labels