File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494 <maven-central-publishing-plugin .version>0.11.0</maven-central-publishing-plugin .version>
9595 <maven-clean-plugin .version>3.5.0</maven-clean-plugin .version>
9696 <maven-compiler-plugin .version>3.15.0</maven-compiler-plugin .version>
97+ <cyclonedx-maven-plugin .version>2.9.1</cyclonedx-maven-plugin .version>
9798 <maven-dependency-plugin .version>3.8.1</maven-dependency-plugin .version>
9899 <maven-deploy-plugin .version>3.1.4</maven-deploy-plugin .version>
99100 <maven-enforcer-plugin .version>3.6.3</maven-enforcer-plugin .version>
366367 </pluginManagement >
367368 <plugins >
368369
369-
370+ <!--
371+ CycloneDX SBOM 生成器:每个 module 在 package 阶段产出 bom.json / bom.xml。
372+ 用于下游供应链审计与 Maven Central 提交时的 SBOM 附件。
373+ -->
370374 <plugin >
371-
375+ <groupId >org.cyclonedx</groupId >
376+ <artifactId >cyclonedx-maven-plugin</artifactId >
377+ <version >${cyclonedx-maven-plugin.version} </version >
378+ <executions >
379+ <execution >
380+ <id >make-bom-xml</id >
381+ <phase >package</phase >
382+ <goals >
383+ <goal >makeBom</goal >
384+ </goals >
385+ <configuration >
386+ <outputFormat >XML</outputFormat >
387+ <outputName >bom</outputName >
388+ <skipNotDeployed >false</skipNotDeployed >
389+ </configuration >
390+ </execution >
391+ <execution >
392+ <id >make-bom-json</id >
393+ <phase >package</phase >
394+ <goals >
395+ <goal >makeBom</goal >
396+ </goals >
397+ <configuration >
398+ <outputFormat >JSON</outputFormat >
399+ <outputName >bom</outputName >
400+ <skipNotDeployed >false</skipNotDeployed >
401+ </configuration >
402+ </execution >
403+ </executions >
404+ </plugin >
405+
406+ <plugin >
407+
372408 <groupId >org.jacoco</groupId >
373409 <artifactId >jacoco-maven-plugin</artifactId >
374410 <version >${maven-jacoco-plugin.version} </version >
You can’t perform that action at this time.
0 commit comments