百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cyclonedx-maven-plugin

> 包管理
开源

从 Maven 项目创建 CycloneDX 软件物料清单 (SBOM)

376 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

从 Maven 项目创建 CycloneDX 软件物料清单 (SBOM)

CycloneDX Maven Plugin

The CycloneDX Maven plugin generates CycloneDX Software Bill of Materials (SBOM) containing the aggregate of all direct and transitive dependencies of a project. CycloneDX is a full-stack SBOM standard designed for use in application security contexts and supply chain component analysis.

Maven Usage

xml

    
        org.cyclonedx
        cyclonedx-maven-plugin
        
            
                package
                
                    makeAggregateBom
                
            
        
    

Default Values

xml

    
        org.cyclonedx
        cyclonedx-maven-plugin
        
            library
            1.7
            true
            true
            true
            true
            true
            false
            false
            true
            all
            bom
            ${project.build.directory}
            false
        
    

`` default value is library but there are more choices defined in the CycloneDX specification.

See also External References documentation for details on this topic.

Excluding Projects

With makeAggregateBom goal, it is possible to exclude certain Maven reactor projects (aka modules) from getting included in the aggregate BOM:

  • Pass -DexcludeTestProject to exclude any Maven module with artifactId containing the word "test"
  • Pass -DexcludeArtifactId=comma separated id to exclude based on artifactId
  • Pass -DexcludeGroupId=comma separated id to exclude based on groupId

Goals

The CycloneDX Maven plugin contains the following three goals:

  • makeBom: creates a BOM for each Maven module with its dependencies,
  • makeAggregateBom: creates an aggregate BOM at build root (with dependencies from the whole multi-modules build), and eventually a BOM for each module,
  • makePackageBom: creates a BOM for each Maven module with war or ear packaging.

By default, the BOM(s) will be attached as an additional artifacts with cyclonedx classifier (can be customized by setting cyclonedx.classifier) and xml or json extension during a Maven install or deploy:

  • ${project.artifactId}-${project.version}-cyclonedx.xml
  • ${project.artifactId}-${project.version}-cyclonedx.json

This may be switched off by setting cyclonedx.skipAttach to true.

Every goal can optionally be skipped completely by setting cyclonedx.skip to true.

CycloneDX Schema Support

The following table provides information on the version of this Maven plugin, the CycloneDX schema version supported, as well as the output format options. Use the latest possible version of this plugin that is compatible with the CycloneDX version supported by the target system.

Version Schema Version Format(s)
2.10.x CycloneDX v1.7 XML/JSON
2.9.x CycloneDX v1.6 XML/JSON
2.8.x CycloneDX v1.5 XML/JSON
2.6.x CycloneDX v1.4 XML/JSON
2.5.x CycloneDX v1.3 XML/JSON
2.0.x CycloneDX v1.2 XML/JSON
1.4.x CycloneDX v1.1 XML
1.0x CycloneDX v1.0 XML

Maven Plugin Documentation

The Maven plugin documentation can be viewed online at https://cyclonedx.github.io/cyclonedx-maven-plugin/.

Copyright & License

CycloneDX Maven Plugin is Copyright (c) OWASP Foundation. All Rights Reserved.

Permission to modify and redistribute is granted under the terms of the Apache 2.0 license. See the LICENSE file for the full license.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javabill-of-materialsbomcyclonedxmaven

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类包管理
定价开源

> 相关工具

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image