全部学科
Python全栈
python
NodeJS全栈
nodejs
小程序首页
📅 2026-05-23 10 分钟 ✍️ juanwangdev

许可证合规检查

检查依赖许可证合规性。

License Plugin

XML
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>license-maven-plugin</artifactId>
  <version>1.20</version>
  <configuration>
    <includedLicenses>
      <includedLicense>Apache*</includedLicense>
      <includedLicense>MIT*</includedLicense>
    </includedLicenses>
    <excludedLicenses>
      <excludedLicense>GPL*</excludedLicense>
    </excludedLicenses>
  </configuration>
</plugin>

执行

Bash
mvn license:check

许可证分类

类型示例
宽松Apache、MIT
严格GPL、AGPL
商业商业许可

要点总结

  • license-maven-plugin 检查许可证
  • includedLicenses 允许的许可证
  • excludedLicenses 禁止的许可证

📝 发现内容有误?点击此处直接编辑

← 上一篇 安全策略自动化
下一篇 → 软件成分分析
想查看更多题目和详细解析?
小程序提供完整的题库、模拟考试和详细解析
马上就来

长按或扫描二维码,立即体验

扫码体验小程序
马上就来
使用微信扫描二维码
立即体验完整题库