利用 Maven 自动化检测 License

参考:《利用 Maven 自动化检测 License 》

命令1(多模块):

mvn license:aggregate-add-third-party

命令2(单模块):

mvn license:add-third-party

执行后target\generated-sources\license\THIRD-PARTY.txt回有所有依赖项、license

更多可以参考插件文档https://www.mojohaus.org/license-maven-plugin/index.html

 

Leave a Reply

Your email address will not be published. Required fields are marked *