[dist] Make SBOM optional in assembly descriptor

fix dist sbom
This commit is contained in:
Andreas Dangel 2024-02-22 12:14:34 +01:00
parent db02f357c5
commit decb759a8f
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
2 changed files with 15 additions and 12 deletions

View File

@ -18,6 +18,13 @@
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<configuration>
<outputName>pmd-${project.version}-cyclonedx</outputName>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>

View File

@ -51,20 +51,16 @@
<directoryMode>0755</directoryMode>
<fileMode>0644</fileMode>
</fileSet>
</fileSets>
<files>
<file>
<source>target/bom.xml</source>
<fileSet>
<includes>
<include>pmd-*-cyclonedx.xml</include>
<include>pmd-*-cyclonedx.json</include>
</includes>
<directory>target</directory>
<outputDirectory>sbom</outputDirectory>
<destName>pmd-${project.version}-cyclonedx.xml</destName>
</file>
<file>
<source>target/bom.json</source>
<outputDirectory>sbom</outputDirectory>
<destName>pmd-${project.version}-cyclonedx.json</destName>
</file>
</files>
</fileSet>
</fileSets>
<dependencySets>
<!-- jar dependencies go to lib/ -->